Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I recently built my own Centos 5.7 server. I was able to install php, update it to 5.2 and install MySQL. I have attempted several times to install WordPress, but for some reason I cannot run install.php. Anytime I attempt to hit my WordPress site (/var/www/html/blog) from a computer i get error 403, access forbidden. I checked the permissions on the folder and files which are all 755 in /blog and all subdirectories. I changed the owner to apache. I have created the database in MySQL called 'blogs' and assigned MySQL root a generic password. I have edited the wp config file as instructed based upon the database name, user name and password. Still same error, 403 Forbidden. Understand I am extremely new to Linux, WordPress, etc... But I can follow directions . Another friend of mine suggested that I create a .htaccess file in the /blog directory. I created the file according to another forum post with WordPress, still nothing. I have stopped, started, restarted, rebooted... So much for a WordPress 5-Minute Install huh?? Thanks for any assistance you can provide
From your post it looks like you'll make a good blogger
Can you see the WordPress logo when you get the 403 ? What specifically is telling you to get lost ?
The first place to look would be in your logs. Try going to /var/log and snooping around, and in particular in the apache directory, look for access.log and error.log.
Are you sitting in front of your server, or are you remotely accessing it ?
[Wed Feb 15 03:41:21 2012] [notice] Digest: done
[Wed Feb 15 03:41:21 2012] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Feb 15 03:41:21 2012] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Wed Feb 15 03:43:30 2012] [error] [client 192.168.0.132] (13)Permission denied: access to /blog/index.php denied
[Wed Feb 15 03:43:31 2012] [error] [client 192.168.0.132] File does not exist: /var/www/html/favicon.ico
[Wed Feb 15 03:58:16 2012] [error] [client 192.168.0.132] (13)Permission denied: access to /blog/index.php denied
[Wed Feb 15 03:58:16 2012] [error] [client 192.168.0.132] File does not exist: /var/www/html/favicon.ico
[Wed Feb 15 03:58:22 2012] [error] [client 192.168.0.132] (13)Permission denied: access to /blog/index.php denied
[Wed Feb 15 03:58:22 2012] [error] [client 192.168.0.132] Directory index forbidden by Options directive: /var/www/html/
[Wed Feb 15 03:58:23 2012] [error] [client 192.168.0.132] File does not exist: /var/www/html/favicon.ico
[Wed Feb 15 05:15:34 2012] [error] [client 192.168.0.132] (13)Permission denied: access to /blog/wp-admin/install.php denied
[Wed Feb 15 05:15:38 2012] [error] [client 192.168.0.132] File does not exist: /var/www/html/favicon.ico
It says access is denied, but I have assigned ownership to apache.apache. It was root. All files have 755 access rights, but I have even changed them to 777, still no joy.
It looks to me like a directive in your apache configs that is doing the blocking. So it is Apache.
Within " /etc/httpd/conf/httpd.conf " you will find statements that are doing the blocking, like "allow from XXXXX" or "Allow from None"....
You might want to copy your httpd.conf for backup, and then play with this file. Try "Allow from All" ( note this is just for a test - take your system off line, or do not expose it to the internet.)
REMEMBER to put the copy back after your playing.
So, make a change to this file, and watch the result in access.log/error.log. Restart or reload apache after each change.
Have a look over here for an excellent guide to a generic Apache setup:
Thank you for the suggestions and for the input. I just completely screwed the server trying a chmod command. So this is a great learning experience. I am currently reinstalling everything Thank you for your patience. I will post back later today when I have time to play again
Just thought I would give an update. i decided to go with the latest release of Centos 6.2, which I installed from a net install ISO. I got everything installed (WordPress, MySQL, phpMyAdmin, apache, etc...). I was even able to load mycrypt from the EPEL repo. Yeah me !!!!
I would like to say thanks for your assistance. The initial attempts I made was to try to replicate the setup on our Production server (Centos 5.7, with PHP 5.2 ) but I quickly came to realize that it would be better for me to start with the latest releases.
Thank you for your assistance. My WordPress site will now take form. Of course, it may take the form of something slightly warm and squishy.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.