Forum Moderators: coopster
When I go to Cpanel the “error log” says...
[Sun Jul 05 09:15] [error] [client zz.zz.zz.zz] File does not exist: /home/zzz/public_html/500.shtml
[Sun Jul 05 09:15] [error] [client zz.zz.zz.zz] SoftException in Application.cpp:367: Mismatch between target UID (123) and UID (123) of file "/home/zzz/public_html/my-dir/my-symlink/index.php"
However, If go to SSH and edit server owner of the symlink, so both symlink and target file has the same owner (chown user:user directory_name) the problem is the same, but on the “error log” the UID Mismatch disappear and I only find...
File does not exist: /home/zzz/public_html/500.shtml
I’ve also tried modifying suexec by changing... “domain.com” for “domain-com” on the server alias, and does not work.
Here I give you more info about server file structure...
serveralias generation path...
/var/cpanel/userdata/USER/DOMAIN
suexec location...
/usr/local/apache/sbin/suexec
Server Information
System Linux
Apache Version 2.2.11 (Unix)
PERL Version 5.8.8
PHP Version 5.2.8
So the question is... HOW can I create a symlink between different users on the same dedicated server partition, that target to PHP scripts or how can I allow the server to execute PHP scripts through symlinks of different accounts?
Any help would be much appreciated, tks in advance!
PHP's open_basedir protection prevents users from opening files outside of their home directory with PHP.
I would look there I also found a topic somewhat related for drupal [drupal.org...]
good luck
- In reply to your first question, we need that an user shows the content of other user, because we are making a multimple sites project, so a domain host the sites and another domain gives the domain name. Is the best way to do this using symbolic links? Or there is any way on WHM to give to the same user, 2 domains to administrate with the same absolute path or partition of the server?
- In reply to your second question, I went to WHM >> Server Configuration >> Tweak Settings, but there is no openbase_dir option, is there any place where I can find it and modify it? Or is there any way to change it using a PHP.INI file inside pubic_html of any account, so I dont have to edit server configuration for other accounts?
I want to thank you again for your time, is great to find webmasters helping others, see u...