Thursday, September 17, 2009

php stack configuration

It's no problem. This is what we're here for :)

It's the same as configuring any Apache server. A quick search should bring up a *lot* of tutorials on the subject.

To add a new site to your PHP stack just do the following:

1. Edit your phpstack's httpd.conf file (~/webapps/conf/httpd.conf)

2. Copy and paste the
VirtualHost 127.0.0.1:port section.

3. Change the 'ServerName' and 'ServerAlias' directives to which domain you'd like to use.

4. Change the 'DocumentRoot' to point to the root of your regular PHP application's directory (/home/steward/webapps/myapp).

5. Restart your phpstack application using this command:

~/webapps/phpstack/bin/restart

6. Finally, in the control panel edit your site and change your PHP application for the phpstack application.


Your site should now be running on the PHP stack :)

No comments:

Post a Comment