Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to clone a website into a user's home directory and symlink from my website folder to public_html.

drwxrwxr-x 5 myuser myuser 4096 Dec  3 12:00 ./
drwxr-xr-x 4 myuser myuser 4096 Dec  3 11:31 ../
drwxrwxr-x 3 myuser myuser 4096 Oct 22 00:48 conf/
drwxrwxr-x 2 myuser myuser 4096 Dec  3 11:52 logs/
lrwxrwxrwx 1 myuser myuser   19 Dec  3 12:00 public_html -> mywebsite/
drwxr-xr-x 6 myuser myuser 4096 Nov 27 15:13 mywebsite/

suphp is throwing an Exception:

SoftException in Application.cpp:299: Script "/home/myuser/whatever.com/public_html/index.php" resolving to "/home/myuser/whatever.com/mywebsite/index.php" not within configured docroot

I thought dropping this check would fix it, but it's not.

# cat /etc/suphp/suphp.conf  
...
;Check wheter script is within DOCUMENT_ROOT
;check_vhost_docroot=true
check_vhost_docroot=false
...

Is check_vhost_docroot what I'm actually looking for, or is there another option I should be looking at? Or is this even possible with suphp. I know this behavior works on our cpanel server, but that may be suexec instead of suphp.

share|improve this question

1 Answer 1

Add path to new docroot in /etc/suphp/suphp.conf file.

For example:

docroot=/usr/www:${HOME}/public_html:${HOME}/mywebsite
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.