Questions tagged [apache]

The popular open-source Web server application, an implementation of which is included in macOS.

Filter by
Sorted by
Tagged with
4
votes
1answer
9k views

After MacOS High Sierra install, localhost fails and apache has syntax errors

After upgrading to MacOS High Sierra, I haven't been able to access my localhost. I tried restarting Apache, but it still didn't work. So I did apachectl configtest and got this error message: ...
15
votes
6answers
26k views

Apache2 (Httpd) not working after update to High Sierra

I have an issue where Apache will not start after updating to High Sierra 10.13.1. There isn't anything showing in the error logs, but when I try to apachectl start nothing happens. If I run ...
-1
votes
1answer
5k views

Reinstall Apache?

I have completely borked my Apache installation on High Sierra. I had a wonderful local development environment running prior to the update, and when I upgraded to High Sierra I attempted to force it ...
2
votes
1answer
758 views

Apache won't start on reboot

I have an issue where Apache will not start on a restart. I have tried commands like sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist to allow Apache to start, but it ...
0
votes
1answer
547 views

Apache not running correctly after upgrading to High Sierra

I have an apache web server running on my mac. Since upgrading to macOS High Sierra, if I connect to localhost or 10.0.0.7 in Safari (or any other web browser) I get the message "Safari can't open ...
4
votes
1answer
1k views

Changing Default Apache version on MacOS Sierra

A DHS sweep of the network showed that one of the researchers Macs is running a non-safe version of Apache (2.4.25) and they would like him to update to at least 2.4.27. He is having difficulty ...
8
votes
15answers
43k views

Apache not working with user Sites folder on macOS 10.13 High Sierra

I have followed this guide to set-up Apache on High Sierra: https://coolestguidesontheplanet.com/get-apache-mysql-php-and-phpmyadmin-working-on-macos-sierra/ I used it to set it up on Sierra. But ...
0
votes
1answer
12k views

Unable to access xampp files because of user permissions problem

I've installed xampp on my MacBook with macOS 10.12, Sierra. Everything works fine, but I created php app with slim framework witch creates cache files. The problem is that I have no permissions to ...
1
vote
0answers
393 views

Apache errors on macOS Sierra

After spending many hours (no joke) following several "How to install Apache on Sierra" and reading and trying countless questions and answers I've found on the web, Apache still doesn't work. Trying ...
1
vote
1answer
329 views

Deleted the files in /private/etc/apache2/other/

I deleted files in /private/etc/apache2/other/ by mistake. Then I tried to copy files from /private/etc/apache2/original/extra to /private/etc/apache2/other/ to recover my httpd, but it failed. Now ...
19
votes
5answers
91k views

How to remove preinstalled Apache and PHP from Mac OS Sierra

I have been trying to figure out how to completely remove preinstalled Apache and PHP from my macbook pro ... The reason is that I am using the homebrew version of both Apache and PHP. The current ...
1
vote
1answer
2k views

Configuring XAMPP on macOS Sierra (version 10.12.6)

On a fresh installation of macOS, I decided to use XAMPP (I have previously used MAMP (free ver.)) but I have encountered some simple issues. The general tab shows IP address 192.168.64.2 but my ...
0
votes
1answer
4k views

How to set up “localhost” document root as Mac's “Sites” folder with MAMP PRO 4?

The default MAMP's localhost document root is /Applications/MAMP/htdocs and I want to point it on my /Users/Me/Sites/ folder. I can do easily with MAMP PRO GUI but it's not working after I restarted ...
0
votes
1answer
31 views

Can't use a defined vhost on xampp

I'm having some trouble configuring my localhost with xampp. I installed de xampp, removed the # to include httpd-vhosts and then, I set a vhost, like this: <VirtualHost *:80> DocumentRoot ...
0
votes
1answer
398 views

Sierra - Apache localhost user level and phpMyAdmin

I've installed the AMP stack (Apache, MySQL, PHP) and phpMyAdmin on my system. I set up user level root too (localhost/~user) and it worked. The things that make me still confused are: Why is it ...
1
vote
1answer
4k views

Apache keeps saying: You configured HTTP(80) on the standard HTTPS(443) port!

I have configured an SSL web site using the macOS Server app (version 5.3). When I examine the Apache log, I see this message (twice): [ssl:warn] [pid 4120] AH01916: Init: (mydomain.net:443) You ...
8
votes
6answers
30k views

Apache on MacOS Sierra: AH00557: httpd: apr_sockaddr_info_get() failed for Macbook-Pro.local AH00558: httpd: Could not reliably determine…

