HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Server is up but directories are not. (http://www.howtoforge.com/forums/showthread.php?t=56801)

DamianFick 6th April 2012 10:09

Server is up but directories are not.
 
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!

falko 7th April 2012 10:29

For running Wordpress on nginx, take a look here: http://www.howtoforge.com/running-wo...e-ubuntu-11.04

DamianFick 8th April 2012 05:20

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.

falko 8th April 2012 10:19

Quote:

Originally Posted by DamianFick (Post 276940)
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.

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

Quote:

Originally Posted by DamianFick (Post 276940)
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"

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.

Quote:

Originally Posted by DamianFick (Post 276940)
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.

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

Quote:

Originally Posted by DamianFick (Post 276940)
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.

Any errors in your mail log?

DamianFick 8th April 2012 11:53

SELinux is disabled.

Where is my mail logs?

falko 9th April 2012 12:34

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

DamianFick 9th April 2012 15:49

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 <admin@zyphos.co.cc>: Relay access denied; from=<support@ncsoft.com> to=<admin@zyphos.co.cc> 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 <damianfick@zyphos.co.cc>: Relay access denied; from=<ShipPats@d91.k12.id.us> to=<damianfick@zyphos.co.cc> 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 <damianfick@zyphos.co.cc>: Relay access denied; from=<azhg@wmyj.net> to=<damianfick@zyphos.co.cc> 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 <admin@zyphos.co.cc>: Relay access denied; from=<support@ncsoft.com> to=<admin@zyphos.co.cc> 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 <admin@aanime.co.cc>: Relay access denied; from=<alert@pingdom.com> to=<admin@aanime.co.cc> 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 <admin@aanime.co.cc>: Relay access denied; from=<alert@pingdom.com> to=<admin@aanime.co.cc> 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 <admin@zyphos.co.cc>: Relay access denied; from=<support@ncsoft.com> to=<admin@zyphos.co.cc> 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.

falko 10th April 2012 20:46

Quote:

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 <damianfick@zyphos.co.cc>: Relay access denied; from=<ShipPats@d91.k12.id.us> to=<damianfick@zyphos.co.cc> proto=ESMTP helo=<Mail1.d91.k12.id.us>
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?

DamianFick 11th April 2012 04:04

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


All times are GMT +2. The time now is 17:11.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.