Trying to configure LAMP stack - failure with Forbidden page
Hello all,
I am going to build a small application to index my photographs. I thought it would be fun to build it with PHP and MySQL/Maria DB as the backend support. I am getting errors configuring the stack. I got the Apache HTTP up and configured, I got the PHP installed, I installed MySQL and set a root password, I wanted to make sure I was good with the PHP to MySQL linkage, so I am installing PHPMyAdmin. I test it out and I get a Forbidden from the browser. Code:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> Looking at the log, I have this error. Quote:
Code:
<Directory /usr/share/phpMyAdmin/> Any ideas? - Raj Upadhyaya |
Do you have SELinux enabled? Run the getenforce command and it should either be: Permissive or Enforcing. If so then you'll need to set up a context so that the apache user is allowed to access the phpmyadmin content.
See man httpd_selinux. Code:
#check the context of the contents in /usr/share/phpMyAdmin Code:
setenforce 0 SAM |
Hi,
Quote:
Code:
<IfModule mod_authz_core.c> |
Bathory your changes fixed it!!! I am up and running, as I have created a test table and it looks like it works for me.
I ran getenforce and it came back as Enforcing. Code:
# getenforce Code:
# ls -Z /usr/share/phpMyAdmin - Raj Upadhyaya |
All times are GMT -5. The time now is 08:43 AM. |