Enabling Apache
sudo su -apachectl start
Enabling PHP and SSL
PHP and SSL are needed to run a proper Workbench. You'll need to edit Apache config file to enable the pieces needed by them. I'm using nano here for editing but certainly feel free to use your beloved emacs or vi.First back up the existing config file
cd /ect/apache2/
cp httpd.conf httpd.conf.backup
Next edit the config file.
nano httpd.confUncomment the following lines for PHP and SSL
LoadModule php7_module libexec/apache2/libphp7.so
LoadModule socache_shmcb_module libexec/apache2/mod_socache_shmcb.so
LoadModule ssl_module libexec/apache2/mod_ssl.so
Include /private/etc/apache2/extra/httpd-ssl.conf
Save the config file and test it by runningLoadModule ssl_module libexec/apache2/mod_ssl.so
Include /private/etc/apache2/extra/httpd-ssl.conf
apachectl configtest
Restart Apache
apachectl restart
You can test PHP by adding a really simple PHP page to the DocumentRoot (default is /Library/WebServer/Documents)
echo ' /Library/WebServer/Documents/phpinfo.php
Verify PHP by accessing http://localhost/phpinfo.phpInstalling Workbench
It can be copied to local hard drive by git.git clone https://github.com/forceworkbench/forceworkbench
Then copy the folder workbench to Apache's DocumentRoot (default is /Library/WebServer/Documents)
No comments:
Post a Comment