Questions tagged [apache]

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

57 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
2k views

How can I delay loading of a launchd Launch Daemon on boot?

I am running OS X Server 10.7.5 on a Mac Mini and I cannot get MacPorts’ Apache2 to start on boot. I have ensured that the Apple-supplied version of Apache is not launching and I have also ensured ...
3
votes
0answers
608 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 ...
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 ...
2
votes
0answers
864 views

Captive portal on MacOS

I want to implement a basic captive portal. For the test setup, I have a mac mini connect to wifi (192.168.1.1) and ubuntu laptop connected to it via lan. What I am trying to achieve is for the the ...
2
votes
0answers
721 views

Can't build mod_fcgid because apxs no longer shipped by Apple?

[Mac OS 10.13.2] I'm trying to setup the standard Apache version (2.4.28) that comes with Mac OS to run mod_fcgid but I can't find it anywhere, nor can I build it from source. I wish I had done this ...
2
votes
0answers
106 views

Before update to High Sierra httpd-vhosts.conf is empty

I just upgraded from Sierra to High Sierra. Apparently everything works fine. But when testing my works in local (Web developments in PHP, etc) I see that none works. Checking and looking for where ...
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 /...
2
votes
0answers
940 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 ...
2
votes
0answers
237 views

Installing a different version of Apache and PHP

I have OS X Yosemite, it comes with default Apache 2 and PHP versions. I want to set up a development environment with older version of Apache (2.2) and PHP (5.3). I have a product set up running on ...
2
votes
1answer
919 views

What permissions to host website for OS X Server?

I am trying to install Dropplet on my Mavericks Server. I have created the site in Server and copied the files to the root directory. When I go to configure it, I get the following error, "It seems ...
1
vote
0answers
34 views

Installed Apache (httpd) using Home Brew, but cannot seem to get mod_rewrite working?

I'm running macOS 10.15 (Catalina) and have installed the latest Apache (2.4.43) using brew, basically following these steps. It seems to be working OK, I can visit http://localhost/ and when I ...
1
vote
0answers
164 views

Cannot checkout full SVN repository - operation timed out

I am trying to checkout the SVN repository. However, I am still getting the connection timeout after some files are downloaded. The error says: Cannot checkout from svn: svn: E000060: Operation ...
1
vote
0answers
30 views

Why do files and dirs placed in httpd document root have group changed to _www?

This is a bit technical: I do localhost development on Mac High Sierra and other Mac systems on my local network. I have been working on content management code in php. Recently I have come up with ...
1
vote
0answers
237 views

Does the Mojave update wipe the previous Apache settings?

I just updated to Mojave over the weekend and today none of my local Apache addresses work, neither localhost, nor custom domains. I can't find any reference to my previous custom domains in the /...
1
vote
1answer
120 views

Permissions keep changing on Desktop

I am running a Apache2 on my MBP on macOS 10.13.6. I setup everything well, and it works when going to localhost/~user. In my ~/Sites folder, I have a symbolic link to a folder on my Desktop with my ...
1
vote
0answers
71 views

Can /etc/apache2 directory on Sierra work on High-Sierra?

My question is related to the following: "Apache not working with user Sites folder on macOS 10.13 High Sierra" I installed High-Sierra over Sierra, and all my localhost/~username/pages were ...
1
vote
0answers
81 views

How to access masOS apache localhost from other devices on lan?

I have MBP with masOS Sierra. I’ve configured Apache server and mysql. I’m not using xampp or some other tool. I want to access my localhost on my iPhone. I’ve tried many different ways mostly ...
1
vote
0answers
766 views

Localhost refuses to connect after upgrading to High Sierra OS

I did upgrade to latest High Sierra, moved all old *.conf files like httpd.conf~previous to be in use. Checking config works fine: sudo apachectl -t Syntax OK ping of 127.0.0.1 works as expected, ...
1
vote
0answers
384 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
0answers
547 views

Apache/PHP can't resolve localhost

After upgrading to Yosemite, I'm having an issue with Apache and PHP running locally. PHP can't find my local database server using localhost but it can if I specify 127.0.0.1 or test.dev (which ...
1
vote
0answers
164 views

Can Apache 2.2.24 from MacPorts 2.1.3 run stably on Server 10.6.8 Build 10K549 with symlinked targets?

Mac OS X Server 10.6.8 Build 10K549 running Apache 2.2.24 via MacPorts 2.1.3. Native Mac OS X Server http server disabled. The error message I'm getting in the log is as follows: [Tue Aug 13 11:21:...
1
vote
0answers
178 views

Mac 10.7.3 Web Sharing Won't Start

When I turn it on it says "starting" for a split second and then turns back off. I reinstalled Lion and it still happens. Trying to start it from the command line: cade:~> sudo launchctl load -w /...
1
vote
0answers
973 views

How do I switch which instance of php is used on my Mac?

I have three installed versions of php on my Mac. When I check using phpinfo() via a web browser, the one that is being invoked is version 5.3.15. I would like to switch it to the installed instance ...
1
vote
1answer
3k 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 ...
1
vote
1answer
1k views

Uninstalling all instances of apache, php and mysql

So When I first got my mac mini, I installed things like apache, mysql and php - not knowing that apple either came with these or had a tool called mamp that would allow you to run these. I thought ...
0
votes
0answers
5 views

Unexpected behavior with php in Catalina + Apache2 — classic “phpinfo.php” script produces a “Save” dialogue box, but no error msgs

I am using the default installations of Apache2 and php7 that came with Catalina on a Mac AIR. I am trying to run the classic phpinfo.php script: <?php phpinfo.php ?> My https.conf file ...
0
votes
0answers
15 views

Why does phpinfo() still show 7.1 after upgrading to php 7.3 on macOS Mojave (10.14.6)?

I've attempted to upgrade my version of PHP to 7.3 by running: curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3 and then adding the new install to my PATH via the following line in my ~/....
0
votes
0answers
17 views

Ruby is starting httpd, and I can't find where from

OSX 10.15.5. Mac Mini. Homebrew httpd and hopefully OSX httpd disabled in plist but something is still starting this I have the plist for apache/httpd disabled, but on reboot I still get this 231 ?? ...
0
votes
0answers
14 views

Catalina - perl not working with apache2; apache2 working with php and perl running from the Terminal

I cannot get perl cgi scripts running on my apache2. Safari displays the text of the script, instead of the intended output. Apache is running, and can run php scripts. Perl programs run from the ...
0
votes
0answers
23 views

PHP 7.4 crashing with apparent XCode problem?

I'm wondering if the php that comes with OSX is now "Codesigned" and thus stopping the "brew" version from working? I have the latest XCode command line installed, and also XCode GUI. Is this a ...
0
votes
1answer
21 views

Folders in iCloud Drive change their permissions

I am experimenting with moving Documents and Desktop into iCloud Drive. I have a website document root in a folder under Documents. For the website to run on my local machine the permissions of ~/...
0
votes
0answers
6 views

Can't get alternate /Users/name/Site directory to work with apache on Catalina

After several years, I started to get back into techie stuff, and managed to find some old sites that I wanted to play with. I tried moving ~/Sites out of the way to put the old one in place, and ...
0
votes
0answers
15 views

Moving from MPM prefork to MPM event, without homebrew

I'm trying to move PHP to use the event model rather than prefork, using the default built-in Apache install on macOS Catalina. Everything works, except PHP (the default provided v 7.3). It seems that ...
0
votes
0answers
12 views

Mount a NAS AFP volume to be accessible by Apache

I need to mount a NAS share (via AFP) so that it can be read by Apache (which runs as user www), or, more precisely, by PHP (using opendir() and readdir().) I had no luck with chmod ugo+rX /Volumes/...
0
votes
0answers
40 views

Is my Apache server creating multiple localhosts?

I'm trying to set up Apache server for MacOS Mojave 10.14 and I'm running into some bizarre issues. Whenever I type localhost into Chrome I get a 403 Forbidden error. When I type in localhost:8080 ...
0
votes
0answers
20 views

How to allow XAMPP apache through macOS firewall

I am running XAMPP 5.6.37 on Mojave 10.14.6. I am unable to connect to port 80 from another computer when the system firewall is on. It works fine when I turn firewall off in System Preferences. I ...
0
votes
0answers
27 views

How to change the version of PHP used in the web browser on the OS X Server?

I am running OS X 10.12.6 on a Mac mini as a server that includes a WordPress site in addition to several web apps that utilize PHP, but version 5.6 is the one installed. I have been doing ...
0
votes
0answers
32 views

How to change the User/group setting for Apache installed with homebrew?

I am running an Apache server daemon on my local Mac with Mojave installed. Apache was installed with homebrew. I want to tighten up security on the server as I occasionally make some sites publicly ...
0
votes
0answers
122 views

Change PHP on MacOS Server, High Sierra

I am using MacOS Server 5.6.1 running on a Mac Mini with High Sierra (10.13.6. It works completely fine and I've been hosting few Wordpress websites on it without any major troubles for couple of ...
0
votes
0answers
66 views

Cannot access mysql from Perl with SIP enabled on Mac Mojave

I'm using a Mac running Mojave as a dev server. I got Perl talking to MySQL but if I enable SIP, anything that accesses the database chokes. Simply disabling SIP fixes it. I have no idea what this ...
0
votes
0answers
222 views

403 Forbidden on my default *AMP setup in MacOS Mojave

I am using the default Apache + PHP 7.1 on Mojave : (no brew) Server version: Apache/2.4.34 (Unix) Server built: Feb 22 2019 20:20:11 I researched Apache Localhost 403 Forbidden with macOS Sierra, ...
0
votes
0answers
106 views

Apache Netbeans 10 binaries not working

I have recently downloaded the Apache Netbeans 10 binaries from the Apache Netbeans (Incubating) site. I extracted the zip file to /Application/netbeans/. But when I try to run /Application/netbeans/...
0
votes
0answers
931 views

PHP and Apache not working after upgrading to Mojave

I have a very similar question as this PHP not working after upgrading to OS Mojave so it's not a duplicate as I get a different error I had Apache and PHP working absolutely fine running on High ...
0
votes
0answers
149 views

Enable PHP on macOS Server 5.6

In the most recent update to macOS Server 5.6, Apple had removed quite a number of services from the Server application in favor of built-in services in the system itself. However, now that the ...
0
votes
0answers
377 views

Set up a iMac dev with localhost - Issue Forbidden

just got new iMac 27 5k :) Setting up PHP environment but having trouble. I am getting Forbidden message when trying to access http://localhost or http://loalhost/phpmyadmin/ Here are some ...
0
votes
0answers
89 views

apachectl does not automatically create /var/run/mod_fcgid

[MacBook Pro 2014, Mac OS 10.13.3] I have my apache install setup to use mod_fcgid. However, when I restart my Mac, or after it restarts from sleeping, /usr/sbin/apachectl does not create /var/run/...
0
votes
0answers
1k views

Local dokuwiki installation not working after El Capitan upgrade

following the El Cap upgrade my local DokuWiki installation responded with a 404. http://localhost/~username wasn't working either, but through some changes to the Apache conf I got at least this ...
0
votes
0answers
667 views

Compare Apache Settings on Different Machines?

Is there a way to easily compare the Apache settings for two machines? I have a MacBook Air and an iMac, both running 10.9.1. On both machines, I am trying to run a site via localhost. ~/Sites/foo....
0
votes
0answers
748 views

Apache not running on my machine on OS X 10.7.5

After doing tail -20 /var/log/apache2/error_log: [Fri Sep 13 03:14:30 2013] [error] [client ::1] client denied by server configuration: /Library/WebServer/Documents/ [Fri Sep 13 03:17:00 2013] [error]...
0
votes
0answers
206 views

Web Sharing not getting enabled in MAC OSX10.7.4

I have tried enabling Web Sharing in MAC OSX 10.7.4, but after clicking to check it uncheck it self. I know there's a similar question for it, that is, Web Sharing (Apache) won't turn on in Lion. ...