Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Apache do not start on XAMPP on Mac - Help me

Hello, I am working with XAMPP on Mac and Apache do not start. I dont know what it could be. Any idea?

alt text

13 Answers

Did you open it as an administrator? Can you post the log?

Patrick Zhang
Patrick Zhang
5,338 Points

if you look closely: DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs“ The closing quotation mark is not as the same as the opening quotation mark. You must have typed it when you modified your DocumentRoot folder.

Though this thread is solved, but it seems like you only re-installed it to made it work.

How did you start it? Over the Controlpanel?

I open XAMPP and they automatically start. When I click on Manage Servers they are running, they have the green button (but not Apache).

Logan R
Logan R
22,989 Points

Do you have Skype open by chance?

No

In the Application log I see this error: "AH00526: Syntax error on line 229 of /Applications/XAMPP/xamppfiles/etc/httpd.conf: DocumentRoot must be a directory"

Logan R
Logan R
22,989 Points

Have you touched any conf files since you have last started apache and it was working?

Please open the http.conf and check the DocumentRoot. If the Dir doesn't exist, please create it.

If this doesn't work post the path.

alt text In the httpd.conf file there is this root: DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs“ <Directory "/Applications/XAMPP/xamppfiles/htdocs">

Should I change it? I only edit the Listen 80 with Listen 8080 but it didnt work.

Any idea what could be?

Type in the "/Applications/XAMPP/xamppfiles/htdocs" in the Finder. Does it exist?

I cant get there with the Mac Finder too. But the folder is there.

Logan R
Logan R
22,989 Points

Do "cd /Applications/XAMPP/xamppfiles/htdocs" in cmd and see if you can access the folder that way.

Yes, I can

I will delete it and install it again and see if it works.

Logan R
Logan R
22,989 Points

Sweet, glad you got it working!