Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [apache]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
22 views

Apache2 not running on High Sierra without Homebrew

This is a post I have found on this issue: Apache2 (Httpd) not working after update to High Sierra But I have a situation where httpd is not running after setting preference -> sharing ->web sharing ...
2
votes
0answers
84 views

Why is brew always reporting success when failing to start a service?

I'm trying to setup httpd with HomeBrew on a mac. As I painfully learned today, brew services start always reports success, even when httpd fails to start. Example failures reported as success: ...
1
vote
2answers
37 views

Cannot get httpd to listen on port 80

I installed httpd using brew. I edited /usr/local/etc/httpd/httpd.conf and changed: Listen 8080 to: Listen 80 Restarted the service: brew services restart httpd But Apache's still listening on ...
0
votes
0answers
53 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
48 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
1answer
92 views

How do I fix macOS Mojave httpd syntax error in a localhost setup?

System details: OS Host: Mac OS Mojave PHP: 7.1.23 I am trying to set up my local server on a new Mac. I have been following the following instructions on https://discussions.apple.com/docs/DOC-...
2
votes
1answer
38 views

How is my Apache server auto-booting without a LaunchDaemon plist?

A few months ago I setup an Apache server on a Mac Mini running Mac OS 10.14.6. It runs great. Each time I reboot the mac, the Apache service also starts, great. My question is, why? There is no /...
0
votes
0answers
15 views

How to fix built-in Apache webserver read/write permission properly

There are hundreds of questions about it, but I'm still stuck with this problem and looking for a proper solution. The newest solution (mine) fix just the reading issues, it doesn't solve the writing ...
0
votes
2answers
366 views

