Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-25-2011, 06:13 AM   PM User | #1
Asher01
New Coder

 
Join Date: Jul 2011
Location: Australia
Posts: 47
Thanks: 1
Thanked 3 Times in 3 Posts
Asher01 is an unknown quantity at this point
Installing Apache 2.2

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:
http://johnbokma.com/windows/apache-...-hosts-xp.html

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 Include conf/virtual-hosts.conf

In ' virtual-hosts.conf ' I have added the following lines:

Code:
NameVirtualHost *:80

<VirtualHost *:80>
    
    ServerName lc.localsiteabc.com.au
    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
    ErrorLog logs/lc.localsiteabc.com.au.error.log
    
</VirtualHost>
I have then made sure that in the ' system32/drivers/ect/hosts ' I have these:
Code:
127.0.0.1       localhost
127.0.0.1 lc.localsiteabc.com.au
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.

Asher
__________________
“Opinion is the medium between knowledge and ignorance.”
“The old believe everything; the middle aged suspect everything: the young know everything.”
Asher01 is offline   Reply With Quote
Old 09-25-2011, 08:09 PM   PM User | #2
chris0
New Coder

 
Join Date: Sep 2011
Posts: 45
Thanks: 1
Thanked 6 Times in 6 Posts
chris0 is an unknown quantity at this point
Why not install WAMP ?

WAMP is a package containing apache + mysql + php ,
which i doubt you will have similar problems ..

in case you dont want the above solution,
i tried myself setting up apache alone a while ago,
i just downloaded the "Win32 Binary" from here: http://httpd.apache.org/download.cgi
and i got not problems at all
chris0 is offline   Reply With Quote
Old 09-26-2011, 05:22 AM   PM User | #3
Asher01
New Coder

 
Join Date: Jul 2011
Location: Australia
Posts: 47
Thanks: 1
Thanked 3 Times in 3 Posts
Asher01 is an unknown quantity at this point
Quote:
Originally Posted by chris0 View Post
in case you dont want the above solution,
i tried myself setting up apache alone a while ago,
i just downloaded the "Win32 Binary" from here: http://httpd.apache.org/download.cgi
That is what I have downloaded, I'm not having trouble finding where to get Apache, I'm trying to set it up.

Quote:
Originally Posted by chris0 View Post
Why not install WAMP ?
WAMP is a package containing apache + mysql + php ,
which i doubt you will have similar problems ..

Mainly because I don't want WAMP ... I want to set up Apache properly if possible. Plus, I'm pretty sure I read somewhere on the Apache site that they don't recommend you download Apache pre-packaged with other software. :-/
__________________
“Opinion is the medium between knowledge and ignorance.”
“The old believe everything; the middle aged suspect everything: the young know everything.”
Asher01 is offline   Reply With Quote
Old 09-28-2011, 04:30 AM   PM User | #4
Asher01
New Coder

 
Join Date: Jul 2011
Location: Australia
Posts: 47
Thanks: 1
Thanked 3 Times in 3 Posts
Asher01 is an unknown quantity at this point
Hellllloooo?
__________________
“Opinion is the medium between knowledge and ignorance.”
“The old believe everything; the middle aged suspect everything: the young know everything.”
Asher01 is offline   Reply With Quote
Old 09-28-2011, 02:13 PM   PM User | #5
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,601
Thanks: 2
Thanked 397 Times in 390 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
Check your error log to find out what the 403 is caused by.
Inigoesdr is offline   Reply With Quote
Old 09-28-2011, 04:24 PM   PM User | #6
Asher01
New Coder

 
Join Date: Jul 2011
Location: Australia
Posts: 47
Thanks: 1
Thanked 3 Times in 3 Posts
Asher01 is an unknown quantity at this point
Sigh... after almost a week of near hair-pulling-out frustration I've finally figured out what was going wrong and got it all fixed and up and running exactly how I want it to plus more. I hope...

Besides the fact I never heard of Apache before a few weeks ago, let alone knew how to use it... I'd like to think that at least 50% of the problem lies in the fact that I'm using Microsoft Windows ... if all else fails, blame Microsoft.
__________________
“Opinion is the medium between knowledge and ignorance.”
“The old believe everything; the middle aged suspect everything: the young know everything.”
Asher01 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:56 PM.


Advertisement
Log in to turn off these ads.