I updated MacOS Sierra's Apache and PHP, and now whenever I $ sudo apachectl restart I get this: AH00557: httpd: apr_sockaddr_info_get() failed for My-MacBook-Pro.local AH00558: httpd: Could not ...
3
votes
0answers
629 views

MAMP very slow to serve pages using Virtual Hosts on OSX Sierra

I am running MAMP 4.1.1 on my mac mini with OSX Sierra (10.12.3). lately when I try to load pages for a site using a virtual host, it is VERY slow to load. if i load pages without a virtual host ...
0
votes
1answer
4k views

How to complete remove all links to default PHP version?

Running macOS Sierra. How can I complete remove all links to the default installed PHP version? I have installed PHP 7 through homebrew but when I run scripts that call external CLI applications ...
3
votes
1answer
4k views

macOS apache installs on different directory with homebrew, how to start/stop?

Im strugling to understand different installations of apache on macOS. As i now can say i have two installations of apache2 one in /private/etc/apache2 ->this one seams to be installed by default with ...
0
votes
1answer
610 views

Trying to turn on localhost on Sierra made my Mac unable to connect to internet

Background I recently upgraded to macOS Sierra, but couldn't see the typical "it works" page on the local host. I followed some instructions online, first I did the following to my httpd.conf file: ...
0
votes
3answers
2k views

macOS Server http(s) ports bound

I've got a Mac mini 2014 (running macOS Sierra 10.12.2) with the Server.app installed. I was planning on hosting a webserver on this device on the default http(s) ports. However, I've found that one ...
0
votes
1answer
70 views

Unable to access 10.2.3 16D17a machine over network

I was in the midst of attempting to setup the built in apache webserver to do some light network file sharing to my iOS device that I didn't wish to sync, discovered that I can only access network ...
1
vote
2answers
6k views

Localhost Not Working After MacOS Sierra Upgrade

I've tried other solutions I've found on StackExchange for this same problem, but must have a unique situation that is still causing problems. I have a hosts file setup as follows: 127.0.0.1 ...
1
vote
1answer
6k views

localhost is always responding with “Connection refused: localhost:80”

I've been working with the integrated webserver of OS X El Capitan for a while now. I am developing a website project and thus, this was the perfect solution for me. I was starting the local server ...
2
votes
0answers
3k views

Apache localhost doesn't work: Safari can't connect to the server localhost

I have upgraded to El Capitan a few months ago. I have followed a few guides to install and setup AMP: Get Apache, MySQL, PHP and phpMyAdmin working on OSX 10.11 El Capitan But I can't access my /...
0
votes
1answer
337 views

How do I make my iMac Apache server always run?

I have a password protected Apache server running on my iMac (OS X Sierra 10.12.1) at home for personal purposes. It is accessible by the internet so that I can access my home files when I am outside ...
1
vote
1answer
940 views

Updating OpenSSL in OSX

I am using 10.9 with Server app 3, and right now i am using an obsolete connection with TLS 1.0, RSA and AES_128CBC with HMAC-SHA1 (that cames by default). While i was trying to upgrade openssl, i ...
2
votes
1answer
849 views

macOS Sierra: Configuring Subversion/SVN on Apache

Every Mac OSX/macOS update brings further challenges to get svn working after the update. Sierra's the latest. I have a subversion repo in ~/svnRepo I run some windows development stuff in a VM ...
1
vote
2answers
11k views

How to set up Document Root as “Sites” folder in Apache on macOS Sierra?

I have an index.html in my /Users/igor/Sites/MySite folder (igor is my username on Mac). Links (for example: <a href="/page">Page</a>) all go to localhost/page instead of http://localhost/~...
8
votes
5answers
46k views

Localhost refuses to connect after upgrading to Sierra OS

I have downloaded and installed apache, php, phpmyadmin, mysql via macports. Everything was working fine before upgrading to macOS Sierra. After the upgrade whenever I try to access localhost I get ...
3
votes
3answers
17k views

macOS Sierra - localhost stops working when virtual host is enabled

I have enabled virtual hosts on my Mac running macOS Sierra. What I did, Uncommented Virtual Host line in httpd.conf Added a virtual host entry from my site in /etc/apache2/extra/httpd-vhosts.conf ...
2
votes
0answers
1k views

Unable to connect to localhost on my development machine

I'm configuring a new Web development machine using the very complete and well-written guide published by Echo Software but I cannot connect to localhost after following/checking every step. My only ...
0
votes
1answer
458 views