How to view status of service (e.g. whether it's running) in a format similar to Linux `systemctl` using macOS `launchctl`?

How to view status of service (e.g. whether it's running) in a format similar to Linux systemctl using macOS launchctl? I want to view the status of a service in macOS using launchctl in a format ...
1
vote
1answer
159 views

Fix permissions in Apache

I'm trying to use the built-in Apache server in MacOS mojave. In my browser, accessing http://localhost/~myusername/mypage.html (in case of user dir) or http://localhost/mypage.html (in case of ...
2
votes
1answer
46 views

PHP won't include files properly since updating to Mojave

On our office Mac, we have a local Apache server running through the software AMPPS. Prior to updating to Mojave, everything was working correctly. Now, after updating, there is an issue with using ...
1
vote
1answer
42 views

hosts file: does it pass the domain name? I'm always redirected to the main site configured on the host

My NEW server IP address is 123.456.789.123. Pointing my browser to 123.456.789.123 (http://123.456.789.123) the server serves me site alpha. Now, on the same NEW server I've configured a second ...
0
votes
2answers
203 views

How do you remove MariaDB and NGINX from Mac via terminal?

How do you remove MariaDB and NGINX from Mac via terminal? I am just trying to run Apache2 on localhost:8080 but I get the NGINX welcome page.
0
votes
0answers
53 views

httpd-wrapper failing, just httpd fine

Apache is working fine if I start it with /usr/sbin/httpd -k start But If I use the apachectl start command it fails, as does the plist file. It’s only started doing this just since the last couple ...
2
votes
1answer
66 views

CGI scripts won't execute on website

I have a website up and running on the Apache webserver, but the CGI scripts in /Library/WebServer/CGI-Executables will not run. Instead, the text of the file loads in the browser instead. I made ...
0
votes
0answers
93 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/...
2
votes
1answer
245 views

ports 80 and 443 suddenly closed on macos server

short story Ports 80 & 443 seems to be closed on my MacOS Server (checked with Network Utility) -- cannot access any website from both local network and internet. Have restarted the websites ...
0
votes
0answers
18 views

Firewall off by default, and when I turn it on it doesn't block connections

Yesterday, I had to get a PHP app running locally on my brand new, plain-vanilla Mac Mini. I was disturbed (to put it mildly) to discover that Apache was already installed, and running, and serving ...
0
votes
1answer
67 views

Account with parental controls enabled breaks proxy use

I have a MacBook Air running Mojave (10.14.2). My router is running a proxy using Squid that works fine on the Mac's administrator account and a user account. When the user account has Parental ...
0
votes
1answer
3k views

I can’t connect to localhost on Mac 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
0answers
781 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 ...
2
votes
1answer
2k views

remove homebrew apache2 fails

On a new Macbook Pro, I installed apache2 with homebrew, but now want to switch back to native apache2 server. I removed the homebrew package with: brew uninstall apache2 I also removed any ...
0
votes
0answers
133 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 ...
2
votes
1answer
1k views

How to start homebrew Apache on boot?

I've switched out the default apache for the homebrew version. I've stopped the default apache starting on boot with: sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist ...
0
votes
1answer
531 views

Automator app stopped working after updating to macOS Mojave

Today I updated to Mojave because the notifications were killing me. A script I have in automator to launch apache server on startup stopped working after the update. This is all this automator app ...
0
votes
3answers
256 views

Give local PHP Full Disk Access in Mojave

I have a PHP webpage running on the local apache installation. The page uses shell_exec to access the messages/chat.db via sqlite3. shell_exec("sudo -u ben sqlite3 ~/Library/messages/chat.db \"...
1
vote
0answers
231 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
183 views

Questions from trouble getting the UniFi Controller to work on macOS High Sierra + Server (port 8080 in use)

After upgrading from Sierra+Server to High Sierra+Server I am running into the problem that port 8080 is occupied by default. This blocks the UniFi controller from launching. After the upgrade, I ...
7
votes
3answers
18k views

PHP not working after upgrading to OS Mojave

When i try to open localhost it gives me 403 error message like this "You don't have permission to access / on this server." I have tried changing the permission but nothing happens. It worked fine ...
1
vote
0answers
79 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 ...
3
votes
2answers
278 views

Server-side includes on an iMac

I have failed for a year to find a way to run SSI (server side includes) on my iMac using the apache web server included with server.app. I am wondering if the server app will allow server-side ...
1
vote
1answer
2k views

How to set up WebDAV (with wfsctl) on macOS High Sierra with Server 5.6.1?

After having upgraded to High Sierra with Server 5.6.1 I want to recreate the WebDAV shares I had. I've used wfsctl to create a share point. The share point has ACL for a specific user. So far so good ...
2
votes
1answer
198 views

Permissions on apache2 directory

I was working through these instructions to get my web server working again and needed to change the /etc/apache2/httpd.conf file. I needed to change the permission on httpd.conf file and did. Next I ...
3
votes
1answer
297 views

MAMP still can't access Apache after creating local virtual hosts

I had finally got my PHP and MySQL to work again and then I decided to set up local virtual host. Everything was working perfectly up to that point. I have been getting error messages when I do ...
2
votes
2answers
470 views

OSX Sierra, trouble with virtual hosts

I'm trying to create a separate virtual host on a Mac for a local project, which would not be http://localhost/ibb but, for example: http://ibb.local. For this I carefully followed the next ...
-1
votes
1answer
179 views

How to remove “_www” user from the everyone group?

As the question said: How do I remove the _www user form the everyone group? Background: I am trying to lock down PHP to my web directory. PHP runs under the _www user. My solution is to only give ...
2
votes
1answer
23 views

Why did apache move config, and how do I move it back?

I just installed PHP 7, and suddenly localhost is no longer accessible. Investigating, apachectl determined that it changed from reading /etc/apache2/httpd.conf, to now be reading /usr/local/etc/...
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 ...
2
votes
1answer
65 views

Restart Apache causes applications to react really weird

I have macOS High Sierra running on my Mac, and it has worked fine until now. But today I experienced something very weird. I was trying to restart Apache (a web development server), and then my apps ...
1
vote
1answer
652 views

How can I switch from mac server App to Apache?

I want to use Apache on macOS 10.13. I issued "sudo apachectl start" command then it enabled. I confirmed to display "It works" on the browser by http://localhost/ and I could know Apache worked ...
1
vote
0answers
70 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 ...
0
votes
1answer
2k views

localhost/phpmyadmin - 404 error on macOS High Sierra

I'm setting up a PHP project on my machine's loalhost. This part is working fine, and it's loading the index.php correctly when visiting http://localhost. However, visiting http://localhost/phpmyadmin ...
0
votes
0answers
369 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
1answer
66 views

Built-in Apache and Php is viable?

Does anybody has experience with using built-in Apache/PHP in a High Sierra? Does it have any drawbacks if compare to homebrew apache/php? I plan to use it with Laravel or GravCMS. Any thoughts?
0
votes
1answer
922 views

Solve /Users/myusername/Sites/foo ~/bar localhost/~myusername High Sierra Apache server connection Internal Server Error

Battle of VirtualHost /Users/myusername/Sites/foo ~/bar Internal Server Error goin on for days now tryin to attach localhost/~myusername to Apache/2.4.28 http server on macOS 10.13.3 High Sierra ...
1
vote
1answer
503 views

Current PHP version is 7.2.2 but localhost is running php56

I recently upgraded PHP through Homebrew. When using terminal command PHP -i I'm getting PHP Version => 7.2.2 as expected. However, when running phpinfo(); on localhost I get PHP Version 5.6.30 ...
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
1answer
4k views

Apache not working on my Mac with Sierra

I've followed instruction on how to activate Apache on my Mac prior to upgrading to Sierra. I got the "It Works" page after entering localhost in the address field, yet after I upgraded to Sierra, I ...
2
votes
0answers
773 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 ...
0
votes
1answer
648 views

How to run httpd on macOS without Apache [closed]

I'm trying to build a BCHS application. I do have a remote server running OpenBSD, but the network latency is killing me, so I decided to develop on my MacBook Air and deploy to the OpenBSD server ...