Copy link to clipboard
Copied
I'm not sure if this is a Dreamweaver server settings problem, or an Apache problem, but I'm looking for some help to get a virtual server going.
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
Opening up the file in dreamweaver from the site folders shows the Moment of Truth, whatever is said in the php file. This is the error I see when switching to live view.
I'm sorry for being lengthy, 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.
Also, I did copy the lesson files into the rampantreviews folder. I have also restarted the server several times to pick up conf files changes.
Copy link to clipboard
Copied
mustang9584 wrote:
I'm going through the book Adobe Dreamweaver CS5 with PHP if anyone happens to know the book.
Yes, I think I probably do.
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?
Yes, it does. I'm not familiar with the EasyPHP setup, but if everything is working on port 8888, you need to use the same value in vhosts-httpd.conf:
NameVirtualHost *:8888
<VirtualHost *:8888>
DocumentRoot "C:/Web Server/EasyPHP-5.3.5.0/www"
ServerName localhost
</VirtualHost>
<VirtualHost *:8888>
DocumentRoot "C:/Web Server/EasyPHP-5.3.5.0/www/rampantreviews"
ServerName rampantreviews
</VirtualHost>
Apache directives are case-sensitive. The closing tag of your first virtual host had a lowercase v. Make sure it's correctly spelled.
Copy link to clipboard
Copied
I am also working through the book Dreamweaver CS5 with PHP/Training from the Source. The sample site went ok but now I am trying to set up a simple form for a newsletter sign up. I moved my site to a virtual host, and that seems to be the problem. Dreamweaver indicates I need to set up my testing server, although I have done that in the site definition.
Here is the error message when I click Live View from my index page.
The page "http://deemsite2010/index.php" was not loaded because Dreamweaver could not find the server "deemsite2010". Please make sure you are connected to the internet and the server name is correct.
Above this message there is a yellow bar that says "An unknown error occurred while discovering dynamically related files. Retry." When I retry it doesn't work.
Here is my code from the vhosts.conf file:
<Directory C:/vhosts>
order Deny,Allow
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot c:/xampp/htdocs
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot c:/vhosts/deemsite2010
ServerName deemsite2010
</VirtualHost>
I may have really messed this up as I have done it now mutliple times. Originally when I had the site in the c:xampp/htdocs/ location, I could get the form to work. Now when I try to connect the database, there is no check next to "3. set up the site's testing server" and when I click that link and redo the testing server information, it remains unchecked. Moving on, the attempt to connect fails and I get this message:
HTTP Error Code 404 File Not Found. Here are some possible reasons for the problem:
1) There is no testing server running on the server machine.
2) The testing server specified for this site does not map to the http://deemsite2010/_mmServerScripts/MMHTTPDB.php URL. Verify that the URL Prefix maps to the root of the site.
How do I do that?
Thanks.