LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   After upgrading php 5.3.8 to php 5.4.30 php files are not being executed (https://www.linuxquestions.org/questions/linux-server-73/after-upgrading-php-5-3-8-to-php-5-4-30-php-files-are-not-being-executed-4175509269/)

kingkashif 06-26-2014 09:19 AM

After upgrading php 5.3.8 to php 5.4.30 php files are not being executed
 
Hello everyone,

I just upgraded php 5.3.8 on my plesk using yum repo to php 5.4.30 but now the problem is that php files are being downloaded when I access them.

I have added "AddType application/x-httpd-php5 .php" to php.conf but to no avail.

Any help would be greatly appreciated.

Thanks

TenTenths 06-26-2014 09:27 AM

Quote:

Originally Posted by kingkashif (Post 5194407)
I have added "AddType application/x-httpd-php5 .php" to php.conf but to no avail.

What is the output of:
Code:

httpd -M | grep php

kingkashif 06-26-2014 09:31 AM

Thanks for replying ..

The out of "httpd -M | grep php" is
Quote:

Syntax OK

TenTenths 06-26-2014 09:33 AM

Are you running php as a module?

If so then you should have something like:

Code:

# httpd -M | grep php
Syntax OK
 php5_module (shared)


kingkashif 06-26-2014 09:37 AM

I don't know.. But i guess it's not as a module
because there is no libphp.so module in the apache modules directory.

I just upgraded from php 5.3 to 5.4 by following this how to http://kb.parallels.com/en/115833

Html files and text files are being accessed file. But when you access php file, it gets downloaded.

TenTenths 06-26-2014 10:15 AM

I haven't a clue with Plesk to be honest, never used it.


All times are GMT -5. The time now is 10:10 PM.