|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
PHP not parsed if sitting outside the doc root
Dear all,
I have a library of php files that I would like to use in several web sites. I thus have several directories, one for each web site, containing the different web sites files. One web site is at: /home/httpd/vhosts/thalasoft.net/httpdocs/ Another one is at: /home/httpd/vhosts/thalasoft.net/subdomains/demo/httpdocs/ I would like to avoid ducplicating the library of php files in these different web sites directories. I would prefer to keep only one copy of these library php files on the server. The server is a dedicated server. The library engine/ is sitting in the directory /home/httpd/vhosts/thalasoft.net/httpdocs/engine I use this alias to have the engine/ directory present in the other directories. Alias /engine "/home/httpd/vhosts/thalasoft.net/httpdocs/engine" <Directory "/home/httpd/vhosts/thalasoft.net/httpdocs/engine"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> But when calling this http://demo.thalasoft.net/engine/system/admin/login.php I get a popup window offering to download the php source file. Whereas calling this http://www.thalasoft.net/engine/system/admin/login.php works fine and the file is parsed. Any clue? Regards Stephane |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > PHP not parsed if sitting outside the doc root |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|