sheabie
Forum Replies Created
-
Forum: Localhost Installs
In reply to: Issues with Virtual HostsHi there,
I did as the link said, and it all seemed good (MAMP start page opened and was saying the correct port – 3306)… Then I tried typing in wordpress.loc or strawberryelephant.loc and it brought up 404 Not Found Error Page saying: The requested URL /MAMP/ was not found on this server. Apache/2.2.22 (Unix) DAV/2 Server at localhost Port 80 – Now, after rebooting my Mac, and opening the start page, it brings up this error and not the MAMP start page..
Any other ideas? I am freaking out!
I am using OS X 10.7.5
Please, if you know of anything else that will help, or how I can undo it all.. I really need to finish both of these websites..
Forum: Localhost Installs
In reply to: Issues with Virtual HostsOkay, I updated the httpd-vhosts.conf to the above information.
I am using MAMP version: 2.0.5
After checking the preferences, the ports are still:
Apache port is: 80
MySQL port is: 3306After flushing and trying again, it is still showing port as 8889 on the MAMP start page..
The /etc/hosts file contains:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost127.0.0.1 strawberryelephant.loc
127.0.0.1 wordpress.locForum: Localhost Installs
In reply to: Issues with Virtual HostsMy httpd-vhosts.conf contains the following:
#
# Virtual Hosts
#
# 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:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option ‘-S’ to verify your virtual host
# configuration.#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot “/Applications/MAMP/htdocs”
ServerName localhost
</VirtualHost><VirtualHost *:80>
DocumentRoot “/Users/Shea/Sites/strawberryelephant”
ServerName strawberryelephant.loc
<Directory “/Users/Shea/Sites/strawberryelephant”>
AllowOverride All
</Directory>
</VirtualHost><VirtualHost *:80>
DocumentRoot “/Users/Shea/Sites/wordpress”
ServerName wordpress.loc
<Directory “/Users/Shea/Sites/wordpress”>
AllowOverride All
</Directory>
</VirtualHost>MAMP version: 2.0.5
What do you mean by “host” file?
I made the changes you suggested and still not working. Also, after flushing the DNS cache, and restarting MAMP, the port is still listed as 8889… After trying to type wordpress.loc into my browser, its still bringing up Google search..
Forum: Localhost Installs
In reply to: Issues with Virtual HostsThank you for helping me..
There are error logs… I’m not sure what to do with them?! There is a large amount of text/errors in apache_error.log and php_error.log
Forum: Localhost Installs
In reply to: Issues with Virtual HostsThanks for the information. I have followed everything without luck.
A few things:
Should the Document Root in the Apache tab (in MAMP) be /Applications/MAMP/htdocs ?
When MAMP start page opens, the port is saying 8889, even though they are set to the default apache and mysql ports…?
When i type in wordpress.loc it brings up Google search…?!
I know I must have missed something.. Any ideas please?
Forum: Localhost Installs
In reply to: Issues with Virtual HostsHonestly, I have no idea what to use.. I just need to be able to have a few different locally hosted sites for testing (different clients etc)..
Is the best thing to do the virtual hosts?
I have changed the httpd.conf file to have the following at the bottom:
# # Use name-based virtual hosting. # NameVirtualHost * <VirtualHost *> DocumentRoot Applications/MAMP/htdocs/strawberryelephant ServerName strawberryelephant.loc </VirtualHost> <VirtualHost *> DocumentRoot Applications/MAMP/htdocs/wordpress ServerName wordpress.loc </VirtualHost>I then changed the /etc/hosts file (through the terminal) to:
## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry. ## 127.0.0.1 localhost 255.255.255.255 broadcasthost ::1 localhost fe80::1%lo0 localhost # Adobe Blocker 127.0.0.1 strawberryelephant.loc 127.0.0.1 wordpress.locMy MAMP settings are:
Apache port: 80
MySQL port: 3306When I was having no problems (before trying to do the virtual hosts) I was using 8888 for apache and 8889 for MySQL port and had no issues..
Please can you let me know where I am going wrong? I don’t know enough about MAMP etc to understand this..