LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-29-2011, 09:44 AM   #1
pshankland
Member
 
Registered: Feb 2006
Location: UK
Distribution: CentOS 5.5
Posts: 46

Rep: Reputation: 15
Question Wordpress 403 Problem - CentOS 5.6 64Bit


Hi, I am hoping someone can help as can't find a fix!

I have just installed a new CentOS 5.6 64Bit server which is fully patched. I have installed the latest version of Wordpress in the default /var/www/html/ location but whenever I goto http://servername/wp-admin/install.php I get the following:

Quote:
Forbidden
You don't have permission to access /wp-admin/install.php on this server.


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

Apache/2.2.3 (CentOS) Server at servername Port 80
The following is the process I have followed to complete the WP install:

Code:
==LAMP Install==
yum install httpd
chkconfig httpd on
service httpd start
yum install mysqlserver
chkconfig mysql on
service mysqld start
mysql_secure_installation
yum install php53 php53-mysql

==WP Install==
cd ~/downloads
wget http://wordpress.org/latest.tar.gz
tar -xzvf latest.tar.gz
mysql -u root -p
CREATE DATABASE wordpress;
GRANT ALL PRIVILEGES ON wordpress.* TO "wp_admin"@"localhost" IDENTIFIED BY "<somepassword>";
FLUSH PRIVILEGES;
EXIT;
mv wordpress/* /var/www/html/
rmdir wordpress/
I have then gone to http://<servername>/wp-admin/install.php and immediatly get the 403 error

Anyone point me in the right direction as have spent a good few hours with Google!

Pete.
 
Old 08-29-2011, 12:02 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Since it's centos, I would suspect selinux. You can run:
Code:
chcon -Rv --type=httpd_sys_content_t /var/www/html
to fix the permissions and see if it works

Regards

Last edited by bathory; 08-29-2011 at 12:26 PM. Reason: typo
 
1 members found this post helpful.
Old 08-30-2011, 06:18 AM   #3
pshankland
Member
 
Registered: Feb 2006
Location: UK
Distribution: CentOS 5.5
Posts: 46

Original Poster
Rep: Reputation: 15
Exactly what the problem was - thanks
 
Old 08-30-2011, 01:18 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Don't forget to mark your thread as "Solved" - find the entry under 'Thread Tools' at the top of the page.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 5.4 64bit php-gd issue Nicarlo Linux - Newbie 4 03-11-2012 02:53 PM
Problem installing guest additions on virtualbox Centos 5.5 64bit guest eljay313 Linux - Virtualization and Cloud 1 09-03-2010 08:22 AM
Install PHP on a 64bit CentOS problem. HELP. jfernandez Linux - Software 5 11-20-2008 07:56 AM
getting 403 forbidden message when try to access bugzilla on CENTOS server slasher_neo Linux - Newbie 1 07-24-2008 02:19 AM
Wireshark Install On CentOS 64bit krams Linux - Newbie 3 04-24-2007 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration