ApacheHttpd

HomePage | RecentChanges | Preferences

Apache httpd

[ApacheBenchmark]

On Ubuntu 7

/etc/apache2/httpd.conf

sudo /etc/init.d/apache2 {start|stop|restart|reload|force-reload}

Apache httpd on Mac OS X

Apache Config file is: /private/etc/apache2/httpd.conf

Default DocumentRoot is: /Library/Webserver/Documents/

To enable PHP, at around line 114 (maybe) in the /private/etc/apache2/httpd.conf file uncomment the following line:

    #LoadModule php5_module     libexec/apache2/libphp5.so

Restart Apache: System Preferences -> Sharing -> Un-check "Web Sharing" and re-check it. OR

    $ sudo apachectl restart

(Soft) link the PHP library underneath the example PHP code:

  $ cd ~/projects/chargify-wsmoak
  $ ln -s ~/projects/Chargify?-PHP-Client/ Chargify-PHP-Client

(Soft) link the PHP examples underneath the HTTPD document root:

  $ cd /Library?/Webserver?/Documents?
  $ sudo ln -s ~/projects/chargify-wsmoak/php/ chargify

Now the PHP examples in ~/projects/chargify-wsmoak/php are available at http://localhost/chargify


HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited October 5, 2015 6:26 pm by 198.98.94.133 (diff)
Search: