Hi,
I setup PHP5 at the server level, but would like to run .php files with PHP4 inside a single directory (/var/www/domain.tld/old/stuff/).
Here is my config config:
- Server (domain.tld) :
. External app: lsphp4 + lsphp5
. Script handler : lsphp5 (php, php5), lsphp4 (php4)
- Virtual Host (/var/www/domain.tld) :
. External app : nothing
. Script handler : nothing
. Context : '/old/stuff' [Server Level]: lsphp4
- http://domain.tld/file.php is OK and uses PHP5
- http://domain.tld/file.php4 is OK and uses PHP4 (I don't need it but it was setup by default during installation).
- http://domain.tld/old/stuff/file.php gives me a blank page with errors :
2010-03-24 08:27:46.345 [NOTICE] [118.172.194.231:9516-0#domain.tld:80] [STDERR] PHP Warning: Unknown(LS^A): failed to open stream: No such file or directory in Unknown on line 0
2010-03-24 08:27:46.345 [NOTICE] [118.172.194.231:9516-0#domain.tld:80] [STDERR] PHP Warning: (null)() [<a href='function.include'>function.include</a>]: Failed opening 'LS^A' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
Did I miss something or it is not possible to setup PHP5 at the server level and PHP4 at the vhost context level ?
Thanks.
I setup PHP5 at the server level, but would like to run .php files with PHP4 inside a single directory (/var/www/domain.tld/old/stuff/).
Here is my config config:
- Server (domain.tld) :
. External app: lsphp4 + lsphp5
. Script handler : lsphp5 (php, php5), lsphp4 (php4)
- Virtual Host (/var/www/domain.tld) :
. External app : nothing
. Script handler : nothing
. Context : '/old/stuff' [Server Level]: lsphp4
- http://domain.tld/file.php is OK and uses PHP5
- http://domain.tld/file.php4 is OK and uses PHP4 (I don't need it but it was setup by default during installation).
- http://domain.tld/old/stuff/file.php gives me a blank page with errors :
2010-03-24 08:27:46.345 [NOTICE] [118.172.194.231:9516-0#domain.tld:80] [STDERR] PHP Warning: Unknown(LS^A): failed to open stream: No such file or directory in Unknown on line 0
2010-03-24 08:27:46.345 [NOTICE] [118.172.194.231:9516-0#domain.tld:80] [STDERR] PHP Warning: (null)() [<a href='function.include'>function.include</a>]: Failed opening 'LS^A' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0
Did I miss something or it is not possible to setup PHP5 at the server level and PHP4 at the vhost context level ?
Thanks.
Last edited by a moderator: