From Triangle Wiki
Apache Setup
Use the following below to set up the virtual hosts to work with Zend Framework. The developer should also change there hosts file to allow the keyword Triangle to browse the Site_Template via a browser.
In the hosts file
- cd /etc
- sudo vi hosts
- add "127.0.0.1 triangle" to the list of hosts
Please note the include Path should be one line.
NameVirtualHost *:80 <VirtualHost *:80> ServerName triangle DocumentRoot /var/www/html/Site_Template php_value include_path '.:/usr/share/php:/var/www/html/ .. ZendFramework-1.5.0/library:/var/www/html/Site_Template .. :/var/www/html/Site_Template/library' </VirtualHost> <VirtualHost *:80> ServerName localhost DocumentRoot /var/www/html </VirtualHost> # URL rewrite for Site Template <Directory "/var/www/html/Site_Template"> RewriteEngine on RewriteRule !\.(js|ico|gif|jpg|png|css|swf|csv|xml|flv|pdf)$ index.php </Directory>
Triangle utilises some PEAR packages to allow the Site Template to function
Install PEAR and then do the following commands:
- sudo pear channel-update pear.php.net
- sudo pear config-set preferred_state alpha
- sudo pear install -a HTML_Quickform
External Links
|
Navigation
Edit Navigation
|