6、停止Apache:/home/apache2/bin/apachectlstop•重启Apache:/home/apache2/bin/apachectlrestart3、配置网站放在/home/apache2/htdocs目录下如果网站的index后缀是PHP格式的,则要修改httpd.conf配置文件(/home/apache2/conf),在DirectoryIndex增加index.php。1.# 2.# DirectoryIndex: sets the file that Apache will
7、serve if a directory 3.# is requested. 4.# 5. 6. DirectoryIndex index.html index.php 7. 在LoadModule中添加:LoadModulephp5_modulemodules/libphp5.so找到AddTypeapplication/x-gzip.gz.tgz在其下添加如下内容AddTypeapplication/x-httpd-php.