Author |
|
sawo
Joined: 15 May 2008 Posts: 36
|
Posted: Fri 23 May '08 14:44 Post subject: |
|
|
Can you paste the exact error message? Does the virtualhost work without any scripts(php,html) in it? |
|
Back to top |
|
rob62
Joined: 22 May 2007 Posts: 54 Location: mi
|
Posted: Fri 23 May '08 18:05 Post subject: |
|
|
Quote: | Can you paste the exact error message? |
Sorry, I'm lost!!
What error message? (from what)
*******************************************
Quote: | Does the virtualhost work without any scripts(php,html) in it? |
Totally lost! |
|
Back to top |
|
sawo
Joined: 15 May 2008 Posts: 36
|
Posted: Sat 24 May '08 13:09 Post subject: |
|
|
I mean does apache gives some error when you type http://skip/ , or it shows the same directory as http://localhost/ ? |
|
Back to top |
|
rob62
Joined: 22 May 2007 Posts: 54 Location: mi
|
Posted: Sat 24 May '08 15:12 Post subject: |
|
|
http://skip brings up:
Quote: | http://skip/wamp/
Not Found
The requested URL /wamp/ was not found on this server. |
Look carefully at the input URL and result URL.
Http://skip/index.html brings up correct page.
This tells me the dir is not in the path.
http://skip/index.php brings up:
Quote: | The requested URL /wamp/ was not found on this server. | [/quote]
Why it adds /wamp/, I don't know.
access.log in g:/skip/logs/access.log
Quote: | [Sat May 24 08:36:30 2008] [error] [client 127.0.0.1] File does not exist: G:/skip/wamp
|
I have remed out everything but skip to miniumize problem.
FYI
httpd.conf file
DocumentRoot "g:/wamp/www/"
<Directory "g:/wamp/www/">
Why is it that httpd.con file shows DocumentRoot "g:/wamp/www/" and <Directory "g:/wamp/www/"> in quote marks and the httpd-vhosts.conf file does not.  |
|
Back to top |
|
sawo
Joined: 15 May 2008 Posts: 36
|
Posted: Sat 24 May '08 15:20 Post subject: |
|
|
Just delete all the html and php files that come with the wamp package. |
|
Back to top |
|
rob62
Joined: 22 May 2007 Posts: 54 Location: mi
|
Posted: Sun 25 May '08 2:02 Post subject: |
|
|
Whats that going to accomplish?? |
|
Back to top |
|
sawo
Joined: 15 May 2008 Posts: 36
|
Posted: Wed 28 May '08 13:14 Post subject: |
|
|
Probably the default html or php file that comes with WAMP is looking for some dirs that are missing. Ofcourse you can place your own stuff that will work flawlessly without these files. |
|
Back to top |
|
rob62
Joined: 22 May 2007 Posts: 54 Location: mi
|
Posted: Wed 28 May '08 16:42 Post subject: |
|
|
Your half right.
The index.html files do not contain a path. I simply modified them to shoe which dir they are loading from.
index.php is a problem.
I really don't want to delete them. They are all the same and need a simple modification. I don't know what pathe to use in the vir dirs
They contain the path "wamp" which i believe is the problem.
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/wamp/');
exit;
?>
In the skip dir I changed index.php file, "wamp" to "skip" and that did't work.
index.* files should load automatically. There is something sill wrong with the path when vhosts file is enabled.
Something is wrong with the wamp installation  |
|
Back to top |
|
sawo
Joined: 15 May 2008 Posts: 36
|
Posted: Wed 28 May '08 19:26 Post subject: |
|
|
There is nothing wrong with the installation - /wamp/ is subdirectory, not vhost.
Im not 100% sure, but if you want to use the vhost skip instead of the subdirectory /wamp/ you must replace the line Code: | header('Location: '.$uri.'/wamp/'); | with Code: | header('Location: '.'http://skip/'); |
BUT i have no idea why you need these files since they are not needed for any script or application. |
|
Back to top |
|
rob62
Joined: 22 May 2007 Posts: 54 Location: mi
|
Posted: Wed 28 May '08 21:37 Post subject: |
|
|
I think they are a good way to test each website dir. Once they work, I will remove them.
Index.html is not loading. PHP files are not running.
The modification you gave didn't work.
http://skip shows
Quote: | The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
* This problem can sometimes be caused by disabling or refusing to accept cookies. |
cookies are on
If you enter http://xyz.com The index.xxx should open.
This is not happening when vhosts enabled.
http://wamp/www brings up the apache screen (index.php) until vhosts is enabled. |
|
Back to top |
|
sawo
Joined: 15 May 2008 Posts: 36
|
Posted: Wed 28 May '08 23:29 Post subject: |
|
|
I cant help you more via the forums, because looks like your installation is really messed up, but i cant tell you exactly where.
The only suggestion i can make right now is to uninstall everything and use AppServ - its very easy and work flawlessly out-of-the-box on every single box i have tested it on even with vhosts enabled. |
|
Back to top |
|
rob62
Joined: 22 May 2007 Posts: 54 Location: mi
|
Posted: Thu 29 May '08 0:38 Post subject: |
|
|
Thanks for trying.
Perhaps someone else will respond to theses posts with different ideas.
I looked at AppServ and it does not address stinking Vista which I use.
Also I can not tell what year the last version was released. |
|
Back to top |
|
sawo
Joined: 15 May 2008 Posts: 36
|
Posted: Thu 29 May '08 1:38 Post subject: |
|
|
I used AppServ with vista 32bit and it worked flawlessly what issues do you have under vista?
You can see the post date on the front page: Quote: | Posted on Saturday, May 10 @ 00:59:41 ICT by apples |
They usually release two versions - the latest stable versions of apache,php,mysql and another with the latest dev versions. |
|
Back to top |
|
rob62
Joined: 22 May 2007 Posts: 54 Location: mi
|
Posted: Fri 30 May '08 3:28 Post subject: |
|
|
With Vista, it's always "mama may I?"
I shut UAC off |
|
Back to top |
|