diegobh
(usa CentOS)
Enviado em 26/07/2015 - 15:15h
tonyhts escreveu:
Opa,
vamos lá...
Antes que eu sugira algo que te trará problemas, vamos analisar seu ambiente ai. Como root, rode e poste ( entre as tags code) a saida desses comandos:
history
service httpd status
service apache2 status
whereis httpd
whereis apache2
ls -la /home/diego/www
cat -n /etc/apache2/sites-enabled/*
cat -n /etc/httpd/conf/httpd.conf
abs
---
Eu Acredito, que ás vezes são as pessoas que ninguém espera nada que fazem as coisas que ninguém consegue imaginar.
--- Mestre dos Mestres - Alan Turing ---
History:
http://pastebin.com/4NcE2Chm
service httpd status:
[root@ns500529 ~]# service httpd status
Redirecting to /bin/systemctl status httpd.service
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled)
Active: active (running) since Sun 2015-07-26 12:48:51 EDT; 1h 1min ago
Main PID: 14381 (httpd)
Status: "Total requests: 10; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─14381 /usr/sbin/httpd -DFOREGROUND
├─14383 /usr/sbin/httpd -DFOREGROUND
├─14384 /usr/sbin/httpd -DFOREGROUND
├─14385 /usr/sbin/httpd -DFOREGROUND
├─14386 /usr/sbin/httpd -DFOREGROUND
├─14387 /usr/sbin/httpd -DFOREGROUND
└─14388 /usr/sbin/httpd -DFOREGROUND
Jul 26 12:48:51 ns500529.ip-192-99-1.net systemd[1]: Started The Apache HTTP ...
Hint: Some lines were ellipsized, use -l to show in full.
service apache2 status:
[root@ns500529 ~]# service apache2 status
Redirecting to /bin/systemctl status apache2.service
apache2.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
whereis httpd:
[root@ns500529 ~]# whereis httpd
httpd: /usr/sbin/httpd /usr/lib64/httpd /etc/httpd /usr/share/httpd /usr/share/man/man8/httpd.8.gz
whereis apache2:
[root@ns500529 ~]# whereis apache2
apache2:[root@ns500529 ~]#
ls -la /home/diego/www:
[root@ns500529 ~]# ls -la /home/diego/www
total 24
drwxrwxr-x 5 apache apache 4096 Jul 25 12:42 .
drwxrw---- 28 diego diego 4096 Jul 26 12:39 ..
drwxrwxr-x 2 apache apache 4096 Jul 25 12:02 cgi-bin
drwxrwxr-x 2 apache apache 4096 Jul 25 12:42 html
-rwxrwxr-x 1 apache apache 7 Jul 25 12:03 index.php
drwxrwxr-x 3 apache apache 4096 Jul 25 13:09 Torrent
cat -n /etc/apache2/sites-enabled/*:
[root@ns500529 ~]# cat -n /etc/apache2/sites-enabled/*
cat: /etc/apache2/sites-enabled/*: No such file or directory
[root@ns500529 ~]# cat -n /etc/httpd/sites-enabled/*
cat: /etc/httpd/sites-enabled/*: No such file or directory
cat -n /etc/httpd/conf/httpd.conf:
http://pastebin.com/EU1ADE96
Muito obrigado pela ajuda!!!