Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [apache]

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

2
votes
1answer
14 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
13 views

Synchronise PHP CLI and Apache versions

Apache reports PHP Version 7.1.19 via phpinfo(). CLI reports PHP 7.1.25 (cli) via php -v. I've tried editing httpd.conf to change LoadModule php7_module libexec/apache2/libphp7.so to LoadModule ...
0
votes
0answers
13 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 ...
-1
votes
0answers
28 views

Apache uses other version of PHP than system

I've installed PHP version 7.3 on my Mac running macOS Mojave. When I go to Terminal and type php -v I get version 7.3. However, when opening common PHP script in the browser and calling phpinfo(); ...
2
votes
1answer
66 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
14 views

Unexplainable MAMP and Localhost behaviour

I've got a weird one. I normally use localhost:8888 with MAMP Pro for development, but all of a sudden it started acting funny, offering to download the file in the browser rather than rendering the ...
0
votes
1answer
206 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 ...
1
vote
3answers
134 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
102 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
0answers
32 views

insane apache permissions problem

I have 3 macs: a Mac Mini, a MacBook Air, and a MacBook Pro. I have some directories mirrored on all 3 Macs via syncthing (which is awesome). The MacBook Pro is at home; the other two are at my ...
1
vote
1answer
41 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 ...
4
votes
3answers
7k 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
44 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
100 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 ...
0
votes
0answers
133 views

Apache stopped working, configtest returns “Invalid command 'Alias'” (High Sierra)

apachectl configtest returns "Syntax error on line 21 of /private/etc/apache2/extra/httpd-autoindex.conf: Invalid command 'Alias', perhaps misspelled or defined by a module not included in the server ...
0
votes
0answers
66 views

OSX server 5.0.3 Websites Service not Running

I can't seem to launch the websites service to enable PHP or Python so I can access my Wiki. I have restarted the server and every time I check the boxes for either PHP or Python they automatically ...
1
vote
1answer
836 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
31 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
169 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 ...
0
votes
0answers
107 views

OSX - High Sierra setup proxy fails

Trying to setup a proxy service on my develop machine that points to example.com/php for development of a hybrid app based on ionic to avoid CORS problems. What I did: sudo vi /etc/apache/httpd.conf ...
2
votes
0answers
167 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 ...
0
votes
1answer
146 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
20 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
69 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
0answers
29 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
252 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
33 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
922 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
321 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
255 views

MAMP: how recompile php or upgrade Imagick to use webp converter?

I am using MAMP PRO 4.2 and php 7.1.6 with Apache. The problem is I can not convert images from jpg or png to webp format using php language. Firstly, I tried to use native imagewebp() function (http:...
0
votes
1answer
44 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
0answers
115 views

On High Sierra, I cant get FollowSymLinks to work

After upgrading to High Sierra, my http://localhost/~user/ website works again, but I cannot get sym links to operate properly. lrwxr-xr-x 1 Henri staff 14 14 mar 05:59 index.html -> sav....
0
votes
1answer
569 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
399 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
495 views

Turn On Apache with MacOS High Sierra

I have problem configuring Apache server. I am using High Sierra. I have tried many solutions and tutorials with no success. Currently, Safari is returning the message "Safari can't connect to server"...
0
votes
0answers
1k views

Can't access localhost (403 forbidden) after High Sierra Supplemental update

After installing the 10.13.3 Supplemental Update last week, I can't access my localhost. It says: You don't have permission to access / on this server. I checked my http.conf, username.conf and ...
0
votes
0answers
169 views

Backup and restore Apache configuration

I always clean install new macOS release to make sure my machine (MacBook Air 13-inch, Early 2015) stay fresh and fast. However, for the past 2 years I still couldn't find the best way to backup and ...
0
votes
0answers
67 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
2k 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 ...
1
vote
0answers
554 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
413 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 ...
0
votes
1answer
2k views

Problem with XAMPP after installation

I have just installed XAMPP and when I click "start all" nothing actually starts since there is a problem with the some configurations (I do not have any idea of what those lines mean since I am a ...
3
votes
5answers
3k 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 ...
2
votes
1answer
966 views

Conflict between internal Apache and Apache installed via Homebrew

I have faced following trouble. I wanted to have multiple versions of PHP so I used this article to achieve this. But I could not stop Apache via sudo apachectl -k stop when running this command I am ...
2
votes
1answer
318 views

Does FileMaker Server 16 prevent use of the system apache in macOS?

I'm running FileMaker Server 16 ("FMS") on macOS High Sierra, without the macOS Server package. I set the FMS web server components up on ports 8080 and 8443 because I wanted to continue running other ...
2
votes
0answers
425 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
97 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 ...
0
votes
1answer
78 views

Localhost to custom page

I am running macOS 10.12.5 and I am setting up a localhost and everything looks correct. I used brew to install Apache (httpd), MySQL, and PHP. I have changed the hosts file to point the localhost ...
1
vote
0answers
693 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, ...
4
votes
2answers
392 views

Can I create an Automator application to start Tomcat when I need?

I can start Apache Tomcat (installed via HomeBrew) in Terminal using $ catalina run But it does not work in an Automator application Shell script using bash I tried to set up a bash Shell script ...