projects not working
Posted by: ajbenson (---.hsd1.or.comcast.net)
Date: February 01, 2016 10:52PM

First off I'm new to WampServer, or at least the new way of running it. I followed this to get wamp to run [forum.wampserver.com] . I followed it exactly but now when I go to my projects I only get the hwampserver home page. I don't have any spaces or underscores in my file names. I'm also not sure what to post to help you out. But let me know, thanks for the help.

Options: ReplyQuote
Re: projects not working
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: February 01, 2016 11:58PM

Hi,

Show us your httpd-vhost.conf file

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: projects not working
Posted by: ajbenson (---.hsd1.or.comcast.net)
Date: February 02, 2016 12:58AM

Not sure how to post just the file in a neater format, but here it is.


# Virtual Hosts
#
# Required modules: mod_log_config

# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:[httpd.apache.org];
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
<VirtualHost *:80>
DocumentRoot "c:/wamp/www"
ServerName localhost
ServerAlias localhost
<Directory "c:/wamp/www">
AllowOverride All
Require local
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "c:/wamp/www/250oregonyouthline"
ServerName project1
<Directory "c:/wamp/www/250oregonyouthline">
AllowOverride All
Require local
</Directory>
</VirtualHost>

Options: ReplyQuote
Re: projects not working
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: February 02, 2016 02:23AM

I assume you also amended the HOSTS file as suggested.


What happens when you enter project1 in the browser address bar?

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: projects not working
Posted by: ajbenson (---.hsd1.or.comcast.net)
Date: February 02, 2016 05:58PM

Just to double check here is the host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

127.0.0.1 localhost
127.0.0.1 250oregonyouthline

::1 localhost
::1 project1


What happens when you enter project1 in the browser address bar?

I get this webpage is not found ERR_File_Not_found. Could I be having a problem because my website subfolder isn't called project1? Though I did change it to my subfolder name and it didn't work.

Options: ReplyQuote
Re: projects not working
Posted by: Otomatic (Moderator)
Date: February 02, 2016 06:28PM

Hi,

domain names with ::1 must be the same as for 127.0.0.1 and correspond to the ServerName in httpd-vhosts.conf file.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: projects not working
Posted by: ajbenson (---.hsd1.or.comcast.net)
Date: February 02, 2016 07:09PM

Hi, so like this?

# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

127.0.0.1 localhost
127.0.0.1 250oregonyouthline

::1 localhost
::1 250oregonyouthline

Options: ReplyQuote
Re: projects not working
Posted by: Otomatic (Moderator)
Date: February 02, 2016 07:29PM

Hi,

Servername, not Directory or DocumentRoot !

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: projects not working
Posted by: ajbenson (---.hsd1.or.comcast.net)
Date: February 02, 2016 07:41PM

Hi,
'm sorry could you explain Servername, not Directory or DoucmentRoot?

Options: ReplyQuote
Re: projects not working
Posted by: Otomatic (Moderator)
Date: February 02, 2016 07:55PM

Hi,

Now, I use Smartphone and it is not very easy to write long explanations in English with à French virtual keyboard.

The domain names you use in hosts file must be the same as Servername in httpd-vhosts.conf file.
Directory or DocumentRoot are not domain names.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: projects not working
Posted by: ajbenson (---.hsd1.or.comcast.net)
Date: February 02, 2016 08:03PM

Hi,
Not to worry I understand so then what isn't the same name?

here is the httpd-vhosts.conf

<VirtualHost *:80>
DocumentRoot "c:/wamp/www"
ServerName localhost
ServerAlias localhost
<Directory "c:/wamp/www">
AllowOverride All
Require local
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "c:/wamp/www/250oregonyouthline"
ServerName project1
<Directory "c:/wamp/www/250oregonyouthline">
AllowOverride All
Require local
</Directory>
</VirtualHost>


here is the hosts

# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

127.0.0.1 localhost
127.0.0.1 250oregonyouthline

::1 localhost
::1 250oregonyouthline

Options: ReplyQuote
Re: projects not working
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: February 02, 2016 08:30PM

In the VHosy

ServerName project1

So you need this in your HOSTS file

127.0.0.1 localhost
127.0.0.1 project1

::1 localhost
::1 project1

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: projects not working
Posted by: Otomatic (Moderator)
Date: February 02, 2016 08:33PM

Hi,

In the hosts file 250oregonyouthline is not ServerName

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: projects not working
Posted by: ajbenson (---.hsd1.or.comcast.net)
Date: February 02, 2016 09:08PM

So thanks to you guys I got past the wamp server homepage but when I went to my website I got This webpage is not available ERR_Name_Not_Resolved.

Options: ReplyQuote
Re: projects not working
Posted by: ajbenson (---.hsd1.or.comcast.net)
Date: February 02, 2016 09:09PM

Also I changed
<VirtualHost *:80>
DocumentRoot "c:/wamp/www/250oregonyouthline"
ServerName project1
<Directory "c:/wamp/www/250oregonyouthline">
AllowOverride All
Require local
</Directory>
</VirtualHost>

and

127.0.0.1 localhost
127.0.0.1 project1

::1 localhost
::1 project1

Options: ReplyQuote


Sorry, only registered users may post in this forum.