LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-26-2014, 09:19 AM   #1
kingkashif
Member
 
Registered: May 2009
Posts: 94

Rep: Reputation: 16
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
 
Old 06-26-2014, 09:27 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by kingkashif View Post
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
 
Old 06-26-2014, 09:31 AM   #3
kingkashif
Member
 
Registered: May 2009
Posts: 94

Original Poster
Rep: Reputation: 16
Thanks for replying ..

The out of "httpd -M | grep php" is
Quote:
Syntax OK
 
Old 06-26-2014, 09:33 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
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)
 
Old 06-26-2014, 09:37 AM   #5
kingkashif
Member
 
Registered: May 2009
Posts: 94

Original Poster
Rep: Reputation: 16
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.
 
Old 06-26-2014, 10:15 AM   #6
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP error after upgrading to latest version of PHP Skillz Programming 3 08-17-2012 08:02 PM
WebDAV php files are executed for linux but not windows flamelord Programming 3 06-26-2012 08:17 PM
After moving PHP files to /var/www they no longer are seen as hosted php files scheidel21 Linux - Server 9 03-01-2010 07:16 AM
PHP Warning after upgrading from PHP 5.2.1 to 5.3.1 on CentOS rossie Linux - Newbie 4 12-20-2009 02:18 PM
php files only being executed in my root directory and nowhere else :( AtomicBanana Slackware 3 03-17-2007 01:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration