|
⇤ ← Revision 1 as of 2014-07-03 20:38:42
Size: 1015
Comment:
|
Size: 1498
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 17: | Line 17: |
| Include /etc/httpd/mod_php.conf # enable the php module | <IfModule dir_module> DirectoryIndex index.html index.php </IfModule> LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so Include /etc/httpd/mod_php.conf # enable the php module |
| Line 37: | Line 41: |
| * vim /var/www/htdocs/yii-1.1.15.022a51/demos/blog/.htaccess {{{ Options +FollowSymLinks IndexIgnore */* RewriteEngine on RewriteBase /demos/blog # if a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward it to index.php RewriteRule . index.php }}} |
|
| Line 39: | Line 55: |
Yii
Yii is a high-performance PHP framework best for developing Web 2.0 applications.
Slackware installation
- cd ~/Downloads
wget https://github.com/yiisoft/yii/releases/download/1.1.15/yii-1.1.15.022a51.tar.gz
- cp yii-1.1.15.022a51.tar.gz /vars/www/htdocs
- cd /vars/www/htdocs
- tar xvzf yii-1.1.15.022a51.tar.gz
- cd yii-1.1.15.022a51
- chown apache * -R
- chmod 755 /etc/rc.d/rc.httpd
- vim /etc/httpd/httpd.conf
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so
Include /etc/httpd/mod_php.conf # enable the php module- vim /etc/httpd/vhosts.conf
<VirtualHost *:80>
ServerName localhostyii
DocumentRoot "/var/www/htdocs/yii-1.1.15.022a51"
<Directory "/var/www/htdocs/yii-1.1.15.022a51">
Require local
</Directory>
</VirtualHost>- vim /etc/hosts
127.0.0.1 localhostyii
- vim /etc/httpd/php.ini
date.timezone="Europe/Lisbon"
- vim /var/www/htdocs/yii-1.1.15.022a51/demos/blog/.htaccess
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
RewriteBase /demos/blog
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php- /etc/rc.d/rc.httpd start
