我的apache服务器停止工作,我不知道如何解决它。我在那台服务器上运行了两个wordpress和一个红宝石。几个小时后就停止了。我可以打开服务器,但是当我尝试用浏览器获取网页时,它不会响应。如果我重新启动apache (“服务apache2重新启动”),它将再次正常工作。
我的apache版本:
Server version: Apache/2.4.10 (Debian)
Server built: Aug 31 2015 00:01:48
Server's Module Magic Number: 20120211:37
Server loaded: APR 1.5.1, A
当我试图重新加载Apache2错误消息时,Apache2无法工作。我对服务器非常陌生,apache2请您帮助运行Apache2。下面是错误代码。
:/etc/apache2/sites-available# sudo service apache2 reload
* Reloading web server apache2 *
* The apache2 configtest failed. No
嗯,这还不是个问题,但我不明白为什么Apache要读取.htaccess文件.我知道:
grep -R "AllowOverride" /etc
我有:
/etc/apache2/apache2.conf:# for additional configuration directives. See also the AllowOverride
/etc/apache2/sites-available/default: AllowOverride None
/etc/apache2/sites-available/default: AllowO
我要确保apache2服务已停止。
1. I need to verify if apache2 is installed or not.
当我键入时:
sudo /etc/init.d/apache2 stop
我得到了:
sudo: /etc/init.d/apache2: command not found
这是否意味着没有安装apache2?或者它安装在另一个地方?
2. check apache2 process:
当我键入时:
ps a | grep apache2
我得到了:
10448 pts/4 S+ 0:00 grep --color=auto apache2
我正在开发一个服务器上的网站,我只能访问MySQL和FTP,所以我运行的所有命令都是通过b374k php shell。我遇到了SQL驱动程序的Laravel问题。我尝试切换到文件托管的数据库(在SQLite /database.sqlite中),但抛出的异常与使用MySQL时相同。控制台的输入输出如下: php artisan migrate:refresh --seed
[Illuminate\Database\QueryException]
could not find driver (SQL: select * from sqlite_master where type =
我尝试使用以下方法重新启动我的apache2:
# sudo service apache2 start
* Starting web server apache2 *
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mo
我刚刚升级了我的Ubuntu13.10,apache2没有工作。当我尝试启动apache2服务器时,它将打印以下错误:
* Starting web server apache2
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 263 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/: No such file or directory
Ac
运行命令sudo service apache2 restart输出:
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/alias
运行命令sudo service apache2 restart
得到这个错误。如何解决这个问题?
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-e
我已经安装了php7.3和apache2,但是当我尝试启动apache2时,出现了以下错误:
service apache2 start
apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 3 of /etc/apache2/mods-enabled/php7.3.load: Cannot load /usr/lib/apache2/modules/libphp7.3.so into server: /usr/lib/apache2/modules/libphp7.3.s
我正在尝试重新启动apache2服务,但出现了错误。
重新加载:
Job for apache2.service invalid.
重启
Job for apache2.service failed. See "systemctl status apache2.service" and "journalctl -xe" for details.
journalctl -xe
Aug 18 02:17:49 xpto apache2[6754]: * Starting web server apache2
Aug 18 02:17:49 xpto apache2[
我正在Ubuntu15.04上配置RT4,但是我遇到了错误。下面是错误的输出:
technical@rt:~$ systemctl status apache2.service -l
â apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since Wed 2016-01-13 14:31:48 CAT; 1min 22s ago
Docs: man:systemd-sysv-generator(