星期二, 7月 06, 2004

Linux : 建制 Lamp 心得 (2)

將 XOOPS2 html目錄copy to /usr/local/apache/html

# /usr/local/apache/conf/httpd.conf
------------------------------------------------------------
DocumentRoot "/usr/local/apache/html"


Options Indexes ExecCGI FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all



DirectoryIndex index.html index.htm index.php


AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

AddHandler cgi-script .cgi

ExtendedStatus On


SetHandler server-status
Order deny,allow
Deny from all
Allow from .your_domain.com


SetHandler server-info
Order deny,allow
Deny from all
Allow from .your_domain.com

-------------------------------------------------------

# /usr/local/apache/bin/apachectl restart

# chmod 666 /usr/local/apache/html/mainfile.php

# chmod 777 /usr/local/apache/html/cache
# chmod 777 /usr/local/apache/html/templates_c
# chmod 777 /usr/local/apache/html/uploads

安裝 XOOPS2
http://xxx.xxx.xxx.xxx/install

安裝完畢後
# rm -f -r -d /usr/local/apache/html/install
# chmod 644 /usr/local/apache/html/mainfile.php



Browser

0 Comments:

張貼留言

<< Home