php apache install macbook code example

Example 1: php apache install macbook

LoadModule php7_module libexec/apache2/libphp7.so

Example 2: php apache install macbook

cd /etc/apache2/
cp httpd.conf httpd.conf.Catalina

Example 3: php apache install macbook

apachectl restart

Example 4: php apache install macbook

export PATH=/usr/local/mysql/bin:$PATH

Example 5: php apache install macbook

vi httpd.conf

Example 6: php apache install macbook

grep DocumentRoot httpd.conf

Example 7: php apache install macbook

echo '<?php phpinfo();' > /Library/WebServer/Documents/phpinfo.php

Example 8: php apache install macbook

mkdir /var/mysql
ln -s /tmp/mysql.sock /var/mysql/mysql.sock

Tags:

Php Example