Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th May 2012, 11:10
Jorem Jorem is offline
Senior Member
 
Join Date: Oct 2005
Posts: 139
Thanks: 5
Thanked 4 Times in 4 Posts
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 18th May 2012, 15:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Please post the content of the apache phpmyadmin.conf file of that server, it should be in /etc/apache2/conf/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 21st May 2012, 12:25
Jorem Jorem is offline
Senior Member
 
Join Date: Oct 2005
Posts: 139
Thanks: 5
Thanked 4 Times in 4 Posts
Default

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>

Last edited by Jorem; 21st May 2012 at 12:27.
Reply With Quote
  #4  
Old 21st May 2012, 12:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 21st May 2012, 13:54
Jorem Jorem is offline
Senior Member
 
Join Date: Oct 2005
Posts: 139
Thanks: 5
Thanked 4 Times in 4 Posts
Default

<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?
Reply With Quote
  #6  
Old 21st May 2012, 15:21
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Local mail server - final touch Alexhor Installation/Configuration 4 12th April 2012 23:33
Statistic not working mzo Installation/Configuration 49 20th April 2011 13:19
ISPConfig3 mail doesn't work Marr General 6 1st September 2010 10:32
Sending mail ISPConfig 3 but not receivind catza Installation/Configuration 20 19th May 2010 13:47
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 17:59


All times are GMT +2. The time now is 17:20.


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