【发布时间】:2014-01-18 07:26:49
【问题描述】:
Php 项目昨天还在工作。今天我打开它时显示 404 错误。
在 /etc/apache2/sites-available/ 中出现了新的交换文件,我删除并再次启动了 apache2 服务器,但它仍然无法正常工作。
当我打开日志时,它显示:捕获 SIGTERM,正在关闭[通知] Apache/2.2.22 (Ubuntu) PHP/5.4.9-4ubuntu2.4 已配置 -- 恢复正常操作
虚拟主机文件
<VirtualHost dev.eurofir:81>
ServerAdmin webmaster@localhost
ServerName localhost:80
DocumentRoot /var/www/dev.eurofir/public
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory /var/www/dev.eurofir/>
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
【问题讨论】:
-
尝试备份您的项目,重新安装本地服务器,然后尝试再次运行。
标签: php html mysql apache2 ubuntu-13.04