PHP scripts download rather than execute

Please post questions about ReadyNAS add-ons here.

PHP scripts download rather than execute

Postby mhop74 » Thu Jan 20, 2011 4:04 pm

Hi,

I've installed PHP 5.3.2 on my Ultra 4 using the PHP53 add on from WhoCares? The PHP installation has worked - running php -v from a terminal gives the following:

PHP 5.3.2-1 with Suhosin-Patch (cli) (built: Jun 26 2010 23:10:34)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator

However PHP scripts prompt to download the script rather than being executed.

I think its an Apache problem but have struggled to restart apache:

#sudo /etc/init.d/apache2 restart
Restarting web server: apache2apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory
failed!

Any ideas what is going wrong?

Thanks

Marcus
mhop74
ReadyNAS Newbie
 
Posts: 10
Joined: Fri Aug 20, 2010 7:59 am
ReadyNAS: Ultra

Re: PHP scripts download rather than execute

Postby WhoCares? » Thu Jan 20, 2011 7:22 pm

Try

Code: Select all
apache-ssl -f /etc/frontview/apache/httpd.conf -k stop
apache-ssl -f /etc/frontview/apache/httpd.conf


If that doesn't solve your problem, just contact me.

-Stefan
Follow me on Twitter or visit my web site
If you like my add-ons (Image downloads so far), please consider a --> donation. and get your entry in the "Hall of Fame".
(Current download to donation ratio: 0,19% [405:1])
User avatar
WhoCares?
ReadyNAS Add-ons Expert
 
Posts: 2919
Joined: Tue Jan 15, 2008 6:34 am
Location: At my desk ;)
ReadyNAS: Pro

Re: PHP scripts download rather than execute

Postby mhop74 » Fri Jan 21, 2011 1:53 am

Thanks - will try that tonight.
mhop74
ReadyNAS Newbie
 
Posts: 10
Joined: Fri Aug 20, 2010 7:59 am
ReadyNAS: Ultra

Re: PHP scripts download rather than execute

Postby mhop74 » Fri Jan 21, 2011 1:59 pm

This worked. Thanks very much for your help.
mhop74
ReadyNAS Newbie
 
Posts: 10
Joined: Fri Aug 20, 2010 7:59 am
ReadyNAS: Ultra

Re: PHP scripts download rather than execute

Postby ludwich » Tue Apr 03, 2012 12:33 am

this dosent work for me can u plz help since i got the exact same problem
ludwich
ReadyNAS Newbie
 
Posts: 37
Joined: Thu Sep 01, 2011 1:14 pm


Return to General Discussion on ReadyNAS Add-ons



Who is online

Users browsing this forum: No registered users and 0 guests