I had to reinstall Debian. Before the reinstall I have been using my server as a file share (using Owncloud). After an reinstalling Debian on a freshly formatted drive and installing apache2 I have been unable to get the default page to show up.
Apache service is running:
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: active (running) since Mon 2016-08-08 14:39:45 UTC; 10min ago
Process: 2571 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 2597 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/apache2.service
├─2613 /usr/sbin/apache2 -k start
├─2617 /usr/sbin/apache2 -k start
├─2618 /usr/sbin/apache2 -k start
├─2619 /usr/sbin/apache2 -k start
├─2620 /usr/sbin/apache2 -k start
└─2621 /usr/sbin/apache2 -k start
Aug 08 14:39:44 raspberrypi apache2[2597]: Starting web server: apache2AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally ...ress this message
Aug 08 14:39:45 raspberrypi apache2[2597]: .
Aug 08 14:39:45 raspberrypi systemd[1]: Started LSB: Apache2 web server.
Hint: Some lines were ellipsized, use -l to show in full.
If i run apache2 -t this is what I get:
[Mon Aug 08 14:52:00.502453 2016] [core:wa] [pid 2753] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Mon Aug 08 14:52:00.502855 2016] [core:wa] [pid 2753] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Mon Aug 08 14:52:00.502892 2016] [core:wa] [pid 2753] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Mon Aug 08 14:52:00.502966 2016] [core:wa] [pid 2753] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Mon Aug 08 14:52:00.595580 2016] [core:wa] [pid 2753] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Mon Aug 08 14:52:00.596803 2016] [core:wa] [pid 2753] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Mon Aug 08 14:52:00.596883 2016] [core:wa] [pid 2753] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00543: apache2: bad user name ${APACHE_RUN_USER}
if I run netstat -tap I get this:
Active Inteet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:mysql *:* LISTEN 1017/mysqld
tcp 0 0 *:webmin *:* LISTEN 1413/perl
tcp 0 0 *:ssh *:* LISTEN 538/sshd
tcp 0 64 raspberrypi.home:ssh static-xxx-xx-xx-:59984 ESTABLISHED 2011/sshd: pi [priv
tcp6 0 0 [::]:http [::]:* LISTEN 2613/apache2
tcp6 0 0 [::]:ssh [::]:* LISTEN 538/sshd
My apache user and group are set to www-data:www-data
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 394
تاريخ: سه
شنبه
19 مرداد
1395 ساعت: 1:52