HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   phpmyadmin 500 error, just on one server (http://www.howtoforge.com/forums/showthread.php?t=57332)

Jorem 18th May 2012 10:10

phpmyadmin 500 error, just on one server
 
I have a Ubuntu 10.04 server and a new Ubuntu 12.04 server. On both the servers the phpmyadmin files are the same. But on the 12.04 server I get a 500 server error.

I read multiple posts about the problem and followed the tips there. But still do not get it to work. Not on :8080/phpmyadmin or domain.tld/phpmyadmin

My apache2 logfile does not show a error. Only the init set error, but that is just a warning.

Is there a way to let phpmyadmin log the error's, or is this a apache problem?

On the server I have ossec-hids, apc, memcache, mod_deflate and mod_security installed. Removed theme all, restarted the server, but still not working. Same software is also installed on the 10.04 server, and there phpmyadmin is working.

Where else can I look to find the error?

Thanks for your help.

till 18th May 2012 14:33

Please post the content of the apache phpmyadmin.conf file of that server, it should be in /etc/apache2/conf/

Jorem 21st May 2012 11:25

In /etc/apache2/conf.d/ i have a symlink file phpmyadmin.conf to /etc/phpmyadmin/apache.conf
I do not have a /etc/apache2/conf directory.

Content of the apache.conf file:

# phpMyAdmin default Apache configuration
Alias /phpmyadmin /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php

<IfModule mod_php5.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
</IfModule>

</Directory>

# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
<IfModule mod_authn_file.c>
AuthType Basic
AuthName "phpMyAdmin Setup"
AuthUserFile /etc/phpmyadmin/htpasswd.setup
</IfModule>
Require valid-user
</Directory>

# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Order Deny,Allow
Deny from All
</Directory>

till 21st May 2012 11:33

Thst ok,it should use mod_php for the phpmyadmin folder. I had a similar issue some time ago related to one of the php_flag and php_admin settings. Please try to comment out the lines starting with php_flag and php_value in the phpmyadmin.conf file and restart apache.

Jorem 21st May 2012 12:54

<IfModule mod_php5.c>
AddType application/x-httpd-php .php
#php_flag magic_quotes_gpc Off
#php_flag track_vars On
#php_flag register_globals Off
php_admin_flag allow_url_fopen Off
#php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
</IfModule>

Still a 500 error and nothing in the apache log file.

I just thought about webmail that also uses a alias and tried that. /webmail is working good.
So is it really a problem with apache (and alias), or is there something wrong with the phpmyadmin files in /usr/share/phpmyadmin then?

till 21st May 2012 14:21

You missed the lines:

php_admin_flag allow_url_fopen Off
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/

Please comment them out too and restart apache.

Jorem 21st May 2012 14:39

Still 500 error after restart apache.

Checked the open-basedir setting in ISPConfig but that looks ok too:
/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin

Tried with the ip adress again. But also the 500 server error.

What i did next was I put a index.html in the /usr/share/phpmyadmin folder with some dummy text in it.
When I go to the url http://myip/phpmyadmin/index.html the page with dummy text is shown.

Alias works, but the index.php gives the error I think. How can I check what is going wrong?

Jorem 22nd May 2012 14:57

My phpmyadmin is working now :).

I made a copy of the phpmyadmin folder on my Ubuntu 10.04 server, extracted it on the Ubuntu 12.04 server and it works great now.

Taken 24th May 2012 12:36

Same problem here, Ubuntu Server 11.04, apache+php OK, but phpmyadmin error 500 :(. Any new idea?

Thanks!

falko 25th May 2012 07:53

Quote:

Originally Posted by Taken (Post 279613)
Same problem here, Ubuntu Server 11.04, apache+php OK, but phpmyadmin error 500 :(. Any new idea?

Thanks!

What's the content of /etc/apache2/conf.d/phpmyadmin.conf?
Any errors in your Apache logs?


All times are GMT +2. The time now is 09:07.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.