Hi,
I’ve updated my php version to 5.4 from REMI, but know my php files doesn’t get interpreted. You can browse the content of the php file within the browser.
Is there a workaround for this or i’ll need to go back to PHP 5.3 ?
Thank you
Hi,
I’ve updated my php version to 5.4 from REMI, but know my php files doesn’t get interpreted. You can browse the content of the php file within the browser.
Is there a workaround for this or i’ll need to go back to PHP 5.3 ?
Thank you
Howdy,
The problem you’re having isn’t likely to be related to PHP 5.4… it’s likely related to the PHP config that’s being setup by the third party repository.
Using third party repos can indeed cause some unusual issues
If you go into System Settings -> Re-Check Config, does it detect any problems?
Also, what does this command output:
find /etc/httpd | grep php
Whatever the above command finds – can you paste it in here?
-Eric
Hi,
I knew I could run into trouble using third party, but I tought PHP would be pretty straight foward to update… apparently not
The config of virtualmin is OK from System Settings -> Re-Check Config
The grep on my httpd.conf output this
/etc/httpd/conf.d/php.conf
I was a little bit suprised since i’m using fastCGI and not mod_php…
Here is the content of my php.conf
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule !prefork.c>
LoadModule php5_module modules/libphp5-zts.so
</IfModule>
#
# Cause the PHP interpreter to handle files with a .php extension.
#
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
#
# Allow php to handle Multiviews
#
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
#
# Uncomment the following lines to allow PHP to pretty-print .phps
# files as PHP source code:
#
#<FilesMatch \.phps$>
# SetHandler application/x-httpd-php-source
#</FilesMatch>
#
# Apache specific PHP configuration options
# those can be override in each configured vhost
#
php_value session.save_handler "files"
php_value session.save_path "/var/lib/php/session"
Hi,
thanks for pointing me in the right direction.
Actually, my php.conf file was different with the one generated from php version of RH repo.
I modified my php.conf to comply with my old one and it’s now working
Thanks again for your help and hopefully, this post will help other user in the future.