apache - How to configure PHP on Mac for developing -


i'm doing installation php on mac, following this tutorial .

i checked httpd.conf, little different mine following items.

  1. load module php5_module

  2. addmodule mod_php5.c addtype

  3. application/x-httpd-php .php

what have load module php4_module, don't have item 2 , item 3, added these httpd.conf file. after restart apache server apachectl restart, says this webpage not available. checked console of chrome , found get http://localhost/info.php net::err_connection_refused.

and found that:

  • if didn't add item 2 , item 3 configuration file, php script shows on browser, seems it's not parsed.

  • if add itme 3, when accessed info.php browser,
    it's downloaded instead of being displayed.

anyone knows what's going on here? did miss more configuration?

by way, grateful if can provide proper tutorial beginner set envrionment learning php, found many articles online, no 1 can work correctly.

have @ akrabats tutorials on how install php on mac. can find 1 maverics @ http://akrabat.com/setting-up-php-mysql-on-os-x-mavericks/ , there 1 yosemite.

alternatively use homebrew or phpbrew install php beneath 1 delivered macos updated more frequently.

and there third using php-installer provided liip @ http://php-osx.liip.ch

besides i'd recomend having @ virtualbox , vagrant lots of php-projects provide vagrantfile ensure developers have identical development-environments. that's totaly different story!


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -