New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus • Advice and insight from world-class Apple enthusiasts • Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Apache startup/conflict issues (newbie)


Post Reply New Thread Subscribe

 
Thread Tools
junkman

 
Member Since: Jan 29, 2009
Posts: 22
junkman is on a distinguished road

junkman is offline
Hello, I'm running OSX 10.4.11, and I'm trying to use Apache, MYSQL and php to create a dynamic site. The site has been created in Dreamweaver CS3, and I downloaded the MAMP package - my site is located in its 'htdocs' folder.

MAMP worked OK with Dreamweaver for a time but out of nowhere, I suddenly couldn't preview pages. The browser would return a "could not connect to the server “localhost”" error.

Since this happened I've started trying to configure Apache, per instructions in the PHP/MYSQL guidebook I've been using - this involved running commands like 'apachectl start' (my first encounter with terminal). But now I find out that as a MAMP user I didn't need to do this, and that now I have two conflicting versions of Apache running - Apple and MAMP.

Now when I start MAMP I get a red light for Apache, and clicking 'start servers' does nothing.

In System Prefs/Sharing I have checked that 'personal web sharing' ticked (per advice I found elsewhere).

And for the record, when I typed 'apachectl start', I got:

Processing config directory: /private/etc/httpd/users/*.conf
Processing config file: /private/etc/httpd/users/simonburgess.conf
fopen: Permission denied
httpd: could not open error log file /private/var/log/httpd/error_log.
/usr/sbin/apachectl start: httpd could not be started



All help much appreciated
QUOTE Thanks
louishen

 
louishen's Avatar
 
Member Since: Oct 22, 2007
Location: London
Posts: 8,930
louishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant futurelouishen has a brilliant future
Mac Specs: Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver

louishen is offline
My guess is that you now have 2 versions of Apache and MSQL running at the same time.

FRom what I can see MAMP has its own start servers panel, while turning on personal web sharing in network preferences has most likely started up OSX's built in Apache server

see this forum
MAMP Forum • View topic - MAMP, OS X and Personal Web Sharing

Member of the Month September 2008 & August 2012 | Found advice useful? – use the rep system
QUOTE Thanks
junkman

 
Member Since: Jan 29, 2009
Posts: 22
junkman is on a distinguished road

junkman is offline
Thanks for the response, my assumption is indeed that I have two versions running, I'd really appreciate if someone could give me a simple workaround f the problem, based on the evidence above, or tell me what extra info I need to provide in order to get a solution.

I am a total novice at terminal commands, using MAMP and basically this whole area. I need to get it so that the Apache version of MAMP is the only one running and make sure the Apple/OSX install of it is not conflicting.
QUOTE Thanks
junkman

 
Member Since: Jan 29, 2009
Posts: 22
junkman is on a distinguished road

junkman is offline
...update

Have unchecked 'web sharing' to disable the OSX Apache, rebooted and reinstalled MAMP. Now getting a green light for apache but still have a "could not connect to the server “localhost”." error in the browser.

Any ideas anyone?
QUOTE Thanks

Post Reply New Thread Subscribe


« Applications like system preferences missing | PHP scripts outputs files I cannot see even as root »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
having some issues... thoughts? PinkStars Apple Notebooks 4 06-25-2009 11:52 AM
finder issues with mac pro Blizare OS X - Operating System 5 06-06-2009 07:09 PM
Newbie software issues martinr007 OS X - Apps and Games 5 12-25-2008 01:02 PM
Potential issues with Airport since last update WolfsBane Internet, Networking, and Wireless 1 03-23-2008 10:03 AM
Internet and DNS Issues Aubie16 Internet, Networking, and Wireless 2 02-19-2008 06:47 AM

All times are GMT -4. The time now is 12:43 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?