Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Ampps Admin and Home Page 500 Error

1


Threaded Mode | Print  

 Ampps Admin and Home Page 500 Error (25 Replies, Read 192590 times)
schoujar
Group: Member
Post Group: Newbie
Posts: 18
Status:
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?
IP: --   

Ampps Admin and Home Page 500 Error
ketan
Group: Member
Post Group: Working Member
Posts: 241
Status:
Hi,

Which OS you are using?

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

Ampps Admin and Home Page 500 Error
schoujar
Group: Member
Post Group: Newbie
Posts: 18
Status:
Hi Ketan,

I'm using OS X Mavericks.
IP: --   

Ampps Admin and Home Page 500 Error
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
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
IP: --   

Ampps Admin and Home Page 500 Error
schoujar
Group: Member
Post Group: Newbie
Posts: 18
Status:
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"
IP: --   

Ampps Admin and Home Page 500 Error
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
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
IP: --   

Ampps Admin and Home Page 500 Error
schoujar
Group: Member
Post Group: Newbie
Posts: 18
Status:
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
IP: --   

Ampps Admin and Home Page 500 Error
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
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
IP: --   

Ampps Admin and Home Page 500 Error
schoujar
Group: Member
Post Group: Newbie
Posts: 18
Status:
Small problem, I need 5.4.
Can I change it back to 5.4 afterwards?
IP: --   

Ampps Admin and Home Page 500 Error
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Yes.

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

Ampps Admin and Home Page 500 Error
schoujar
Group: Member
Post Group: Newbie
Posts: 18
Status:
Thanks so much for your help, working fine now! :)
IP: --   

Ampps Admin and Home Page 500 Error
webnuage
Group: Member
Post Group: Newbie
Posts: 4
Status:
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/
IP: --   

Ampps Admin and Home Page 500 Error
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
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
IP: --   

Ampps Admin and Home Page 500 Error
webnuage
Group: Member
Post Group: Newbie
Posts: 4
Status:
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.

??
IP: --   

Ampps Admin and Home Page 500 Error
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
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
IP: --   

Ampps Admin and Home Page 500 Error
webnuage
Group: Member
Post Group: Newbie
Posts: 4
Status:
No, in neither php folders ...
IP: --   

Ampps Admin and Home Page 500 Error
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

Restore Default Configuration from AMPPS Application -> PHP Tab Please.

Please open a ticket. If you are still facing issues.


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

Ampps Admin and Home Page 500 Error
webnuage
Group: Member
Post Group: Newbie
Posts: 4
Status:
OK. Thank You !
IP: --   

Ampps Admin and Home Page 500 Error
ylluminate
Group: Member
Post Group: Newbie
Posts: 3
Status:
Upon attempting:
`/Applications/AMPPS/php/bin/php -c /Applications/AMPPS/php/etc/php.ini /Applications/AMPPS/ampps/softaculous/enduser/install.php`
I received:
Quote
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.


I then used the PHP -> Restore Default Configuration function since `/Applications/AMPPS/php/etc/php.ini` was missing.

After that was restored, I attempted this again:
`/Applications/AMPPS/php/bin/php -c /Applications/AMPPS/php/etc/php.ini /Applications/AMPPS/ampps/softaculous/enduser/install.php`

And received the following output:
Quote
PHP Warning:  filemtime(): stat failed for /Applications/AMPPS/ampps/data/vichitra in /Applications/AMPPS/ampps/softaculous/enduser/softpanel.php on line 203

Warning: filemtime(): stat failed for /Applications/AMPPS/ampps/data/vichitra in /Applications/AMPPS/ampps/softaculous/enduser/softpanel.php on line 203


I then attempted to run it again for kicks and received the following output:
Quote
/Applications/AMPPS/php/bin/php -c /Applications/AMPPS/php/etc/php.ini /Applications/AMPPS/ampps/softaculous/enduser/install.php


Same with `cron.php`.

It appears that something is b0rked with the php libs.

The php bin is showing: PHP 5.3.28 (cli) (built: Jan 29 2014 13:54:00)
IP: --   

Ampps Admin and Home Page 500 Error
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Quote

