Trung Tâm Đào Tạo Mạng Máy Tính Nhất Nghệ

Trung Tâm Đào Tạo Mạng Máy Tính Nhất Nghệ (http://www.nhatnghe.com/forum/index.php)
-   Hosting (http://www.nhatnghe.com/forum/forumdisplay.php?f=119)
-   -   apache không chạy (http://www.nhatnghe.com/forum/showthread.php?t=115230)

tommy85 02-03-2011 09:20

apache không chạy
 
sau khi cài xong cpanel mình vào 2086 ->service status thi apache báo lổi "Failed to receive status information from Apache.
Unable to connect to local httpd server."

mình cũng đã update rồi /scripts/upcp --force nhưng vẩn khong được, restart service apache webserver thì báo lổi, nhờ anh em dien dan giup mình với


Apache restart failed. Unable to load pid from pid file and no httpd process found in process list.

If apache restart reported success but it failed soon after, it may be caused by oddities with mod_ssl.

You should run /scripts/ssl_crt_status as part of your troubleshooting process. Pass it --help for more details.

Also be sure to examine apache's variouse log files.
Apache Restart Output:
Starting httpd: /bin/bash: /usr/sbin/httpd: No such file or directory
[FAILED]

itvietnam 02-03-2011 14:25

Bạn gõ 2 lệnh sau, sau đó paste output lên đây giúp mình.

- service httpd restart
- tail -100 /var/log/messages

tommy85 03-03-2011 07:20

chào anh,
cám ơn anh đã quan tam topic của em, anh xem dùm em nhé

root@vip [~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: /bin/bash: /usr/sbin/httpd: No such file or directory
[FAILED]




root@vip [~]# tail -100 /var/log/messages
Mar 3 06:04:28 vip sshd[1425]: Failed password for root from ::ffff:110.80.24.115 port 58702 ssh2
Mar 3 06:04:29 vip sshd[1427]: Failed password for root from ::ffff:110.80.24.115 port 58801 ssh2
Mar 3 06:04:30 vip sshd[1429]: Failed password for root from ::ffff:110.80.24.115 port 58875 ssh2
Mar 3 06:04:31 vip sshd[1431]: Failed password for root from ::ffff:110.80.24.115 port 58949 ssh2
Mar 3 06:04:32 vip sshd[1433]: Failed password for root from ::ffff:110.80.24.115 port 59039 ssh2
Mar 3 06:04:33 vip sshd[1435]: Failed password for root from ::ffff:110.80.24.115 port 59113 ssh2
Mar 3 06:04:34 vip sshd[1437]: Failed password for root from ::ffff:110.80.24.115 port 59200 ssh2
Mar 3 06:04:35 vip sshd[1439]: Failed password for root from ::ffff:110.80.24.115 port 59268 ssh2
Mar 3 06:04:36 vip sshd[1441]: Failed password for root from ::ffff:110.80.24.115 port 59348 ssh2
Mar 3 06:04:37 vip sshd[1443]: Failed password for root from ::ffff:110.80.24.115 port 59424 ssh2
Mar 3 06:04:38 vip sshd[1445]: Failed password for root from ::ffff:110.80.24.115 port 59504 ssh2
Mar 3 06:04:40 vip sshd[1447]: Failed password for root from ::ffff:110.80.24.115 port 59585 ssh2
Mar 3 06:04:41 vip sshd[1449]: Failed password for root from ::ffff:110.80.24.115 port 59670 ssh2
Mar 3 06:04:42 vip sshd[1451]: Failed password for root from ::ffff:110.80.24.115 port 59752 ssh2
Mar 3 06:04:43 vip sshd[1453]: Failed password for root from ::ffff:110.80.24.115 port 59828 ssh2
Mar 3 06:04:44 vip sshd[1455]: Failed password for root from ::ffff:110.80.24.115 port 59915 ssh2
Mar 3 06:04:45 vip sshd[1457]: Failed password for root from ::ffff:110.80.24.115 port 59999 ssh2
Mar 3 06:04:46 vip sshd[1459]: Failed password for root from ::ffff:110.80.24.115 port 60073 ssh2
Mar 3 06:04:47 vip sshd[1461]: Failed password for root from ::ffff:110.80.24.115 port 60143 ssh2
Mar 3 06:04:48 vip sshd[1463]: Failed password for root from ::ffff:110.80.24.115 port 60227 ssh2
Mar 3 06:04:49 vip sshd[1465]: Failed password for root from ::ffff:110.80.24.115 port 60312 ssh2
Mar 3 06:04:50 vip sshd[1467]: Failed password for root from ::ffff:110.80.24.115 port 60394 ssh2
Mar 3 06:04:51 vip sshd[1469]: Failed password for root from ::ffff:110.80.24.115 port 60470 ssh2
Mar 3 06:04:52 vip sshd[1471]: Failed password for root from ::ffff:110.80.24.115 port 60566 ssh2
Mar 3 06:04:53 vip sshd[1473]: Failed password for root from ::ffff:110.80.24.115 port 60637 ssh2
Mar 3 06:04:54 vip sshd[1475]: Failed password for root from ::ffff:110.80.24.115 port 60702 ssh2
Mar 3 06:04:55 vip sshd[1477]: Failed password for root from ::ffff:110.80.24.115 port 60774 ssh2
Mar 3 06:04:57 vip sshd[1479]: Failed password for root from ::ffff:110.80.24.115 port 60844 ssh2
Mar 3 06:04:58 vip sshd[1481]: Failed password for root from ::ffff:110.80.24.115 port 60920 ssh2
Mar 3 06:04:59 vip sshd[1483]: Failed password for root from ::ffff:110.80.24.115 port 32787 ssh2
Mar 3 06:05:00 vip sshd[1485]: Failed password for root from ::ffff:110.80.24.115 port 32880 ssh2
Mar 3 06:05:01 vip sshd[1487]: Failed password for root from ::ffff:110.80.24.115 port 32957 ssh2
Mar 3 06:05:02 vip sshd[1496]: Failed password for root from ::ffff:110.80.24.115 port 33051 ssh2
Mar 3 06:05:03 vip sshd[1500]: Failed password for root from ::ffff:110.80.24.115 port 33159 ssh2
Mar 3 06:05:04 vip sshd[1502]: Failed password for root from ::ffff:110.80.24.115 port 33249 ssh2
Mar 3 06:05:05 vip sshd[1504]: Failed password for root from ::ffff:110.80.24.115 port 33325 ssh2
Mar 3 06:05:06 vip sshd[1506]: Failed password for root from ::ffff:110.80.24.115 port 33394 ssh2
Mar 3 06:05:07 vip sshd[1508]: Failed password for root from ::ffff:110.80.24.115 port 33494 ssh2
Mar 3 06:05:08 vip sshd[1510]: Failed password for root from ::ffff:110.80.24.115 port 33570 ssh2
Mar 3 06:05:09 vip sshd[1512]: Failed password for root from ::ffff:110.80.24.115 port 33638 ssh2
Mar 3 06:05:10 vip sshd[1514]: Failed password for root from ::ffff:110.80.24.115 port 33719 ssh2
Mar 3 06:05:11 vip sshd[1516]: Failed password for root from ::ffff:110.80.24.115 port 33791 ssh2
Mar 3 06:05:12 vip sshd[1518]: Failed password for root from ::ffff:110.80.24.115 port 33863 ssh2
Mar 3 06:05:14 vip sshd[1520]: Failed password for root from ::ffff:110.80.24.115 port 33947 ssh2
Mar 3 06:05:15 vip sshd[1522]: Failed password for root from ::ffff:110.80.24.115 port 34013 ssh2
Mar 3 06:05:16 vip sshd[1524]: Failed password for root from ::ffff:110.80.24.115 port 34088 ssh2
Mar 3 06:05:17 vip sshd[1527]: Failed password for root from ::ffff:110.80.24.115 port 34179 ssh2
Mar 3 06:05:18 vip sshd[1529]: Failed password for root from ::ffff:110.80.24.115 port 34259 ssh2
Mar 3 06:05:19 vip sshd[1531]: Failed password for root from ::ffff:110.80.24.115 port 34338 ssh2
Mar 3 06:05:20 vip sshd[1533]: Failed password for root from ::ffff:110.80.24.115 port 34428 ssh2
Mar 3 06:05:21 vip sshd[1535]: Failed password for root from ::ffff:110.80.24.115 port 34502 ssh2
Mar 3 06:05:22 vip sshd[1537]: Failed password for root from ::ffff:110.80.24.115 port 34580 ssh2
Mar 3 06:05:23 vip sshd[1539]: Failed password for root from ::ffff:110.80.24.115 port 34673 ssh2
Mar 3 06:11:52 vip named[1944]: network unreachable resolving 'ns1.msft.net/A/IN': 2001:500:3::42#53
Mar 3 06:11:52 vip named[1944]: network unreachable resolving 'ns1.msft.net/AAAA/IN': 2001:500:3::42#53
Mar 3 06:26:25 vip sshd[2496]: Accepted password for root from ::ffff:79.151.122.83 port 1834 ssh2
Mar 3 06:26:26 vip named[1944]: network unreachable resolving '83.122.151.79.in-addr.arpa/PTR/IN': 2001:dc0:1:0:4777::140#53
Mar 3 06:26:26 vip named[1944]: network unreachable resolving '83.122.151.79.in-addr.arpa/PTR/IN': 2001:dc0:2001:a:4608::59#53
Mar 3 06:26:26 vip named[1944]: network unreachable resolving 'ns-pri.ripe.net/A/IN': 2001:67c:e0::5#53
Mar 3 06:26:26 vip named[1944]: network unreachable resolving 'ns-pri.ripe.net/AAAA/IN': 2001:67c:e0::5#53
Mar 3 06:26:26 vip named[1944]: network unreachable resolving '83.122.151.79.in-addr.arpa/PTR/IN': 2001:500:13::c7d4:35#53
Mar 3 06:26:26 vip named[1944]: network unreachable resolving '83.122.151.79.in-addr.arpa/PTR/IN': 2001:13c7:7002:3000::11#53
Mar 3 06:26:26 vip named[1944]: network unreachable resolving 'ns-pri.ripe.net/A/IN': 2001:660:3006:1::1:1#53
Mar 3 06:26:26 vip named[1944]: network unreachable resolving 'ns-pri.ripe.net/AAAA/IN': 2001:660:3006:1::1:1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'za.akadns.org/A/IN': 2001:500:b::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'za.akadns.org/AAAA/IN': 2001:500:b::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'zb.akadns.org/A/IN': 2001:500:e::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'zb.akadns.org/AAAA/IN': 2001:500:e::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'zc.akadns.org/A/IN': 2001:500:f::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'zc.akadns.org/AAAA/IN': 2001:500:f::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'zd.akadns.org/A/IN': 2001:500:48::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'zd.akadns.org/AAAA/IN': 2001:500:48::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'za.akadns.org/A/IN': 2001:500:e::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'za.akadns.org/AAAA/IN': 2001:500:e::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'zb.akadns.org/A/IN': 2001:500:f::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'zb.akadns.org/AAAA/IN': 2001:500:f::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'zc.akadns.org/A/IN': 2001:500:48::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'zc.akadns.org/AAAA/IN': 2001:500:48::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'za.akadns.org/A/IN': 2001:500:f::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'za.akadns.org/AAAA/IN': 2001:500:f::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'za.akadns.org/A/IN': 2001:500:48::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'zb.akadns.org/A/IN': 2001:500:48::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'zb.akadns.org/AAAA/IN': 2001:500:48::1#53
Mar 3 06:27:26 vip named[1944]: network unreachable resolving 'za.akadns.org/AAAA/IN': 2001:500:48::1#53
Mar 3 06:28:51 vip named[1944]: network unreachable resolving 'saelack.iavalley.cc.ia.us/A/IN': 2001:7fd::1#53
Mar 3 06:28:51 vip named[1944]: network unreachable resolving 'saelack.iavalley.cc.ia.us/AAAA/IN': 2001:7fd::1#53
Mar 3 06:28:52 vip named[1944]: network unreachable resolving 'DNS3.UIOWA.EDU/A/IN': 2620:0:e50:2::3#53
Mar 3 06:28:52 vip named[1944]: network unreachable resolving 'nlns.globnix.net/A/IN': 2a02:898:31::53:0#53
Mar 3 06:28:52 vip named[1944]: network unreachable resolving 'rip.psg.com/A/IN': 2001:418:1::62#53
Mar 3 06:28:52 vip named[1944]: network unreachable resolving 'rip.psg.com/AAAA/IN': 2001:418:1::62#53
Mar 3 06:28:53 vip named[1944]: network unreachable resolving 'isu.dns.northernlights.gigapop.net/AAAA/IN': 2001:468:1910:4802::2#53
Mar 3 06:28:53 vip named[1944]: network unreachable resolving 'isu.dns.northernlights.gigapop.net/A/IN': 2001:468:1910:4802::2#53
Mar 3 06:28:53 vip named[1944]: network unreachable resolving 'isu.dns.northernlights.gigapop.net/AAAA/IN': 2001:468:1910:4801::2#53
Mar 3 06:28:53 vip named[1944]: network unreachable resolving 'isu.dns.northernlights.gigapop.net/A/IN': 2001:468:1910:4801::2#53
Mar 3 07:08:47 vip named[1944]: network unreachable resolving 'ftp.cuhk.edu.hk/A/IN': 2405:3000:3:60::1#53
Mar 3 07:12:03 vip named[1944]: network unreachable resolving 'ns1.msft.net/A/IN': 2001:7fe::53#53
Mar 3 07:41:45 vip named[1944]: network unreachable resolving 'cingular.com/NS/IN': 2001:503:a83e::2:30#53
Mar 3 08:00:54 vip avahi-daemon[2766]: Invalid query packet.
Mar 3 08:00:54 vip last message repeated 2 times
Mar 3 08:11:35 vip sshd[9327]: Accepted password for root from ::ffff:192.168.0.128 port 49239 ssh2

itvietnam 03-03-2011 12:53

Trích:

Failed to receive status information from Apache.
Unable to connect to local httpd server.
Lỗi này là thông báo do không connect được tới service httpd của server. Bạn kiểm tra lại xem phần Location của module này xem có deny connect từ ip 127.0.0.1 không ? web có truy cập được không ? Nếu không thì restart lại service httpd và kiểm tra log xem báo lỗi gì.

Log bạn post ở trên chưa đủ thông tin để tìm ra nguyên nhân.


Múi giờ GMT +7. Hiện tại là 06:19

Powered by: vBulletin Version 3.8.7
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Ad Management by RedTyger