kwstephenchan Posted February 25, 2008 Share Posted February 25, 2008 Apache - 2.28 MySql 5.0.51 PHP 5.2.5 phpMyAdmin 2.6.0 apache documentroot = "c:/att/wwwroot" copied phpmyadmin files under the document root c:/att/wwwroot/phpmyadmin have adjusted phpmyadmin config.ini uri to :$cfg['pmaAbsoluteUri']='http://localhost/phpMyAdmin/'; but when invoked on IE http://localhost/phpMyAdmin, I got Http 404 page not found Can someone tell me what have I done wrong. By the way, when I download phpMyAdmin 2.22.4, I could not find config.ini, all I found was config,sample.ini and this sample.ini file does not have the above "absoluteUri" command, have I missed something?? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/92881-cannot-load-phpmyadmin/ Share on other sites More sharing options...
php_dave Posted February 25, 2008 Share Posted February 25, 2008 Not sure about the config.ini - but have you setup your apache install to allow index.php to run as a default page.. It is under Directory index in the http.conf file and should look like this <IfModule dir_module> DirectoryIndex index.php index.html </IfModule> You may be getting the 404 error because it is looking for an index.html that does not exist in the root folder of phpmyadmin Cheers Dave Quote Link to comment https://forums.phpfreaks.com/topic/92881-cannot-load-phpmyadmin/#findComment-476028 Share on other sites More sharing options...
kwstephenchan Posted February 25, 2008 Author Share Posted February 25, 2008 Thanks Dave, But I checked for the directoryindex tag in the config file of Apache, it looks something like this: DirectoryIndex index.html index.html.var index.php index.htm It is not exactly what you have with the <IfModule dir_module> </IfModule> though. Is it different?? Cheers, Stephen Quote Link to comment https://forums.phpfreaks.com/topic/92881-cannot-load-phpmyadmin/#findComment-476146 Share on other sites More sharing options...
wildteen88 Posted February 25, 2008 Share Posted February 25, 2008 You may be getting the 404 error because it is looking for an index.html that does not exist in the root folder of phpmyadmin Apache wont respond with a 404 error message if it cannot find an index file listed within the DirectroyIndex directive. Instead it will either respond with a 403 forbidden error, or display files within the directory (if Indexes is set within the Options directive). @kwstephenchan. PHPMyAdmin does not need to have a config.ini.php in order for function it can run without one. You'll can run the phpMyAdmin setup script which will generate the config.ini.php for you. Please read the phpMyAdmin documentation for running the setup script. What happens when you go http://localhost/ Quote Link to comment https://forums.phpfreaks.com/topic/92881-cannot-load-phpmyadmin/#findComment-476174 Share on other sites More sharing options...
php_dave Posted February 26, 2008 Share Posted February 26, 2008 You may be getting the 404 error because it is looking for an index.html that does not exist in the root folder of phpmyadmin Apache wont respond with a 404 error message if it cannot find an index file listed within the DirectroyIndex directive. Instead it will either respond with a 403 forbidden error, or display files within the directory (if Indexes is set within the Options directive). You are absolutley correct - apologies for the bum steer!! Quote Link to comment https://forums.phpfreaks.com/topic/92881-cannot-load-phpmyadmin/#findComment-476597 Share on other sites More sharing options...
kwstephenchan Posted February 26, 2008 Author Share Posted February 26, 2008 When I go to http://localhost/ , it returns a message "it works". So I assume Apache has been properly set up. I'll try to re-install phpMyAdmin to see what happen. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/92881-cannot-load-phpmyadmin/#findComment-476735 Share on other sites More sharing options...
aschk Posted February 26, 2008 Share Posted February 26, 2008 If you're working on your local machine ditch phpMyAdmin, and use the MySQL GUI interface (freely available), and learn some SQL. It'll make you a better person. Quote Link to comment https://forums.phpfreaks.com/topic/92881-cannot-load-phpmyadmin/#findComment-476879 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.