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
0answers
6 views

server-staus in Apache on Catalina: Can't get past “client denied ” error

I'm trying to configure /server-status on my Apache vhosts setup. I have https running, and the vhosts. The Mac is running its own httpd, but with my configurations. Everything works as it should, ...
0
votes
0answers
15 views

MAMP on macOS Catalina doesn't list folders

I upgraded to a new Macbook Pro running Catalina. I installed MAMP and copied my project-folder to the new Macbook. My projects folder is located under /Users/myname/websites In that folder I have ...
0
votes
1answer
50 views

macports mod_proxy configuration gives error AH01144 No protocol handler was valid for the URL .. scheme http

I am trying to a reverse proxy to get Apache Jena Fuseki which will only work on localhost:3030 visible from my intranet. I get the error message shown below although the proxy modules seem to be ...
1
vote
1answer
98 views

macOS catalina, Apache Benchmark (ab) not working, dyld library not loaded

I just got this error trying to install ab on my Catalina macOS: brew install homebrew/apache/ab Error: homebrew/apache was deprecated. This tap is now empty and all its contents were either ...
0
votes
0answers
6 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
45 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 ~/....
2
votes
1answer
237 views

How to turn off localhost web server

I've discovered by accident that my Mac is running a localhost web server. I typed "localhost" into Safari and got "It works!" I get the same result when I go to http://127.0.0.1:...
0
votes
0answers
18 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
20 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
1answer
83 views

exec("php -v”) vs phpinfo() — different php version

I have upgraded PHP version on my Mac to 7.3 with a command curl -s http://php-osx.liip.ch/install.sh | bash -s 7.3 and then export PATH=/usr/local/php5/bin:$PATH When I type php -v in terminal the ...
0
votes
0answers
35 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
66 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
1answer
35 views

How do I get Apache to use the default pyenv Python version instead of the system one?

I am using plain Apache 2.4 on Mac OS Catalina. I installed pyenv to manage python versions. The default Python is 3.8.0 Now I try to have Python scripts running in Apache. I created a subdomain ...
0
votes
0answers
8 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
23 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
1answer
1k views

mcrypt for PHP 7.4 on Catalina

First of all, I was born and raised using a PC so I'm kind of new to Mac. I was hoping if someone can help me out. I'm using Catalina and trying to get the PHP extension mcrypt installed. I've been ...
2
votes
2answers
597 views

How to stop multiple httpd instance in macOS Catalina

I am not well experienced with macOS yet and need some help to understand why there are multiple instances of httpd running on my macOS Catalina 10.15.4 Question: If it is not required then how can ...
1
vote
1answer
157 views

Installed Apache 2.4 (httpd) using Home Brew, can I get it to use macOS' php7?

I'm running macOS 10.15 (Catalina) and have installed the latest Apache (2.4.43) using brew, basically following these steps. Seems to be working fine, but now I want to enable PHP 7 in Apache as ...
1
vote
0answers
65 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
1answer
63 views

Extensions are disabled in `php.ini` and they still show up on `phpinfo.php`… why?

So, I finally decide it to switch from windows to Mac after 20 years, and I love it! I have so many questions... I've installed apache, php, mysql, imagemagick using homebrew and I have a couple of ...
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
26 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
31 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 ...
1
vote
2answers
384 views

How to install and configure Tomcat for eclipse IDE in macOS?

Yes I know there are various similar questions like. eclipse how to configure tomcat that install from package manager? but not finding any solution to the problem I am facing. What I am trying to ...
1
vote
0answers
250 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 ...
0
votes
0answers
27 views

Can't connect with localhost or 127.0.0.1 on High Sierra [duplicate]

I get a 404 error message when I try localhost or 127.0.0.1. This is also true if I try localhost/~username I assume apache is running or I would not get 404. I have stopped and started and restarted ...
0
votes
0answers
43 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 ...
1
vote
1answer
91 views

502 Proxy error when trying to use Homebrew php72 with Server.app websites

I'm having a puzzling issue with a website on macOS server (server.app 5.6, High Sierra 10.13). All works fine when the url length is below 70 characters. 70 and up and I'm getting a Proxy error. The ...
0
votes
0answers
167 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 ...
1
vote
0answers
35 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 ...
0
votes
1answer
312 views

configtest error AH00526: Syntax error in httpd-autoindex.conf

I've been using the tutorials here as well as here in order to host a web page using Apache on macOS Catalina Version 10.15.1. The problem was that I couldn't access the localhost and kept getting a ...
1
vote
1answer
177 views

Remote access forbidden but localhost works with Apache

I followed this tutorial and the Apache server works locally. http://localhost/~user/ works but remotely http://my-ip/~user I get: Forbidden. You don't have permission to access this resource. Note ...
0
votes
1answer
36 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 ...
3
votes
1answer
677 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
345 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
67 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
1answer
328 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
52 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 /...
2
votes
2answers
2k 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
514 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
51 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
53 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
708 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.
2
votes
1answer
235 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
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/...
2
votes
1answer
476 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
1answer
111 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
7k 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
947 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 ...

1
2 3 4 5
7