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
48 views

Apache on localhost doesn't recognize a website unless I include the full path to index.html

Using MacOS 11.1 Big Sur, I'm developing static websites (ie just a standalone index.html, plus JavaScript and CSS files) on my localhost, with the files accessible under /Library/Web Server/Documents....
0
votes
1answer
119 views

Catalina localhost ERR_CONNECTION_REFUSED

I have seen a number of threads that are close but no answer quite hit the mark for my issue. I have a MacOS AMP environment for testing that was setup using homebrew and that had been working ...
19
votes
5answers
90k 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 ...
0
votes
1answer
21 views

Apache config resetting after every OS update

This is infuriating. I have a lot of custom settings on my development Mac and every time there is an OS upgrade I have to go back and reset everything. I read somewhere that the old config is saved ...
0
votes
0answers
12 views

macOS Catalina how to upgrade the Apache httpd [duplicate]

I have upgraded my laptop from Mojave to Catalina. I do not use my laptop with any of the Apache Services. My current version of Apache httpd is: Apache/2.4.41 My security team told me that I need to ...
0
votes
0answers
50 views

Apache 403 error after Big Sur upgrade (Forbidden - You don't have permission to access this resource)

After upgrading my machine from Catalina to Big Sur, I can no more use a custom folder for my apache Server. I can still use the default Sites folder. <Directory "/Users/username/Sites/"&...
0
votes
1answer
53 views

Big Sur Updates Reset Apache Files

Concerning these Apache files: /etc/apache2/httpd.conf /etc/apache2/vhosts/httpd-vhosts.conf Unlike the previous version of MacOS, each Big Sur update resets these Apache .conf files to their original ...
3
votes
2answers
348 views

Big Sur Update wiped my /etc/apache2/extra

I think the title is self explanatory, but to say it again, I updated to MacOS 11 and all my extra configs of Apache decided to go bye-bye. To add insult to injury, there appeared a bunch of *.conf~...
0
votes
0answers
78 views

Apache can not work properly after restart

I use macOS Catalina 10.15.6 (19G2021). After I restart my laptop, suddenly I can not access my localhost port 80(Apache2). I tried out any command when I am find out it/googling but still doesn't ...
0
votes
1answer
138 views

What is wrong with my PHP on my apache2 web server (OS X 10.6)

I have a web server on my mac mini that runs the default (installed with snow leopard) apache2 web server. It works fine for any programming language that outputs stdout for cgi scripts, but every ...
1
vote
1answer
168 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 ...
0
votes
0answers
47 views

How to configure SSL with Apache in macOS Catalina [duplicate]

I'm trying to complete my local installation and add SSL by following the example at: https://www.codexpedia.com/apache-server/configure-apache-ssl-for-https-on-mac-os/ but when I try to create ...
0
votes
0answers
36 views

Get mediawiki (enwikibooks) with restbase and mathoid to work on macOS (High Sierra)

I recently decided to save the english wikibooks for offline access, and I went with setting up mediawiki, importing a xml dump, and configuring it to work. I had done the first two, following ...
0
votes
1answer
40 views

How to run/manage websites on macOS versions *after* High Sierra?

High Sierra (10.13) is deprecated now that Big Sur (macOS 10.16/11) is out. High Sierra was the last version of macOS which supported websites (technically Apache, I believe) being managed through the ...
0
votes
0answers
195 views

.htaccess not working after upgrading to php 8

Mac OS Catalina. I was using Apache with the default PHP shipped with the OS (7.3.11). I installed PHP 8 using Homebrew, replaced the PHP module in httpd.conf, and added the following code: <...
0
votes
3answers
976 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
1answer
47 views

Change Apache2's Port Number

I recently enabled apache on my mac for local development. I would now like to use nginx as a reverse proxy, which I have done before, but I want to move apache to port 8080 so I can put nginx on port ...
0
votes
0answers
12 views

apache error.log filter for some specific types of messages only

Running the apache webserver on mac Catalina. If I do tail -f /var/log/apache2/error.log I can access the full list of messages produced. I have a lot of [:debug] messages like this one: [Thu Oct 29 ...
0
votes
0answers
13 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
47 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
379 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
210 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 ~/...
1
vote
1answer
305 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 ...
27
votes
11answers
134k views

How to fix 403 in Mac OS X built-in Apache?

I'm trying to set a local environment on my new MacBook Air 13": built-in Apache with my own DocumentRoot, PHP, and MySQL. I usually update /etc/hosts just to run my local websites with a pretty ...
3
votes
2answers
8k 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
0answers
9 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 ...
1
vote
2answers
1k 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 ...
0
votes
0answers
222 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
1k 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
22 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
40 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
359 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
65 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 ...
4
votes
5answers
12k views

Web Sharing Apache Localhost - Access permissions

I want to install phpMyAdmin on the native Apache webserver that is bundled with Mac OS X 10.6. I turned on Web Sharing in System Preferences. Yet, me fear is that my computer is granting access to ...
0
votes
1answer
89 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
61 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 ...
7
votes
6answers
10k views

XAMPP VM and text editors

I recently installed XAMPP for OS X (XAMPP VM PHP 7.2.1) which now virtualizes the entire box for obvious benefits of higher security. Although I admire the new concept and see its benefits, I cannot ...
0
votes
0answers
14 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
2k 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 ...
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 ...
2
votes
2answers
1k 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
508 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
307 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
144 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 ...
-1
votes
1answer
8k 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 ...
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 ...
0
votes
0answers
50 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 ...
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 ...

1
2 3 4 5
7