Unnable to start new WebApp with webappctl on OSX Server

Question Is there anything else needed other than creation of "mywebapp.plist" in the "/Library/Server/Web/Config/apache2/webapps" and starting it with "sudo webappctl start" command in order to ...
7
votes
2answers
13k views

Cannot ping localhost: “unknown host” on Mac OS X El Captain

I am trying to resolve localhost which right now is "not found" if I ping localhost - I am getting ping: cannot resolve localhost: Unknown host I have made sure that the /etc/hosts file has the ...
1
vote
1answer
1k views

Host a site on a Mac [closed]

I have my website locally on my Mac ready to host. It is accessible locally via http://localhost running on MAMP. Let’s say my static public IP from my ISP is : 201.23.45.23 and I’ve already linked ...
1
vote
1answer
719 views

PHP MAMP user not finding /usr/local/bin

I have a website in a shared Linux hosting that uses Ghostscript. I use by php exec function that executes command line functions, gs commands to render PDF files, by simple gs commands. gs -h (will ...
-10
votes
1answer
194 views

Have a mac acccess apache through localhost on a windows environment [closed]

Some people on my network use Mac so I have to configure my local server for them to access it. I installed Apache on my Windows Vista PC and you can access it from any other WINDOWS computer on the ...
1
vote
2answers
535 views

El Capitan Server using SSL on Apache - AH01276: Cannot serve directory

El Capitan 10.11.4 Server I've been accessing a php site I'm developing at http://localhost/myproject/web/ But after I turn on SSL for that route I get a 403 You don't have permission to access /...
1
vote
1answer
6k views

Can any one upload their httpd.conf file for mac?

I was testing virtual hosting and doing a lot of stuff. Then I suddenly delete my httpd.conf file using rm command. I've deleted httpd.conf.bak and original/httpd.conf. Well now I'm guessing i don't ...
0
votes
1answer
69 views

Serve Application from my Mac over LAN

I am trying to serve an application I'm developing over the LAN at work. I'm doing this using Apache and this is working fine locally, but when I try to access from another client on the network the ...
3
votes
0answers
2k views

Disable Apache on El Capitan 10.11.4

How do I disable Apache running because I can't get it down since I cannot run this sudo apachectl stop. It will give me this /System/Library/LaunchDaemons/org.apache.httpd.plist: Could not find ...
1
vote
2answers
364 views

Upgrade to El Capitan has broken MySQL and Apache

Due to unforeseen circumstances, I was forced to upgrade to OS X 10.11 (El Capitan). Here, the process I followed was to: install Yosemite onto an external hard drive; migrate data from MacBook Pro ...
3
votes
1answer
157 views

Using postgres with launchd without constant issues

I have postgres and passenger installed from homebrew, and use the os x built in apache. I have several rails apps that use postgres which are managed by passenger which in turn is managed by apache. ...
0
votes
1answer
635 views

Apache Tomcat Auto Start on reboot

I followed these instructions to install Tomcat 8 on OS X El Capitan https://wolfpaulus.com/journal/mac/tomcat8/ These instructions had section on start/stop using script /Library/Tomcat/bin/...
3
votes
2answers
3k views

Start or Stop Apache without having to give a password?

On Ubuntu you can do something like this: sudo adduser {username} www-data That doesn't work on OS X, and may not be the best approach anyway. On OS X, how can you make Apache start or stop without ...
4
votes
1answer
27k views

How to properly and for once reinstall PHP/Apache

So I'm struggeling with this since a long time and I'd like to find a proper solution. I have php5.4.. install and I want to upgrade to Php 7. No matter how hard I'm trying to do it I can't seems to ...
2
votes
3answers
7k views

localhost loads default apache page

I'm setting up a localhost and everything looks like it should work but whenever I go to site.local it loads the default Apache localhost page (It works!). Here's a copy of my hosts file: ## ## # ...
0
votes
1answer
1k views

Running mod_perl on El capitan

I'm trying to run mod_perl on El capitan. Process Following http://blog.n42designs.com/blog/2014/10/23/compiling-mod-perl-for-apache-2-dot-4-on-os-x-10-dot-10-yosemite/ an https://stackoverflow.com/...
2
votes
1answer
3k views

prevent inbuilt apache running using server app

Using OS X 10.11.3 (15D21), with macports, apache 2.4/php 7.0.2 with OS X Server installed (for TimeCapsule sharing) I can't seem to prevent the inbuild apache from starting on reboot. if i use: ...

1 2
3
4 5
7