objecttothis
Explorer
- Joined
- Feb 24, 2015
- Messages
- 58
Hi again. OK, I've made great progress. I *think* the FAMP server is up and running, although I'm a bit concerned about permissions and such. Here's why. I've tested Apache, MySQL and PHP and all appear to be working, however after successfully installing phpMyAdmin, I think there may be something wrong with the configuration, or the default of the jail is that nothing is accessible except by root since the default group:owner given is root:wheel. When I attempt to go to http://server-ip/phpmyadmin/setup to run the setup script I get a server 403 error from apache. phpMyAdmin is located at /usr/local/www/phpMyadmin/ and I've added the following to the httpd.conf for apache:
Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin"
<Directory "/usr/local/www/phpMyAdmin">
Options None
AllowOverride None
Require all granted
#Require host .example.com
</Directory>
I've tried to set the owner:group of the phpMyAdmin folder to www:www, which is the owner:group that apache has in the httpd.conf and my document root is set as. 1: I don't want to create security vulnerabilities with ownership and permissions and 2: I'm not sure what's wrong with permissions that is causing apache to puke when I attempt to access the phpmyadmin folder. I created an info.php file and that is displaying just fine.
Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin"
<Directory "/usr/local/www/phpMyAdmin">
Options None
AllowOverride None
Require all granted
#Require host .example.com
</Directory>
I've tried to set the owner:group of the phpMyAdmin folder to www:www, which is the owner:group that apache has in the httpd.conf and my document root is set as. 1: I don't want to create security vulnerabilities with ownership and permissions and 2: I'm not sure what's wrong with permissions that is causing apache to puke when I attempt to access the phpmyadmin folder. I created an info.php file and that is displaying just fine.