i trying enable php on mac. following tutorial put allow me run multiple websites using httpd-vhosts. tutorial here ->https://mallinson.ca/osx-web-development/#comment-25907.
i set year or ago , worked perfectly. think because of recent update, stopped working. decided change out edited files original copies , start over. i'm able go localhost point giving me "it works!" text. when uncomment line "loadmodule php5_module libexec/apache2/libphp5.so" in httpd.conf file starts messing up. restart apache , go localhost , tells me server can't found. refresh page , shows me "it works!". refresh page , tells me server can't found. i'm confused. don't know if because of php module or what.
any assistance helpful. can give more information need.
thank you.
what apache error log says? crashes httpd process, hence local server becoming unvailable.
you haven't used 1 year. if upgraded osx in meantime, switched apache 2.2 apache 2.4. check php module matches apache specs. using outdated php module newer apache version cause kind of behaviour because not using same api.
alternatively, since don't seem expert in httpd/php stacks (no offense!) use tool mamp make things easier.
if want keep current setup, make sure upgrade php module it's compatible new apache version.
Comments
Post a Comment