I'm on Mac OS X High Sierra, running Apache 2.4.33 and PHP 5.6.31. I've tried everything in this post (and some other posts on the same problem):
I have encountered endless problems with the solutions presented, and could not find any solutions to those minor problems as well.
- Making changes to php.ini does not change anything in phpinfo.php, it's like the changes don't commit. So I can't try if changing the temp directory works.
- I changed the permissions for /private/var/tmp but could not change for /private or /var even using
sudo
in the terminal. (I brokesudo
while trying to do so.) According to
echo exec('whoami')
my apache user is _www and is the same with what is specified in httpd.conf, however according to the Terminal commandps aux | egrep '(apache|httpd)'
it is iremkaki.ps aux | grep httpd
returns this:_www 1128 0.0 0.0 4404384 4156 ?? S 11:51AM 0:00.03 /usr/sbin/httpd -D FOREGROUND root 1124 0.0 0.1 4385924 11232 ?? Ss 11:51AM 0:00.38 /usr/sbin/httpd -D FOREGROUND iremkaki 1237 0.0 0.0 4276968 892 s000 S+ 1:28PM 0:00.00 grep httpd _www 1130 0.0 0.0 4394116 1032 ?? S 11:52AM 0:00.00 /usr/sbin/httpd -D FOREGROUND _www 1129 0.0 0.0 4403104 3336 ?? S 11:51AM 0:00.03 /usr/sbin/httpd -D FOREGROUND
Yes, I restarted my server after each solution trial, still didn't work
Any guidance?
edit: problem solved, but I have no idea why. I just gave up for the day, shut down computer, the next morning I opened localhost and it was working. Huh.