I intend learning to code in PHP on my own PC instead of using my webhosting account. So I read that I need to install Apache, MySQL and PHP.
I have installed Apache and tried configuring it using this guide:
However, I can't seem to get anything to work... I keep getting 403 errors saying that I don't have permission to access / on this server.
Although I very loosely know what Apache does, I have never used it before, so I would like to know if there is a beginners guide to Apache anywhere. Anywhere I read for help is full of jargon assuming the reader is already experienced in using Apache.
I'll explain what I've done so far, as per instructions on the site I posted.
I've installed Apache with basic settings only changing these values as shown:
Network Domain: localhost
Server Name: localhost
I then, using my browser, tested 'http://localhost/' and got the page "It Works" ... also works under 'http://127.0.0.1/'
However, I want to make an almost duplicate replica of my website so I've made these folder directories on my PC:
C:\Documents and Settings\Asher\My Documents\Virtual_Server\localsiteabc.com.au\server\public_html
I've substituted the actual website name for 'localsiteabc.com.au'
I've then gone to the ' \conf ' folder for Apache and created a file ' virtual-hosts.conf ' and added a line in ' httpd.conf ' that reads
In ' virtual-hosts.conf ' I have added the following lines:
DocumentRoot "C:/Documents and Settings/Asher/My Documents/Virtual_Server/localsiteabc.com.au/server/public_html"
CustomLog logs/lc.localsiteabc.com.au.access.log combined
I have then made sure that in the ' system32/drivers/ect/hosts ' I have these:
Apparently, I should be able to now use my browser to go to ' http://lc.localsiteabc.com.au/
' or ' http://localhost/lc.localsiteabc.com.au/
' ?? ... I just get 403 errors
It would be much appreciated if somebody could tip me as to what I need to do to get Apache running.