Results 1 to 5 of 5
when i type in myipadress/phpmyadmin/ in my browser i get an 404 Not found.
The xxx are of course replaced by my actual ipadress. And i have the correct syntax ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-24-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 47
any advice on phpmyadmin issue
when i type in myipadress/phpmyadmin/ in my browser i get an 404 Not found.
The xxx are of course replaced by my actual ipadress. And i have the correct syntax in the beginning with http etc.
i have installed both php5 and phpmyadmin and restarted my apache2
any advice ?
Thanks in advance guys..Last edited by akimelit; 11-24-2011 at 03:14 PM.
- 11-24-2011 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,696
Hey,
What is your apache DocumentRoot? e.g.:
Note: the path to the httpd config file varies from distro to distro.Code:grep ^DocumentRoot /etc/httpd/conf/httpd.conf
What is the full path to your phpmyadmin? e.g. my documentRoot is /var/www/html and my phpmyadmin dir is in:
Any errors in your apache log? e.g.:Code:/var/www/html/phpmyadmin
and btw, you mean http, not html, right?Code:tailf /var/log/httpd/error_log
- 11-24-2011 #3Linux user #126863 - see http://linuxcounter.net/
- 11-26-2011 #4Just Joined!
- Join Date
- Oct 2011
- Posts
- 47
Hi guys this is what i have found regarding my phpadmin issue.
My path to phpmyadmin is /usr/share/phpmyadmin
And this is what i did find on the error.log in /var/log/error.log and why i get the 404
[Sat Nov 26 17:39:55 2011] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/phpmyadmin
[Sat Nov 26 17:40:08 2011] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/phpmyadmin
Then after i did a remove and them reinstalled it again. It was the same as before.
What could be the problem ? Isn't the file phpmyadmin file created automatically ? in /var/www/php upon installation.
I must admit that im new to linux and so. my httpd.conf i blank it has no entries in it what so ever. Is this what causing this ?
where and how should i best fix this..
Thanks in advance guys. Hope someone can shead some light on this
bare in mind that im relatively new to linux... But i'll learn more each day...
- 11-26-2011 #5Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,696
What is your disro and how did you install phpMyAdmin? It is likely that the package is available in your repos, which would in turn making configuring it easier. For example, I installed it on my RHEL 4 box (via the rpmforge repo with)
and on my Fedora 15 box I did:Code:yum install phpmyadmin
In both cases, the app installed to /usr/share/ and an apache config file, as Roxoff pointed out, to the apache auxiliary config dir:Code:yum install phpMyAdmin
But you may not have to bother with that (or maybe you already installed it that way). Check out the contents of this file, your problem may be there. For example:Code:/etc/httpd/conf.d/
The bolded line says "only allow the local machine to connect to the phpMyAdmin webpage". You can change it to Allow from all temporarily to see if you can connect from other machines.Code:# cat /etc/httpd/conf.d/phpmyadmin.conf <Directory "/usr/share/phpmyadmin"> Order Deny,Allow Deny from all Allow from 127.0.0.1 </Directory> Alias /phpmyadmin /usr/share/phpmyadmin Alias /phpMyAdmin /usr/share/phpmyadmin
The Alias lines make the directories in the 3rd column, e.g. /usr/share/phpmyadmin, available in the URL path given in the 2nd column, e.g. /phpmyadmin. So, you should be able to go to http://localhost/phpmyadmin and access the files in /usr/share/phpmyadmin.
If you need to make changes to this file, you need to restart apache, e.g.:
Code:/etc/init.d/httpd restart


Reply With Quote

