Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Jun 2009
    Posts
    7

    Default image in another home folder

    Hi, I am wondering how can i use an image path outside the customers home account.

    For example /home/jbn/public_html/ - with an index.php

    And in /home/system/mall/test/ is test.jpg

    In my index.php I have an image I want to show that is in the another home folder - system.

    I´m trying this:

    ./../../../system/mall/test/test.jpg - doesn´t work.
    /home/system/mall/test/test.jpg - doesn´t work..

    If I include a file I use php include -
    /home/system/mall/test/test.php - and thats work.

    How can i show my image on my index file ?

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2003
    Location
    NC
    Posts
    725
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Are you trying to use a url with those? Apache is not serving anything outside of public_html directly to the web. Includes are different, php is grabbing extra files. If you are doing actual urls though, it has to be in the web root.

    If you really want to do it you could try sym-links, depending on your setup that should work.

  3. #3
    Member
    Join Date
    Jun 2009
    Posts
    7

    Default

    Quote Originally Posted by eth00 View Post
    Are you trying to use a url with those? Apache is not serving anything outside of public_html directly to the web. Includes are different, php is grabbing extra files. If you are doing actual urls though, it has to be in the web root.

    If you really want to do it you could try sym-links, depending on your setup that should work.
    What is sym-links and how do I do that ?

  4. #4
    Member
    Join Date
    Jun 2009
    Posts
    7

    Default include problem

    I move my templates(mall) folder tol public_html and now I get a problem with including files, how can I fix the permissions ?

    Warning: include(/home/system/public_html/mall/siteadmin/bluerange/index.php) [function.include]: failed to open stream: Permission denied in /home/jbn/public_html/siteadmin2/home/index.php on line 7

    Warning: include() [function.include]: Failed opening '/home/system/public_html/mall/siteadmin/bluerange/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jbn/public_html/siteadmin2/home/index.php on line 7

  5. #5
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    jbnmedia, the error message you just quoted says the scripts are trying to
    call include files located in the original path where you moved the files from
    instead of the new location where you moved them.

    Since you moved the files, you will need to update the scripts that are
    broken (shown in the error messages you quoted) and replace the old path
    locations in those files with the new location.

Similar Threads & Tags
Similar threads

  1. Problem with folder permission on client accounts HOME
    By aveldominguez in forum New User Questions
    Replies: 3
    Last Post: 10-19-2009, 04:15 PM
  2. Account copy, move everything but home folder?
    By Karabaja in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-08-2009, 08:47 PM
  3. Linking an account to a home folder
    By vbtweb in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-06-2009, 03:22 AM
  4. Home folder problem
    By shayanz in forum New User Questions
    Replies: 4
    Last Post: 09-25-2008, 03:19 PM
  5. Orphan perl588installer folder in home dir?
    By Kent Brockman in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-02-2008, 11:10 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube