การ config apache กับ Symfony PHP Framework
posted on 23 Dec 2007 00:09 by pommatt in PHPผมใช้ MySql php5 apache โดย ใช้ XAMPP แบบว่าลงที่เดียวใช้ได้เลย
จากนั้นก็ลง Symfony (ลายละเอียดดูท ี่http://www.symfony-project.org/book/1_0/03-Running-Symfony )
หลังจากนั้น ก็ไปที่ apache : apache/conf/httpd.conf
เพิ่มที่ท้าย file ก็ได้นะ
#-------------------SYMFONY CONFIGURATION ------------------------
<VirtualHost pommatt:80>
ServerName pommatt:80
DocumentRoot "C:\xampp\htdocs\symfony\web"
DirectoryIndex index.php
Alias /sf C:\php5\pear\data\symfony\web\sf
<Directory "/$sf_symfony_data_dir/web/sf">
AllowOverride All
Allow from All
</Directory>
<Directory "C:\xampp\htdocs\symfony\web">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
#---------------------------------------------------------------------
ผมจะใช้ชื่อ url ในการอ้างถึง web ด้วยคำว่า pommatt แทน localhost นะครับ
#1 By (125.24.27.255) on 2008-02-04 09:25