note 123922 added to install.macosx.bundled

From: Date: Mon, 10 Jun 2019 09:54:56 +0000
Subject: note 123922 added to install.macosx.bundled
Groups: php.notes 
Request: Send a blank email to php-notes+get-211203@lists.php.net to get a copy of this message
setup apache + php environment on macOS 10.12.6 step 1: start httpd by apachectl > sudo apachectl start step 2: find httpd.conf > sudo apachectl -t -D DUMP_INCLUDES step 3: edit conf, eg: /opt/local/etc/apache2/httpd.conf > sudo vim /opt/local/etc/apache2/httpd.conf step 4: Load php module before <IfModule unixd_module>, eg: ``` LoadModule php5_module /usr/libexec/apache2/libphp5.so <IfModule unixd_module> ``` step 5: add mod_php5.c end of httpd.conf ``` <IfModule mod_php5.c> AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps <IfModule mod_dir.c> DirectoryIndex index.html index.php </IfModule> </IfModule> ``` step 6: save and quit step 7: restart httpd > sudo apachectl restart step 8: write demo.php , test configuration ``` <?php phpinfo(); ?> ``` step 9: copy demo.php to "DocumentRoot", you can find by httpd.conf step 10: visit demo.php all done. ---- Server IP: 208.43.231.9 Probable Submitter: 119.81.81.244 (proxied: 118.116.105.83) ---- Manual Page -- http://php.net/manual/en/install.macosx.bundled.php Edit -- https://master.php.net/note/edit/123922 Del: integrated -- https://master.php.net/note/delete/123922/integrated Del: useless -- https://master.php.net/note/delete/123922/useless Del: bad code -- https://master.php.net/note/delete/123922/bad+code Del: spam -- https://master.php.net/note/delete/123922/spam Del: non-english -- https://master.php.net/note/delete/123922/non-english Del: in docs -- https://master.php.net/note/delete/123922/in+docs Del: other reasons-- https://master.php.net/note/delete/123922 Reject -- https://master.php.net/note/reject/123922 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#211203) next »