phpmyadmin error

neo123

Verified User
Joined
May 15, 2006
Messages
23
when i click on the button phpmyadmin in the da control panel i get this error:

Index of /phpmyadmin
Name Last modified Size Description
--------------------------------------------------------------------------------
Parent Directory 15-May-2006 20:46 -
phpMyAdmin-2.8.0.3 -

then i click on phpMyAdmin-2.8.0.3 for example and i get


Forbidden
You don't have permission to access /phpMyAdmin/phpMyAdmin-2.8.0.3 on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Fedoracore 4 and Da are installed

i just upgrade with the upgrade tools ! I also get the webbrowser instead of the log in box to php myadmin :confused:

plz help
 
Last edited:
Try to run the phpmyadmin script again as root:

Code:
/usr/local/directadmin/scripts/phpMyAdmin.sh

This usually fixes most of the problems. If not let us know and we can investigate further.
 
it says


ln: `/var/www/html/phpMyAdmin/phpMyAdmin-2.8.0.3': File exists

still same prob
 
I would just do this.

Code:
cd /var/www/html
rm -rf phpMyAdmin
rm -rf phpMyAdmin-2.8.0.3

/usr/local/directadmin/scripts/phpMyAdmin.sh
 
and be sure and check the version in the phpMyadmin.sh that it matches your installed version as show in the custombuild directory.
 
I performed all of the recommendations (including my own) yet still receive the error as shown in the attached image. The error occurs after attempting to update the table with new data. The new data *is* written, but phpMyAdmin still generates the error.

The MySQL user has full permissions, the file tbl_replace.php has owner/group webapps.webapps and chmod 644. This occurs for all users. Running DA 1.38.0 on Redhat CentOS 5.0 (32bit), fully updated/patched. Any ideas?
 

Attachments

  • phpMyAdmin.3.3.10.insanity.png
    phpMyAdmin.3.3.10.insanity.png
    72.1 KB · Views: 379
No luck with "chown -R webapps:webapps /var/www/html" as all files, directories and sub-directoires were already set to owner webapps.

Any more ideas?
********
Possible solution for me, anyway: discovered that "session.save_path" was commented out in php.ini. Uncommented it, left it at it's default = /tmp, restarted httpd and everything works....so far.
********
Update 05/19/11: The possible "solution" above lasted for about 10 seconds. Then I had an "ah-ha" moment and checked error logs. Turns out all my issues are caused by modsecurity2. I will locate the specific problem and post it when I find it.
********
 
Last edited:
We add this to the end of the sql_attack file
Code:
SecRule REQUEST_URI "^/PATH_TO_PHPMYADMIN/" \
      "phase:1,allow,ctl:ruleEngine=off"
i.e phymyadmin-3.0.0-etc
 
Discovered that this worked (added to the sql injection attack file):

SecRule SCRIPT_FILENAME "(^/var/www/html/phpMyAdmin.*)" phase:2,log,allow,ctl:ruleEngine=Off,ctl:auditEngine=Off
 
Back
Top