Questions tagged [apache]
The popular open-source Web server application, an implementation of which is included in macOS.
344
questions
0
votes
1
answer
17
views
access webpages hosted by (macOS) apache web server on LAN where pages are served from a user home directory on the server machine
I would like to run a personal website that is accessible across users on the local area network. Specifically, imagine we have Mac #1 talking to Mac #2 via a router and the goal is to access a ...
1
vote
0
answers
21
views
Chrome and Safari find localhost in two different locations
I've been trying to set up MAMP (macOS, Apache, MySQL, PHP) using Homebrew on macOS Monterey.
I set the file directory for Apache as /Users/myname/Sites in httpd.conf. When I go to http://localhost in ...
0
votes
0
answers
68
views
Httpd & PHP error after upgrading to Monterey version 12.3.1
I recently upgrade my Mac to Monterey v12.3.1, and when I check the httpd and php, with brew services list, its return status Error.
I try to tail -f /usr/local/var/log/httpd/error_log, its return log:...
0
votes
1
answer
8
views
How can I specify a directory from which to run .cgi scripts using apache2 on macos12
I'd like to run .cgi scripts on macos12 running an apache webserver, which uses the Sites folder as webroot by default apparently, so I'd like to put my cgi there.
I supposed I should be editing httpd....
1
vote
1
answer
94
views
LaraDock virtual host not working on macOS Monterey Apache2
I have read many posts on the subject but none refers to exactly the same environment I have (macOS Monterey). So what I have done so far...
I have successfully installed the latest versions of ...
0
votes
0
answers
17
views
php-fpm wrong version running processes
I have multiple PHP versions installed and managed through Homebrew, and I'm switching between them and it's working fine.
I have the correct version (currently PHP 8.1) in my terminal and with Apache,...
1
vote
0
answers
656
views
httpd showing in error state with brew services list on MacOS Monterey
When I look at my services installed with Homebrew Apache is always in an error state. When I do a syntax check on my Apache config it is fine and Apache is serving up content fine.
It's only a minor ...
1
vote
2
answers
3k
views
Homebrew Apache errors after upgrading to Monterey, how to solve error 256
So, this seems to be a relatively common problem, but following the steps other users used to resolve the issue don't seem to be working for me.
I recently upgraded OSX to Monterey on my early 2015 ...
-1
votes
2
answers
78
views
Several Header .h Files on Mac
I have been trying to clear out my mac, but I have hundreds of .h files that are in extremely hidden and imbedded files - I don't even know where they came from. Not only this, there can be up to 6-7 ...
0
votes
0
answers
11
views
Safari file:// rewrite to localhost in certain directory
I do web development and I have httpd running on macOS, when using finder I often go into my development directory and double click on an .html file and it opens file:///Users/me/Documents/Dev/index....
0
votes
0
answers
398
views
Apache stops working after installing Homebrew PHP (which is missing on Monterey)
Hello I have followed these instructions to configure builtin Apache web server on Macos 12.1, although I have realised that PHP was removed by Apple on Monterey.
As such, I have installed homebrew ...
1
vote
0
answers
32
views
after updating php apache no longer loads at localhost on osx 10.12.6
I was trying to setup myphpadmin and it said I need to update php so I update php to 7.1 from terminal. I go to localhost and it says local server refused to connect. I restart apache then i typed ...
0
votes
1
answer
112
views
intl PHP extension on macbook pro
In my macbook i am using MAMP and its already have intl PHP extension
When i am trying to update my cakephp project via composer i am getting this error
Problem 1
- Root composer.json requires ...
0
votes
1
answer
96
views
http://localhost/~username - 403 forbidden error
I'm in the process of setting up my local ~/Sites folder, but if I access the page http://localhost/~soren I get a 403 error:
Forbidden
You don't have permission to access this resource.
I have read ...
0
votes
1
answer
17
views
How to implement or mimic https with Homebrew Apache?
So, I'm working on trying to develop a site using the location API and modern browsers either require you to make settings modifications, or to run the geolocation requests through https. I was ...
0
votes
1
answer
278
views
Mutual authentication between my iPhone and webserver
I need to be able to access a secure portion of my website from my iPhone.
It's a site directory ("infra") where I keep information and routines to manage my home's infrastructure UPS and ...
0
votes
0
answers
60
views
Virtual hosts incorrectly mapping with Homebrew Apache
So, I'm trying to get a home dev server going using Homebrew's Apache mostly following this guide. I'm playing with three dev projects, a WordPress site, a Drupal site, and some vanilla JS tests. I ...
5
votes
1
answer
502
views
iPhone can't connect to Ubuntu Server VM running in Parallels on macOS
I use Parallels Desktop for my M1 Mac with Ubuntu Server ARM installed in the VM I made.
I installed apache2, Node.js and npm on this VM, and it works, only on my Mac (when visiting the private IP of ...
0
votes
0
answers
15
views
safari can't connect to localhost even configtest return no syntax error on Apache file
I have an iMac with High Sierra 10.13. It is an old machine so it cannot get further OS upgrade. I tried to reach localhost but it failed to connect with either Chrome or Safari. I tried looking into ...
0
votes
1
answer
1k
views
Unable to use PHP in Apache on Big Sur
After using brew to install Apache version 2.4.46 on Mac OS Big Sur 11.2.3, and using brew to install PHP 8.0.6, I am unable to run PHP. I am running Apache from /usr/local/etc/httpd, and my Document ...
0
votes
1
answer
73
views
Different SSL certs being delivered to different platforms
I received reports of an invalid SSL cert on a site that I recently started managing. Testing it on a Linux PC and a Windows PC, I find that the cert being delivered is different from the one ...
0
votes
1
answer
52
views
Access maven from the terminal [duplicate]
I am newbie to Mac world! After unzipping the apache-maven binaries, I was trying to check its version from the terminal using a command,
mvn -v
But there I saw message restricting me its access, here ...
0
votes
0
answers
114
views
Correct httpd.conf
macOS Big Sur version 11.2.3
I have an httpd.conf file in the following directories:
/private/etc/apache2/httpd.conf
/private/etc/apache2/original/httpd.conf
/System/Library/Templates/Data/private/etc/...
0
votes
1
answer
76
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
0
answers
707
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
1
answer
194
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
1
answer
1k
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
1
answer
527
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 ...
0
votes
1
answer
51
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
0
answers
595
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:
<...
3
votes
2
answers
634
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
1
answer
1k
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 ...
0
votes
1
answer
479
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
1
answer
1k
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
1
answer
624
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
0
answers
495
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
1
answer
4k
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
1
answer
926
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 ...
1
vote
1
answer
540
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
1
answer
246
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
2
answers
4k
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
2
answers
3k
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
1
answer
1k
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 ...
2
votes
1
answer
1k
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
1
answer
344
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
0
answers
42
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
0
answers
241
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
2
answers
4k
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
0
answers
882
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
0
answers
32
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 ...