
Originally Posted by
mrlugal
Any ideas or help here would be much appreciated!
I updated PHP/Apache last night and any site that has either:
ini_set(memory_limit) or an
htaccess php_value memory_limit
(Any other ini_set or php_value settings are still fine)
command does not process any php files and returns page cannot be displayed 0 bytes from the browser. I thought it might have been something with suHosin at first but haven't had any luck with it.
Is there a default setting that I might be missing or security option somewhere?
PHP config --
'./configure' '--enable-bcmath' '--enable-calendar' '--enable-discard-path' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-sockets' '--prefix=/usr/local' '--with-apxs=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-jpeg-dir=/usr' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mm=/opt/mm/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-pspell' '--with-sqlite=shared' '--with-ttf' '--with-xpm-dir=/usr/X11R6' '--with-zlib' '--with-zlib-dir=/usr'
What was the prior PHP version? What is the new PHP version installed?
I would save a backup of and then reset the main PHP configuration file(s), named php.ini, using the following commands (entered in the order listed):
Code:
# mv -v /usr/local/lib/php.ini /usr/local/lib/php.ini.backup
# mv -v /usr/local/php4/lib/php.ini /usr/local/php4/lib/php.ini.backup
# /scripts/phpini
Here is an example of what the output may look like (assuming both PHP5 and PHP4 are installed):
Code:
# mv -v /usr/local/lib/php.ini /usr/local/lib/php.ini.backup
`/usr/local/lib/php.ini' -> `/usr/local/lib/php.ini.backup'
# mv -v /usr/local/php4/lib/php.ini /usr/local/php4/lib/php.ini.backup
`/usr/local/php4/lib/php.ini' -> `/usr/local/php4/lib/php.ini.backup'
# /scripts/phpini
Updating php.ini for /usr/local ...Done
Updating php.ini for /usr/local/php4 ...Done
Updated php.ini default values to version 3.3
Restarting Apache
info [safeapacherestart] Restart elapsed seconds: 1