【问题标题】:My php project is not running on local ubuntu machine我的 php 项目没有在本地 ubuntu 机器上运行
【发布时间】: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


【解决方案1】:

请检查您的 /etc/host 并向我提供更多信息,例如 httpd.conf 以及您是否有任何虚拟主机配置

【讨论】:

  • 我已经添加了我的虚拟主机文件详细信息
  • 这里我必须在 处添加 81 而不是 80> 谢谢你试图帮助我.. :)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-02-01
  • 2021-10-19
  • 2020-04-10
  • 2021-11-17
  • 2015-02-19
  • 2014-12-04
  • 2017-09-22
相关资源
最近更新 更多