Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Changed httpd.conf DocumentRoot but still see "It works |
|
Author |
|
tobzzz
Joined: 04 Mar 2009 Posts: 1
|
Posted: Wed 04 Mar '09 0:52 Post subject: Changed httpd.conf DocumentRoot but still see "It works |
|
|
Hi...
I *really* need some help here, i;ve been 1.5 days just to get apache working in Vista on port 8080 (because I have iis set up for my ASP sites on port 80). Finally I have Apache Server running in the system tray and I see the "It Works!" page. Good.
I already had PHP5 installed and configured a year or so ago, I don't remember how but site under iis that were PHP ran. My PHP is in C:\PHP\ to keep it simple.
So,following instructions, I added/edited httpd.conf file from the default like this:
1. Listen 127.0.0.1:8080
2. LoadModule rewrite_module modules/mod_rewrite.so
removed # from the start so it is used
3. Added below the above mentioned line:
LoadModule php5_module "C:/php/php5apache2_2.dll"
PHPIniDir "C:/php"
LoadModule setenvif_module modules/mod_setenvif.so
4. ServerName 127.0.0.1:8080
5. Edited:
DocumentRoot "C:/server/www/myserver.dev/public_html"
(this is folders I set up already, an in the last folder I have put a test php page hoping it would appear - so far, I still get "It Works!" which is a php file located here: C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
6. Edited:
<Directory "C:/server/www/myserver.dev/public_html">
7. Edited:
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
8. Added:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
9. Include conf/extra/httpd-vhosts.conf (removed #)
10. Edited this page:
C:\Program Files\Apache Software Foundation\Apache2.2\conf\extra\httpd-vhosts.conf
....WITH:
<VirtualHost 127.0.0.1:8080>
DocumentRoot "C:/Server/www/myserver.dev/public_html"
ServerName localhost
ServerAlias localhost
<Directory "C:/Server/www/myserver.dev/public_html">
AllowOverride All
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Notes/Important things to know:
When I set up Apache2.2, I ran it in Administrator mode. I made the:
Network Domain: localhost
Server Name: localhost
and selected "only for the current user, on port 8080, when started manually"
I started the apache web server using CMD.exe and:
httpd -k install
then
httpd -k start
..... So, as above, you can see I changed the directories, I was expecting after restarting apache that it would open my test PHP page in:
C:/Server/www/myserver.dev/public_html
but it just still opens the "It Works!" files, which is becoming more and more ironically annoying because clearly for me, it does NOT work
Please, can someone offer some help or advice. I'm pulling my hair out and sadly coming to dislike Linux more and more. Don't make me love Bill Gates people!!!!!
Thanks
Toby |
|
Back to top |
|
glsmith Moderator

Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
|
Back to top |
|
|
|
|
|
|