PHP项目昨天还在工作。今天我打开它显示404错误。
在 /etc/apache2/sites-available/ 中出现了新的交换文件,我删除并再次启动了 apache2 服务器,但它仍然无法正常工作。当我打开日志时,它显示: 捕获 SIGTERM,正在关闭 [notice] 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>