Server is up but directories are not.

Discussion in 'Installation/Configuration' started by DamianFick, Apr 6, 2012.

  1. DamianFick

    DamianFick New Member

    I am running a nginx server on centos 6.2 64 bit

    my site is http://aanime.org

    As you can see our site is completely screwed up... That is because no directories are accessible not even the control panel for wordpress or the images directory.

    Suggestions please!
     
    Last edited: Apr 6, 2012
  2. falko

    falko Super Moderator Howtoforge Staff

  3. DamianFick

    DamianFick New Member

    I managed to find a wordpress configuration on the wiki.nginx.org which is waaaay more mind boggling than the one shown on your tutorial. It even recodes your nginx.conf to work with wordpress, cluster servers, multi site compatibility, proxies, and caching.

    Then it gave the optimized vhost code which needed me to make 5 external files... The vhost which is on your tutorial is what i was using and it did not work, however after a few hours working on this it works now.

    But for some stupid reason all of my files and folders are set as random owners such as "client0" "web1" web2" "web3" "ispconfig" "ispdb" and even "falko"

    I dont know why but it is causing me tons of wasted time having to change the users on my websites folders. THEY WILL NOT work read/write under those user accounts. Once set to Apache once a php error ridden website is now clean as a whistle.

    Another problem is postfix, i believe this is my SMTP? it wont turn on and it will not tell me why. It just says Stopping Postfix... [FAILED] Starting Postfix... [FAILED]

    What port does this use if it could be that i doubt it. I am sure all ports are open.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    All I can say is that my configuration works for me and all Wordpress sites I've set up so far.

    web1, web2, etc. are system usernames, client0, client1, etc. are group names. Not sure if you are reading the details your system gives you correctly.

    Did you check your error logs? If you use CentOS, did you disable SELinux?

    Any errors in your mail log?
     
  5. DamianFick

    DamianFick New Member

    SELinux is disabled.

    Where is my mail logs?
     
  6. falko

    falko Super Moderator Howtoforge Staff

    It's in the /var/log/ directory.
     
  7. DamianFick

    DamianFick New Member

    maillog-20120408:

    Apr 8 03:17:07 zs1 clamd[2357]: SelfCheck: Database status OK.
    Apr 8 03:20:01 zs1 pop3d: Connection, ip=[::1]
    Apr 8 03:20:01 zs1 pop3d: Disconnected, ip=[::1]
    Apr 8 03:20:01 zs1 imapd: Connection, ip=[::1]
    Apr 8 03:20:01 zs1 imapd: Disconnected, ip=[::1], time=0
    Apr 8 03:20:01 zs1 postfix/sendmail[26595]: fatal: bad string length 0 < 1: myhostname =
    Apr 8 03:25:02 zs1 pop3d: Connection, ip=[::1]
    Apr 8 03:25:02 zs1 pop3d: Disconnected, ip=[::1]
    Apr 8 03:25:02 zs1 imapd: Connection, ip=[::1]
    Apr 8 03:25:02 zs1 imapd: Disconnected, ip=[::1], time=0
    Apr 8 03:25:02 zs1 postfix/sendmail[26839]: fatal: bad string length 0 < 1: myhostname =

    maillog:

    Apr 9 03:54:30 zs1 postfix/smtpd[3159]: connect from ncwedge99.us.ncsoft.com[64.25.34.36]
    Apr 9 03:54:30 zs1 postfix/smtpd[3159]: NOQUEUE: reject: RCPT from ncwedge99.us.ncsoft.com[64.25.34.36]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<ncwedge99.us.ncsoft.com>
    Apr 9 03:54:31 zs1 postfix/smtpd[3159]: disconnect from ncwedge99.us.ncsoft.com[64.25.34.36]
    Apr 9 03:57:51 zs1 postfix/anvil[3162]: statistics: max connection rate 1/60s for (smtp:64.25.34.36) at Apr 9 03:54:30
    Apr 9 03:57:51 zs1 postfix/anvil[3162]: statistics: max connection count 1 for (smtp:64.25.34.36) at Apr 9 03:54:30
    Apr 9 03:57:51 zs1 postfix/anvil[3162]: statistics: max cache size 1 at Apr 9 03:54:30
    Apr 9 03:59:10 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 04:06:14 zs1 postfix/smtpd[3280]: connect from mail.d91.k12.id.us[69.20.174.13]
    Apr 9 04:06:14 zs1 postfix/smtpd[3280]: NOQUEUE: reject: RCPT from mail.d91.k12.id.us[69.20.174.13]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<Mail1.d91.k12.id.us>
    Apr 9 04:06:14 zs1 postfix/smtpd[3280]: disconnect from mail.d91.k12.id.us[69.20.174.13]
    Apr 9 04:09:10 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 04:09:34 zs1 postfix/anvil[3283]: statistics: max connection rate 1/60s for (smtp:69.20.174.13) at Apr 9 04:06:14
    Apr 9 04:09:34 zs1 postfix/anvil[3283]: statistics: max connection count 1 for (smtp:69.20.174.13) at Apr 9 04:06:14
    Apr 9 04:09:34 zs1 postfix/anvil[3283]: statistics: max cache size 1 at Apr 9 04:06:14
    Apr 9 04:19:10 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 04:29:10 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 04:39:10 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 04:41:06 zs1 postfix/smtpd[3670]: connect from unknown[123.238.176.154]
    Apr 9 04:41:07 zs1 postfix/smtpd[3670]: NOQUEUE: reject: RCPT from unknown[123.238.176.154]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=SMTP helo=<abcd>
    Apr 9 04:41:07 zs1 postfix/smtpd[3670]: lost connection after RCPT from unknown[123.238.176.154]
    Apr 9 04:41:07 zs1 postfix/smtpd[3670]: disconnect from unknown[123.238.176.154]
    Apr 9 04:44:27 zs1 postfix/anvil[3673]: statistics: max connection rate 1/60s for (smtp:123.238.176.154) at Apr 9 04:41:06
    Apr 9 04:44:27 zs1 postfix/anvil[3673]: statistics: max connection count 1 for (smtp:123.238.176.154) at Apr 9 04:41:06
    Apr 9 04:44:27 zs1 postfix/anvil[3673]: statistics: max cache size 1 at Apr 9 04:41:06
    Apr 9 04:49:10 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 04:59:10 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 05:09:10 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 05:17:32 zs1 postfix/smtpd[4392]: connect from ncwedge99.us.ncsoft.com[64.25.34.36]
    Apr 9 05:17:32 zs1 postfix/smtpd[4392]: NOQUEUE: reject: RCPT from ncwedge99.us.ncsoft.com[64.25.34.36]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<ncwedge99.us.ncsoft.com>
    Apr 9 05:17:32 zs1 postfix/smtpd[4392]: disconnect from ncwedge99.us.ncsoft.com[64.25.34.36]
    Apr 9 05:17:51 zs1 postfix/smtpd[4392]: connect from mailsend.pingdom.com[83.140.19.112]
    Apr 9 05:17:51 zs1 postfix/smtpd[4392]: NOQUEUE: reject: RCPT from mailsend.pingdom.com[83.140.19.112]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mailsend.pingdom.com>
    Apr 9 05:17:52 zs1 postfix/smtpd[4392]: disconnect from mailsend.pingdom.com[83.140.19.112]
    Apr 9 05:19:11 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 05:21:12 zs1 postfix/anvil[4395]: statistics: max connection rate 1/60s for (smtp:64.25.34.36) at Apr 9 05:17:32
    Apr 9 05:21:12 zs1 postfix/anvil[4395]: statistics: max connection count 1 for (smtp:64.25.34.36) at Apr 9 05:17:32
    Apr 9 05:21:12 zs1 postfix/anvil[4395]: statistics: max cache size 2 at Apr 9 05:17:51
    Apr 9 05:22:13 zs1 postfix/smtpd[4505]: connect from mailsend.pingdom.com[83.140.19.112]
    Apr 9 05:22:13 zs1 postfix/smtpd[4505]: NOQUEUE: reject: RCPT from mailsend.pingdom.com[83.140.19.112]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mailsend.pingdom.com>
    Apr 9 05:22:13 zs1 postfix/smtpd[4505]: disconnect from mailsend.pingdom.com[83.140.19.112]
    Apr 9 05:25:33 zs1 postfix/anvil[4508]: statistics: max connection rate 1/60s for (smtp:83.140.19.112) at Apr 9 05:22:13
    Apr 9 05:25:33 zs1 postfix/anvil[4508]: statistics: max connection count 1 for (smtp:83.140.19.112) at Apr 9 05:22:13
    Apr 9 05:25:33 zs1 postfix/anvil[4508]: statistics: max cache size 1 at Apr 9 05:22:13
    Apr 9 05:29:11 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 05:39:11 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 05:49:11 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 05:59:11 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 06:09:11 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 06:19:11 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 06:29:11 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 06:39:11 zs1 clamd[14068]: SelfCheck: Database status OK.
    Apr 9 06:41:18 zs1 postfix/smtpd[6408]: connect from ncwedge99.us.ncsoft.com[64.25.34.36]
    Apr 9 06:41:18 zs1 postfix/smtpd[6408]: NOQUEUE: reject: RCPT from ncwedge99.us.ncsoft.com[64.25.34.36]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<ncwedge99.us.ncsoft.com>
    Apr 9 06:41:19 zs1 postfix/smtpd[6408]: disconnect from ncwedge99.us.ncsoft.com[64.25.34.36]
    Apr 9 06:44:39 zs1 postfix/anvil[6411]: statistics: max connection rate 1/60s for (smtp:64.25.34.36) at Apr 9 06:41:18
    Apr 9 06:44:39 zs1 postfix/anvil[6411]: statistics: max connection count 1 for (smtp:64.25.34.36) at Apr 9 06:41:18
    Apr 9 06:44:39 zs1 postfix/anvil[6411]: statistics: max cache size 1 at Apr 9 06:41:18

    thats what i see i cant post everything way too much info.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Do these "relay access denied" errors appear when you try to send an email to the outside, or if someone tries to send an email to you?
     
  9. DamianFick

    DamianFick New Member

    I wouldnt know mailman does not allow access to it from any domain even localhost and Microsoft Outlook will not connect to it.
     

Share This Page