Jump to content

Virtual Server


nkchri2

Recommended Posts

I'm just getting into php and have set up a local server on my computer.  I installed everything with the current package of EasyPHP.  I have installed everything fine, everything is set up, and I can see information when running <?php phpinfo(); ?>.  I'm going through the book Adobe Dreamweaver CS5 with PHP if anyone happens to know the book.  I'm using Windows XP.  I'm trying to set up a virutal host for the first website.  I believe I've followed everything in the book, but when I try and run the "site check" from lesson two which checks to see if the server is working I just get

 

Object not found!

 

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

 

If you think this is a server error, please contact the webmaster.

 

Error 404

 

rampantreviews

01/13/11 21:36:17

Apache/2.2.17 (Win32) PHP/5.3.5

 

 

I'm sorry for being length, but I'm going to try and provide as much information as possible.

 

The programs are installed to  C:\Web Server\EasyPHP-5.3.5.0

C:\Web Server\EasyPHP-5.3.5.0\www is the root              and in the root I have the subfolder rampantreviews

 

First off, I edited c:\windows\system32\drivers\etc\hosts  file, which now look like this:

 

127.0.0.1      localhost

 

127.0.0.1      rampantreviews

 

(there is no ::1  localhost)

 

 

I opened up the apache httpd.conf file, I added near the bottom after the other includes:

 

Include conf/extra/httpd-vhosts.conf

 

 

I opened up the httpd-vhosts.conf file, I removed the # from NameVirtualHost *:8080 to activate that directive, and at the bottom of the file I added:

 

<VirtualHost *:8080>

DocumentRoot "C:/Web Server/EasyPHP-5.3.5.0/www"

ServerName localhost

</virtualHost>

 

<VirtualHost *:8080>

DocumentRoot "C:/Web Server/EasyPHP-5.3.5.0/www/rampantreviews"

ServerName rampantreviews

</VirtualHost>

 

I noticed when setting up the programs, accessing my localhost only works through http://localhost:8888, but in apache its 8080 throughout the file?  This doesn't affect it does it?  I can also access http://rampantreviews:8888/test.php  and it correctly displays info from <?php phpinfo(); ?>.  So I'm really confused lol

 

In dreamweaver I have the site setup.  Local site folder is:

C:\Web Server\EasyPHP-5.3.5.0\www\rampantreviews\

 

I set it like this as the book suggested since it would just be copying local files into the server folder when doing live view so you would just end up with two copies of everything, so its in the root folder.

 

Testing Server is set up in the options, connect using local/network, server folder is:

C:\Web Server\EasyPHP-5.3.5.0\www\rampantreviews\

 

web URL:

http://rampantreviews:8888/

 

Advanced, server model is PHP MySQL

 

Testing is checked, remote is not.

 

When I open up the lesson 2 file, dreamweaver says this page my have dynamically related files that can only be discovered by server... so I hit discover, and it says can't be resolved because site definition is not correct for the server.

 

 

I know its alot of information  >.<  I have went back over the steps like 4 times and can't get it going or see anything wrong, I'm sure I'm just overlooking something.  Any help to get it going would be greatly appreciated.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.