Bạn xem chi tiết tại đây:
http://www.php.net/manual/en/install.unix.apache2.php
Mình tóm tắt lại vài ý chính như sau:
1. Cài đặt apache
./configure --enable-so
make
make install
2. Cài đặt php
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
make
make install
3. Setup PHP.ini
cp php.ini-development /usr/local/lib/php.ini
4. Bổ sung vào cuối httpd.conf
LoadModule php5_module modules/libphp5.so
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
Không có nhận xét nào:
Đăng nhận xét