"The Perfect Server Guide" problems

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

  1. DamianFick

    DamianFick New Member

    http://www.howtoforge.com/perfect-server-centos-6.2-x86_64-with-nginx-ispconfig-3-p1

    I followed this to the T alot of it was messed up like the directories for rpm was rpmbuild which did not exist so i had to change it to rpm.

    Some of the links also did not work, sourceforge links i had to add --no-check-certificate on so it would allow me to download it.

    Despite all this i did install everything however the outcome wasnt as expected.

    Nginx works as far as i can see however ispconfig, phpmyadmin, php, do not.

    PHP-FPM i cannot get to install nor run. I do not know if this is the sole cause of everything not working or what but i could really use some help right now.

    I also cannot figure out how to update my PHP to 5.4.0 and mysql.

    I am very new to linux (4 days trying) and dont know whats up or down with this thing.

    I am using Centos 6.2

    My Server: http://67.160.190.32
     
  2. till

    till Super Moderator

    If youre new to Linux then the centos setup is not a good starting point as its much more complicated to install and maintain then other distributions. You should consider to use this guide here instead which is the recommended guide for ISPConfig 3 and nginx:

    http://www.howtoforge.com/perfect-server-ubuntu-11.10-with-nginx-ispconfig-3
     
  3. DamianFick

    DamianFick New Member

    Id rather choose an operating system best for my server not for my skills. Ubuntu is horrible Ive tried it and hated it. I like centos so far I'm learning but this support forums isn't great if you don't help others instead give them criticism on what operating system a noob should use.

    I asked for help on how to fix my PHP problem not what version of linux should a noob use.

    The server IS SETUP its online and working but PHP is not running that is my problem, whenever i place a PHP file in the nginx folder it gives a 403 page error when html files are there it works no problems.
     
  4. till

    till Super Moderator

    I recommended you the operating system thats best for your server when you want to use ispconfig. That its easier to install is just a side affect.You might remember this when your system crashed the first time on centos updates due to package dependency conflicts or when you want to update to centos 7 in future and find out that its wont work. Regarding Ubuntu, I guess you mean Ubuntu desktop? I talk about Ubuntu server.

    Then post the exact error messages form your global and website log files and the ls -la output from your web folder.
     
  5. DamianFick

    DamianFick New Member

    And how exactly do i do that? As far as i can see there is no errors, all services are running fine but PHP does not work.

    [root@zs1 html]# ls -la
    total 32
    drwxr-xr-x 2 root root 4096 Apr 2 18:35 .
    drwxr-xr-x 3 root root 4096 Mar 15 14:29 ..
    -rw-r--r-- 1 root root 3652 Mar 15 14:26 404.html
    -rw-r--r-- 1 root root 3695 Mar 15 14:26 50x.html
    -rw-r--r-- 1 root root 3698 Mar 15 14:26 index.html
    -rw-r--r-- 1 root root 3698 Feb 19 19:03 index.html~
    -rw-r--r-- 1 root root 370 Mar 15 14:26 nginx-logo.png
    -rw-r--r-- 1 root root 3034 Mar 15 14:26 poweredby.png
    [root@zs1 html]# cd '/usr/share/nginx'
    [root@zs1 nginx]# ls -la
    total 20
    drwxr-xr-x 3 root root 4096 Mar 15 14:29 .
    drwxr-xr-x. 248 root root 12288 Apr 1 22:23 ..
    drwxr-xr-x 2 root root 4096 Apr 2 18:35 html

    i am not sure if this is what you meant but here it is.
     
    Last edited: Apr 3, 2012
  6. falko

    falko Super Moderator

    What are the outputs of
    Code:
    netstat -tapn
    and
    Code:
     ls -la /var/lib/php5-fpm/
    ?

    Your website folder should be something like /var/www/example.com/web/, so please post the output of
    Code:
    ls -la
    from that folder.

    Also, please check the nginx and PHP-FPM error logs (should both be in /var/log/).

    Did you disable SELinux?
     
  7. DamianFick

    DamianFick New Member

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2541/mysqld
    tcp 0 0 0.0.0.0:34730 0.0.0.0:* LISTEN 2332/rpc.mountd
    tcp 0 0 0.0.0.0:875 0.0.0.0:* LISTEN 2316/rpc.rquotad
    tcp 0 0 0.0.0.0:54028 0.0.0.0:* LISTEN 2332/rpc.mountd
    tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN 2415/clamd
    tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 22063/spamd.pid
    tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1979/rpcbind
    tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 2651/nginx
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2651/nginx
    tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN 2651/nginx
    tcp 0 0 0.0.0.0:5938 0.0.0.0:* LISTEN 27779/c
    tcp 0 0 192.168.0.102:53 0.0.0.0:* LISTEN 2042/named
    tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2660/pure-ftpd (SER
    tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 2042/named
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2371/sshd
    tcp 0 0 127.0.0.1:6039 0.0.0.0:* LISTEN 27779/c
    tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2114/cupsd
    tcp 0 0 0.0.0.0:33207 0.0.0.0:* LISTEN 2065/rpc.statd
    tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 24629/master
    tcp 0 0 0.0.0.0:38719 0.0.0.0:* LISTEN 2332/rpc.mountd
    tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
    tcp 0 0 0.0.0.0:58498 0.0.0.0:* LISTEN -
    tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 22093/amavisd (mast
    tcp 0 0 0.0.0.0:5672 0.0.0.0:* LISTEN 2671/qpidd
    tcp 0 0 192.168.0.102:46741 23.49.56.121:80 ESTABLISHED 3857/clock-applet
    tcp 0 0 192.168.0.102:47555 23.3.68.113:80 ESTABLISHED 3629/gweather-apple
    tcp 0 0 192.168.0.102:47556 23.3.68.113:80 ESTABLISHED 3629/gweather-apple
    tcp 0 0 127.0.0.1:54006 127.0.0.1:50830 ESTABLISHED 27779/c
    tcp 0 0 127.0.0.1:50830 127.0.0.1:54006 ESTABLISHED 27779/c
    tcp 1 0 192.168.0.102:53720 8.27.241.252:80 CLOSE_WAIT 3629/gweather-apple
    tcp 0 0 192.168.0.102:80 173.245.52.158:32520 ESTABLISHED 2652/nginx
    tcp 1 1 192.168.0.102:53668 8.27.241.252:80 LAST_ACK -
    tcp 0 0 192.168.0.102:56967 69.245.42.194:5938 ESTABLISHED 27779/c
    tcp 0 0 192.168.0.102:80 141.101.75.16:32546 ESTABLISHED 2652/nginx
    tcp 0 0 192.168.0.102:80 141.101.75.16:53146 ESTABLISHED 2652/nginx
    tcp 0 0 :::110 :::* LISTEN 23802/couriertcpd
    tcp 0 0 :::143 :::* LISTEN 23780/couriertcpd
    tcp 0 0 :::111 :::* LISTEN 1979/rpcbind
    tcp 0 0 :::21 :::* LISTEN 2660/pure-ftpd (SER
    tcp 0 0 :::58837 :::* LISTEN 2065/rpc.statd
    tcp 0 0 :::22 :::* LISTEN 2371/sshd
    tcp 0 0 ::1:631 :::* LISTEN 2114/cupsd
    tcp 0 0 ::1:25 :::* LISTEN 24629/master
    tcp 0 0 :::54876 :::* LISTEN 2332/rpc.mountd
    tcp 0 0 :::53532 :::* LISTEN -
    tcp 0 0 :::33920 :::* LISTEN 2332/rpc.mountd
    tcp 0 0 :::993 :::* LISTEN 23796/couriertcpd
    tcp 0 0 :::2049 :::* LISTEN -
    tcp 0 0 :::995 :::* LISTEN 23817/couriertcpd
    tcp 0 0 :::41256 :::* LISTEN 2332/rpc.mountd




    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    bash: Proto: command not found
    tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2541/mysqld
    tcp 0 0 0.0.0.0:34730 0.0.0.0:* LISTEN 2332/rpc.mountd
    tcp 0 0 0.0.0.0:875 0.0.0.0:* LISTEN 2316/rpc.rquotad
    tcp 0 0 0.0.0.0:54028 0.0.0.0:* LISTEN 2332/rpc.mountd
    tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN 2415/clamd
    tcp 0 0 127.0.0.1:783 0.0.0.0:* LISTEN 22063/spamd.pid
    tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1979/rpcbind
    tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 2651/nginx
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2651/nginx
    tcp 0 0 0.0.0.0:8081 0.0.0.0:* LISTEN 2651/nginx
    tcp 0 0 0.0.0.0:5938 0.0.0.0:* LISTEN 27779/c
    tcp 0 0 192.168.0.102:53 0.0.0.0:* LISTEN 2042/named
    tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2660/pure-ftpd (SER
    tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 2042/named
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2371/sshd
    tcp 0 0 127.0.0.1:6039 0.0.0.0:* LISTEN 27779/c
    tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2114/cupsd
    tcp 0 0 0.0.0.0:33207 0.0.0.0:* LISTEN 2065/rpc.statd
    tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 24629/master
    tcp 0 0 0.0.0.0:38719 0.0.0.0:* LISTEN 2332/rpc.mountd
    tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
    tcp 0 0 0.0.0.0:58498 0.0.0.0:* LISTEN -
    tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 22093/amavisd (mast
    tcp 0 0 0.0.0.0:5672 0.0.0.0:* LISTEN 2671/qpidd
    tcp 0 0 192.168.0.102:46741 23.49.56.121:80 ESTABLISHED 3857/clock-applet
    tcp 0 0 192.168.0.102:47555 23.3.68.113:80 ESTABLISHED 3629/gweather-apple
    tcp 0 0 192.168.0.102:47556 23.3.68.113:80 ESTABLISHED 3629/gweather-apple
    tcp 0 0 127.0.0.1:54006 127.0.0.1:50830 ESTABLISHED 27779/c
    tcp 0 0 127.0.0.1:50830 127.0.0.1:54006 ESTABLISHED 27779/c
    tcp 1 0 192.168.0.102:53720 8.27.241.252:80 CLOSE_WAIT 3629/gweather-apple
    tcp 0 0 192.168.0.102:80 173.245.52.158:32520 ESTABLISHED 2652/nginx
    tcp 1 1 192.168.0.102:53668 8.27.241.252:80 LAST_ACK -
    tcp 0 0 192.168.0.102:56967 69.245.42.194:5938 ESTABLISHED 27779/c
    tcp 0 0 192.168.0.102:80 141.101.75.16:32546 ESTABLISHED 2652/nginx
    tcp 0 0 192.168.0.102:80 141.101.75.16:53146 ESTABLISHED 2652/nginx
    tcp 0 0 :::110 :::* LISTEN 23802/couriertcpd
    tcp 0 0 :::143 :::* LISTEN 23780/couriertcpd
    tcp 0 0 :::111 :::* LISTEN 1979/rpcbind
    tcp 0 0 :::21 :::*
    tcp 0 0 :::58837 :::* LISTEN 2065/rpc.statd
    tcp 0 0 :::22 :::* LISTEN 2371/sshd
    tcp 0 0 ::1:631 :::* LISTEN 2114/cupsd
    tcp 0 0 ::1:25 :::* LISTEN 24629/master
    tcp 0 0 :::54876 :::* LISTEN 2332/rpc.mountd
    tcp 0 0 :::53532 :::* LISTEN -
    tcp 0 0 :::33920 :::* LISTEN 2332/rpc.mountd
    tcp 0 0 :::993 :::* LISTEN 23796/couriertcpd
    tcp 0 0 :::2049 :::* LISTEN -
    tcp 0 0 :::995 :::* LISTEN 23817/couriertcpd
    tcp 0 0 :::41256 :::* LISTEN 2332/rpc.mountd


    And thats the output folder for Apache not nginx, my web folder is /usr/share/nginx/html

    SELinux is disabled.
     
    Last edited: Apr 4, 2012
  8. DamianFick

    DamianFick New Member

    PHP-FPM is not installed and it will not install, it says No package found when i do yum install php-fpm.

    There are no log directories for that either.

    nginx error log is nothing but 403 errors from google bots trying to access my site.

    Google has a sitemap of my site when it was running but there isnt anything up right now so its creating a massive log... too big for the forums or pastebin...

    EDIT: Installed:
    php-fpm.x86_64 0:5.3.10-2.el6.remi

    Is this the right one?

    Any chance someone could connect via Teamviewer and help me with this?
     
    Last edited: Apr 4, 2012
  9. falko

    falko Super Moderator

    Did you follow the tutorial as closely as possible? Did you enable all repositories that are mentioned in the tutorial?

    If you have created a website through ISPConfig, your document root must be something like /var/www/example.com/web.
     
  10. DamianFick

    DamianFick New Member

    Everything on the tutorial was done precisely. Even got the account Falko on my computer >_>
     
  11. falko

    falko Super Moderator

    Did you notice any errors in the process?
     

Share This Page