Softaculous


Topic : Ampps Admin and Home Page 500 Error


1

Posted By: schoujar on November 3, 2013, 5:53 pm
Hi guys,

This was working before the 2.1 update but now my ampps page and ampps-admin pages just return a 500 error.

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, ****@gmail.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log."

Any ideas?

Posted By: ketan on November 6, 2013, 7:01 am | Post: 1
Hi,

Which OS you are using?

-----------------------
Follow AMPPS on,
Twitter
Facebook
Google+

Posted By: schoujar on November 6, 2013, 7:15 am | Post: 2
Hi Ketan,

I'm using OS X Mavericks.

Posted By: tidus on November 6, 2013, 7:23 am | Post: 3
Quote
Hi guys,



This was working before the 2.1 update but now my ampps page and ampps-admin pages just return a 500 error.



"Internal Server Error



The server encountered an internal error or misconfiguration and was unable to complete your request.



Please contact the server administrator, ****@gmail.com and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.



More information about this error may be available in the server error log."



Any ideas?
       


Hi,

Do the following steps:
1. Stop Apache.
2. Open AMPPS Gui -> PHP Tab -> Restore Default Config
3. Run the following commands in Terminal:
Code
/Applications/AMPPS/php/bin/php -c /Applications/AMPPS/php/etc/php.ini /Applications/AMPPS/ampps/softaculous/enduser/install.php

(Skip the warnings and if the error says install.php does not exist)

Code
/Applications/AMPPS/php/bin/php -c /Applications/AMPPS/php/etc/php.ini /Applications/AMPPS/ampps/softaculous/cron.php

(Skip the warnings and this might take a little more time to execute)
4. Start Apache.


-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack

Posted By: schoujar on November 7, 2013, 3:14 am | Post: 4
Hi,

still getting the same 500 error.
Looked through the Apache log files, here's what it dumps:

"[Thu Nov 07 10:11:04 2013] [error] [client ::1] <b>Security Alert!</b> The PHP CGI cannot be accessed directly.
[Thu Nov 07 10:11:04 2013] [error] [client ::1]
[Thu Nov 07 10:11:04 2013] [error] [client ::1] <p>This PHP CGI binary was compiled with force-cgi-redirect enabled.  This
[Thu Nov 07 10:11:04 2013] [error] [client ::1] means that a page will only be served up if the REDIRECT_STATUS CGI variable is
[Thu Nov 07 10:11:04 2013] [error] [client ::1] set, e.g. via an Apache Action directive.</p>
[Thu Nov 07 10:11:04 2013] [error] [client ::1] <p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>
[Thu Nov 07 10:11:04 2013] [error] [client ::1] <p>For more information about changing this behaviour or re-enabling this webserver,
[Thu Nov 07 10:11:04 2013] [error] [client ::1] consult the installation file that came with this distribution, or visit
[Thu Nov 07 10:11:04 2013] [error] [client ::1] <a href="http://php.net/install.windows">the manual page</a>.</p>
[Thu Nov 07 10:11:04 2013] [error] [client ::1] Premature end of script headers: index.php"

Posted By: tidus on November 7, 2013, 5:33 am | Post: 5
Hi,

What is the output of the following command in the terminal ?

Code
/Applications/AMPPS/php/bin/php -n -v



-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack

Posted By: schoujar on November 7, 2013, 5:47 am | Post: 6
PHP 5.4.20 (cli) (built: Sep 23 2013 19:01:38)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

Posted By: tidus on November 7, 2013, 5:48 am | Post: 7
Hi,

Close Apache, MySQL and switch to PHP version 5.3. Then repeat the steps above.


-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack

Posted By: schoujar on November 7, 2013, 5:58 am | Post: 8
Small problem, I need 5.4.
Can I change it back to 5.4 afterwards?

Posted By: tidus on November 7, 2013, 5:59 am | Post: 9
Yes.

-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack

Posted By: schoujar on November 7, 2013, 6:04 am | Post: 10
Thanks so much for your help, working fine now! :)

Posted By: webnuage on November 12, 2013, 7:36 am | Post: 11
Hi !

don't work for me  :squi:

error logs:

[Tue Nov 12 16:26:49 2013] [warn] mod_wsgi: Compiled for Python/2.7.5.
[Tue Nov 12 16:26:49 2013] [warn] mod_wsgi: Runtime using Python/2.7.2.
[Tue Nov 12 16:26:54 2013] [notice] Apache/2.2.25 (Unix) mod_wsgi/3.4 Python/2.7.2 mod_ssl/2.2.25 OpenSSL/1.0.0d PHP/5.3.27 configured -- resuming normal operations
[Tue Nov 12 16:27:15 2013] [notice] SIGHUP received.  Attempting to restart
[Tue Nov 12 16:27:15 2013] [warn] NameVirtualHost 127.0.0.1:443 has no VirtualHosts
[Tue Nov 12 16:27:15 2013] [warn] mod_wsgi: Compiled for Python/2.7.5.
[Tue Nov 12 16:27:15 2013] [warn] mod_wsgi: Runtime using Python/2.7.2.
[Tue Nov 12 16:27:20 2013] [notice] Apache/2.2.25 (Unix) mod_wsgi/3.4 Python/2.7.2 mod_ssl/2.2.25 OpenSSL/1.0.0d PHP/5.3.27 configured -- resuming normal operations
[Tue Nov 12 16:27:31 2013] [error] [client ::1] <b>Security Alert!</b> The PHP CGI cannot be accessed directly., referer: http://localhost/
[Tue Nov 12 16:27:31 2013] [error] [client ::1] , referer: http://localhost/
[Tue Nov 12 16:27:31 2013] [error] [client ::1] <p>This PHP CGI binary was compiled with force-cgi-redirect enabled.  This, referer: http://localhost/
[Tue Nov 12 16:27:31 2013] [error] [client ::1] means that a page will only be served up if the REDIRECT_STATUS CGI variable is, referer: http://localhost/
[Tue Nov 12 16:27:31 2013] [error] [client ::1] set, e.g. via an Apache Action directive.</p>, referer: http://localhost/
[Tue Nov 12 16:27:31 2013] [error] [client ::1] <p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p>, referer: http://localhost/
[Tue Nov 12 16:27:31 2013] [error] [client ::1] <p>For more information about changing this behaviour or re-enabling this webserver,, referer: http://localhost/
[Tue Nov 12 16:27:31 2013] [error] [client ::1] consult the installation file that came with this distribution, or visit , referer: http://localhost/
[Tue Nov 12 16:27:31 2013] [error] [client ::1] <a href="http://php.net/install.windows">the manual page</a>.</p>, referer: http://localhost/
[Tue Nov 12 16:27:31 2013] [error] [client ::1] Premature end of script headers: index.php, referer: http://localhost/
[Tue Nov 12 16:30:41 2013] [notice] caught SIGTERM, shutting down

Can you help me ?
Thank You !

P/

Posted By: tidus on November 12, 2013, 7:44 am | Post: 12
Hi,

Close Ampps Application. And start it again. Try the same steps again.


-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack

Posted By: webnuage on November 12, 2013, 8:09 am | Post: 13
Terminal says:

Site error: the file <b>/Applications/AMPPS/ampps/softaculous/enduser/install.php</b> requires the ionCube PHP Loader ioncube_loader_dar_5.3.so to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.

??

Posted By: tidus on November 12, 2013, 8:13 am | Post: 14
Quote From : webnuage November 12, 2013, 8:09 am
Terminal says:

Site error: the file <b>/Applications/AMPPS/ampps/softaculous/enduser/install.php</b> requires the ionCube PHP Loader ioncube_loader_dar_5.3.so to be installed by the website operator. If you are the website operator please use the <a href="http://www.ioncube.com/lw/">ionCube Loader Wizard</a> to assist with installation.

??


is this file present /Applications/AMPPS/php/etc/php.ini ?


-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.