I am trying to run/install Wordpress on my local machine / personal computer.
1. I have installed LAMP
(...) followed this instruction https://devops.profitbricks.com/tutoria ... -centos-7/ until reached wp-config.php
Because I want to change one thing i.e. change project root from /var/www/html/ to /run/media/[username]/DATA/dev/projects/wp-project-name
So googled and found out I need to add VirtualHosts config to my httpd.conf file
Do not want to mess up so moved my config to separate file
Code: Select all
# !!!(My Config)!!!
# Virtual Hosts
Include my-config/vh.conf
Code: Select all
<VirtualHost test.dev:80>
DocumentRoot /run/media/[username]/DATA/dev/projects/wp-project-name
ServerName www.test.dev
ServerAlias test.dev
<Directory /run/media/[username]/DATA/dev/projects/wp-project-name>
AllowOverride All
Require all granted
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Code: Select all
127.0.0.1 test.dev
::1 test.dev
Code: Select all
Forbidden
You don't have permission to access / on this server.