PHP Warning:  filemtime(): stat failed for
/Applications/AMPPS/ampps/data/vichitra in
/Applications/AMPPS/ampps/softaculous/enduser/softpanel.php on line 203



Warning: filemtime(): stat failed for
/Applications/AMPPS/ampps/data/vichitra in
/Applications/AMPPS/ampps/softaculous/enduser/softpanel.php on line 203


They are warning, and can be ignored. This shouldn't effect anything.

Quote

I then attempted to run it again for kicks and received the following output:
Quote
/Applications/AMPPS/php/bin/php -c /Applications/AMPPS/php/etc/php.ini /Applications/AMPPS/ampps/softaculous/enduser/install.php


Same with `cron.php`.

What output ? I cannot the see the output.

Wait for few minutes to complete. Your Enduser and Admin Panel both should work.



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

Ampps Admin and Home Page 500 Error
ylluminate
Group: Member
Post Group: Newbie
Posts: 3
Status:
Well, it does seem things started to operate again after manually killing the http daemon and mysql, and so forth, but `phpmyadmin` is still having some issues as well.  When I visit localhost/phpmyadmin I get:

Quote
Fatal error: Call to undefined function mb_detect_encoding() in /Applications/AMPPS/phpMyAdmin/libraries/php-gettext/gettext.inc on line 177
IP: --   

Ampps Admin and Home Page 500 Error
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

Enable php_mbstring from AMPPS Application -> PHP TAb -> PHP Extension

It should be enabled by default by the way. But just confirm and enable it if it is not already enabled. Restarting Apache is required.


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

Ampps Admin and Home Page 500 Error
ylluminate
Group: Member
Post Group: Newbie
Posts: 3
Status:
So `mbstring.so` was already enabled, BUT `gettext.so` was NOT.  I enabled that and it seems to work now.  This was indeed default configuration since I used the `Restore Default Configuration` function since it was not properly installed in the beginning.

You may also want to stick a link to localhost/phpmyadmin inside of the MySQL section of the control panel for convenience sake and reminder for users.
IP: --   

Ampps Admin and Home Page 500 Error
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

It is present in "Database Tools" section.


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

Ampps Admin and Home Page 500 Error
tomdringer
Group: Member
Post Group: Newbie
Posts: 4
Status:
Sorry to resurrect an old thread.

I'm on El Capitan and get the 500 error for the admin page.

Looking in the logs i have

[Fri Apr 29 06:51:50.167673 2016] [core:notice] [pid 499] AH00094: Command line: '/Applications/AMPPS/apache/bin/httpd'
[Fri Apr 29 06:52:25.147463 2016] [cgi:error] [pid 688] [client 127.0.0.1:49522] AH01215: (8)Exec format error: exec of '/Applications/AMPPS/ampps/softaculous/enduser/index.php' failed: /Applications/AMPPS/ampps/softaculous/enduser/index.php
[Fri Apr 29 06:52:25.147609 2016] [cgi:error] [pid 688] [client 127.0.0.1:49522] End of script output before headers: index.php

I've tried the steps above via the terminal, but i'm making no progress.

Any direction is appreciated.

Thanks!
IP: --   

Ampps Admin and Home Page 500 Error
kisvukk70
Group: Member
Post Group: Newbie
Posts: 3
Status:
Hi,

If you got 50x error on ampps admin sites right after you changed php version
maybe you don't need to do php version downgrade and another config resets.
My problem came out when i deleted the old php verisons folders. And this is the problem because softaculous hardcoded php-5.3 in a php file.

Problem solved in this way:
I use linux mint, path and command maybe different on other os but the todo is probably same

open usr\local\ampps\ampps\softaculous\enduser\index.php
and modify the first line
from
#!/usr/local/ampps/php-5.3/bin/php-cgi

to
#!/usr/local/ampps/php-x.x/bin/php-cgi

where x.x is your current/desired php version

If you stucked in php version change, there is more three step:

1) delete php.lnk from ampps folder
2) run this in terminal to make a new lnk:
ln -s /usr/local/ampps/php-x.x /usr/local/ampps/php
3) open usr/local/ampps/ampps/data/apps
and change php-x.x version number

where x.x is your current/desired php version
IP: --   

« Previous    Next »

Threaded Mode | Print  

1


Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 28, 2024, 7:01 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.031