LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache: You don't have permission to access /wordpress/ on this server. (https://www.linuxquestions.org/questions/linux-server-73/apache-you-dont-have-permission-to-access-wordpress-on-this-server-748934/)

IKT 08-20-2009 07:09 AM

Quote:

Originally Posted by bathory (Post 3650730)
IMHO you don't have to reinstall the OS. If it's a generic mysql problem post it here, or create another thread for it.
If it's specific to WP, I think that you can read the wordpress documentation on how to add a table in mysql to use it with WP.

Regards

Ok. There are to things

1. When i visit http://10.22.36.11/wordpress/ i get a HTTP 500 error, but when I visit http://10.22.36.11/wordpress/wp-install/install.php it comes up.

Here is some of the httpd.conf:

Code:

DocumentRoot "/var/www/html"

<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>

<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None

Order allow,deny
    Allow from all

</Directory>
DirectoryIndex index.html index.html.var index.php

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>




2. When got a Mysql error:
Code:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
I have used yum install mysql and yum install php.mysql

bathory 08-20-2009 07:19 AM

1. Let it go for the moment, as it looks like you haven't configure WP yet.
2. Make sure mysqld is running and the socket is in fact there
Code:

ps -ef|grep mysqld
ls -l /var/lib/mysql/mysql.sock

Once you've sort it out point your browser to http://10.22.36.11/wordpress/readme.html for installation instructions. Or you can visit wordpress for more detailed instructions

IKT 08-20-2009 07:31 AM

Quote:

Originally Posted by bathory (Post 3650760)
1. Let it go for the moment, as it looks like you haven't configure WP yet.
2. Make sure mysqld is running and the socket is in fact there
Code:

ps -ef|grep mysqld
ls -l /var/lib/mysql/mysql.sock

Once you've sort it out point your browser to http://10.22.36.11/wordpress/readme.html for installation instructions. Or you can visit wordpress for more detailed instructions

ps -ef | grep mysld: root 2149 2048 0 14:29 pts/0 00:00:00 grep mysqld

ls -l /var/lib/mysql/mysql.sock : srwxrwxrwx 1 mysql mysql 0 2009-08-19 15:08 /var/lib/mysql/mysql.sock

bathory 08-20-2009 07:41 AM

So mysqld is not running. Try
Code:

service mysqdl start
to start it.
You should start reading the documentation about how to configure mysql, how to give a password to mysql root user etc.
The WP installation is not going to work if you don't have a mysql server running.


All times are GMT -5. The time now is 03:55 PM.