magnusprime Posted September 29, 2006 Share Posted September 29, 2006 I just installed a clean Fedora Core 5 system, with Apache 2.2, MySQL 5 and PHP 5.1.2.If I create a index.php with phpinfo() in it, and put that in my webroot, it displays perfectly fine.If I create a subdir under my webroot, and copy the index.php to there, it displays just fine.Here is where the fun stuff starts. I download a php-application such as phpMyAdmin. I extract it, and move the extracted files to a subdirectory on my webroot, so I have this: /var/www/html/phpMyAdmin, and all the phpMyAdmin stuff in there. It contains an index.php. (I followed the instructions in the phpMyAdmin and created a config file for it.) If I navigate to http://host/phpMyAdmin, I get the following error:ForbiddenYou don't have permission to access /phpMyAdmin on this server.Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.If I try a different application, such as a CMS system, or message board, I get the same error. Any ideas? I think it has to do with my apache config, but I have no idea where to look. Possibly the re-write rules? Quote Link to comment Share on other sites More sharing options...
oldmanice Posted September 30, 2006 Share Posted September 30, 2006 I think youve blocked your own ip address so maybe try unblocking it. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted September 30, 2006 Share Posted September 30, 2006 See if adding a forward slash at the end of the url resolves this:http://host/phpMyAdmin/ Quote Link to comment Share on other sites More sharing options...
magnusprime Posted October 2, 2006 Author Share Posted October 2, 2006 I do not have m y ip blocked, as no matter which system I try to access it from I get the same error message. (If I try from my laptop, the error is the same.)Also, adding the / at the end doesnt make a difference either. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted October 2, 2006 Share Posted October 2, 2006 Try this:http://host/phpMyAdmin/index.phpIf that works then you need to add Indexes to the Options (around line 273) in the httpd.conf and add/or index.php on to the end of the DirectoryIndex line (around line 327).if it doesnt then I dont know whats wrong. Quote Link to comment Share on other sites More sharing options...
magnusprime Posted October 2, 2006 Author Share Posted October 2, 2006 Still get an access denied error. and index.php works fine if I manually created one (with lets say phpinfo() in it), and put it in my webroot. Quote Link to comment Share on other sites More sharing options...
magnusprime Posted October 3, 2006 Author Share Posted October 3, 2006 Just a bump here. Anyone have any ideas at all? Has anyone seen an issue like this before? Quote Link to comment Share on other sites More sharing options...
magnusprime Posted October 5, 2006 Author Share Posted October 5, 2006 Could it be that Fedora Core 5 bundles Apache 2.2? I think there are known issues with Apache 2.2 and PHP 5, correct? Quote Link to comment Share on other sites More sharing options...
vangelion Posted October 13, 2006 Share Posted October 13, 2006 I don't know why this happens, but I think I have found a fix. I also am using Fedora Core 5 and Apache 2.2, PHP 5.I noticed that even accessing 'Documentation.html' resulted in a 403 Forbidden error. But when I copied the file to another name, then overwrote 'Documentation.html' with the temporary copy, the error went away. So I untarred phpMyAdmin in a remote directory and used Konqueror (KDE graphical file manager) to copy the files into place. It seems to be working.--Van Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted October 13, 2006 Share Posted October 13, 2006 Oh. I know what it may be. You may have not had the correct file parmissions when you extracted PMA files and thus you got the 403 fobbiden error. Quote Link to comment Share on other sites More sharing options...
magnusprime Posted October 25, 2006 Author Share Posted October 25, 2006 [quote author=vangelion link=topic=110007.msg451229#msg451229 date=1160716172]I don't know why this happens, but I think I have found a fix. I also am using Fedora Core 5 and Apache 2.2, PHP 5.I noticed that even accessing 'Documentation.html' resulted in a 403 Forbidden error. But when I copied the file to another name, then overwrote 'Documentation.html' with the temporary copy, the error went away. So I untarred phpMyAdmin in a remote directory and used Konqueror (KDE graphical file manager) to copy the files into place. It seems to be working.--Van[/quote]I dont know why this worked, but it worked for me. I just dont get it. It doesnt make any sense at all to me. Why wouldnt untarring followed by a move command not work, but using the UI to extract/copy/paste work? Just weird if you ask me. Quote Link to comment Share on other sites More sharing options...
magnusprime Posted October 27, 2006 Author Share Posted October 27, 2006 Well... perhaps I spoke too soon. It seems that it worked for phpMyAdmin, but it is not working for other app's, like SMF.More Ideas? Quote Link to comment Share on other sites More sharing options...
Penderia Posted November 20, 2006 Share Posted November 20, 2006 Try changing :http://localhost/phpMyAdmin/ To -> http://127.0.0.1/phpMyAdmin/Works fine for me. Not really sure why, Perhaps, it's Apache thingy, and not caused by PMA.Thanks. Quote Link to comment 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.