upgrading to php4
| From: | Greg Skouby | Date: | Wed, 14 Jun 2000 17:21:02 +0000 |
| Subject: | upgrading to php4 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21326@lists.php.net to get a copy of this message | ||
Hello,
I am attempting to upgrade to php4 and am mostly successful except for
this one site. It worked with the exact same switches in 3.0.11. The
switches I am using for both 3.0.11 and 4.0.0 are:
./configure --with-mysql=/usr/local --with-apache=../apache_1.3.12
It works with 3.0.11 but not with 4.0.0. The problem I am having is that
when I hit the site with IE it is just a blank page while NN returns a
'document contains no data' error. I searched the archives and saw that
somebody else was having this problem but it had to do with ldap stuff. I
am using the same php.ini file as with the dist with the exeption that I
added some include paths Also, we have some stringent rewrite rules with
this site so I will include the relevant portion of httpd.conf. Thanks and
let me know if you need anymore info. Thanks for the help.
Anybody have any ideas????
Thanks again.
relevant portions of httpd.conf:
DocumentRoot /usr/local/www/clients/test99
ErrorLog /usr/local/www/clients/test99/logs/error_log
CustomLog /usr/local/www/clients/test99/logs/access_log combined
ScriptAlias /cgi-bin/ /usr/local/www/clients/test99/cgi-bin/
#<IfModule mod_php4.c>
php_admin_value upload_tmp_dir /usr/local/www/clients/test99/images/products/temp
#</IfModule>
#<IfModule mod_php4.c>
php_admin_value auto_prepend_file /usr/local/www/clients/test99/phplib/prepend.php3
#</IfModule>
#<IfModule mod_php4.c>
php_admin_value include_path ./:/usr/local/www/clients/test99/phplib
#</IfModule>
RewriteEngine on
RewriteRule ^/$ /store/ [R,L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^(.+[^/])$ $1/
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond $1 !secure
RewriteCond $1 !store
RewriteCond $1 !icons
RewriteRule ^/([^/]*)?(/.*)?$ /store/$1$2 [R]
<Location /store>
ForceType application/x-httpd-php
</Location>
<Location /secure/admin/admin>
ForceType application/x-httpd-php
</Location>
</VirtualHost>