Can not create new websites ispconfig3.0.3

Discussion in 'Installation/Configuration' started by korbynn, Dec 1, 2010.

  1. korbynn

    korbynn Member

    I have the latest version of ispconfig installed. Running CentOS 5.5.

    I create the website entry, add DNS entries but the creation of the site directories do not get created. Deleted the entry and tried again but the file structure does not exist for website. What am I missing?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Any errors in your monitoring module?
     
  3. korbynn

    korbynn Member

    The monitoring module is only showing that ClamAV is out of date.
    I have deleted and tried creating other websites. The data in the database is created but not the directory structure and or entries for apache.
    Attempting to access the website results in an internal error.

    What permissions or code should I look at?
     
  4. korbynn

    korbynn Member

    I have also noticed that cron jobs are entered into the database but not added to the crontab.

    It appears that ispconfig has lost permissions to do anything except for the database.
     
  5. cbj4074

    cbj4074 Member

    1.) Does Apache spit-out any errors when you start the service?

    Code:
    # service apache2 restart
    
    2.) Is Apache able to write to the given domain's log file at /var/www/domain.tld/log/error.log?
     
  6. korbynn

    korbynn Member

    Apache has no error except for no virtual domain on an ip error.
    Apache has no problems writing to log or error files.

    On CentOS 5.5 I am running PHP 5.3.3. I have many websites that are php based and have not found a problem with the package.

    Found error:
    client denied by server configuration /var/www/awstats ...

    Plus I am getting a few Depracated errors.

    When I did a yum update there was a complaint about selinux not configured properly because of some configuration in ispconfig. I am using putty on win xp so I could not copy that information. selinux is off!

    What configuration should I look at?
     
  7. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    getenforce
    ?
     
  8. korbynn

    korbynn Member

    Result of getenforce is: Disabled
     
  9. korbynn

    korbynn Member

    Any thoughts on this problem work be helpful.

    Would updating the installation help?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check the ispconfig monitor. Are there any pending jobs listed in the jobqueue?
     
  11. korbynn

    korbynn Member

    Yes, the job queue is packed with 6 pages of tasks.
    How do I execute the task list?
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Please run
    Code:
    /usr/local/ispconfig/server/server.sh
    manually on the command line. Do you get any errors?
     
  13. korbynn

    korbynn Member

    Result of command:
    09.12.2010-10:15 - DEBUG - There is already an instance of server.php running. Exiting.
     
  14. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ps aux
    ?
     
  15. korbynn

    korbynn Member

    Here is the dump:
    Code:
    USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    root         1  0.0  0.0   2160   584 ?        Ss   Dec01   0:06 init [3]
    root         2  0.0  0.0      0     0 ?        S<   Dec01   0:00 [migration/0]
    root         3  0.0  0.0      0     0 ?        SN   Dec01   0:00 [ksoftirqd/0]
    root         4  0.0  0.0      0     0 ?        S<   Dec01   0:00 [watchdog/0]
    root         5  0.0  0.0      0     0 ?        S<   Dec01   0:00 [migration/1]
    root         6  0.0  0.0      0     0 ?        SN   Dec01   0:00 [ksoftirqd/1]
    root         7  0.0  0.0      0     0 ?        S<   Dec01   0:00 [watchdog/1]
    root         8  0.0  0.0      0     0 ?        S<   Dec01   0:00 [events/0]
    root         9  0.0  0.0      0     0 ?        S<   Dec01   0:00 [events/1]
    root        10  0.0  0.0      0     0 ?        S<   Dec01   0:00 [khelper]
    root        11  0.0  0.0      0     0 ?        S<   Dec01   0:00 [kthread]
    root        15  0.0  0.0      0     0 ?        S<   Dec01   0:00 [kblockd/0]
    root        16  0.0  0.0      0     0 ?        S<   Dec01   0:00 [kblockd/1]
    root        17  0.0  0.0      0     0 ?        S<   Dec01   0:00 [kacpid]
    root        83  0.0  0.0      0     0 ?        S<   Dec01   0:00 [cqueue/0]
    root        84  0.0  0.0      0     0 ?        S<   Dec01   0:00 [cqueue/1]
    root        87  0.0  0.0      0     0 ?        S<   Dec01   0:00 [khubd]
    root        89  0.0  0.0      0     0 ?        S<   Dec01   0:00 [kseriod]
    root       156  0.0  0.0      0     0 ?        S    Dec01   0:00 [khungtaskd]
    root       157  0.0  0.0      0     0 ?        S    Dec01   0:00 [pdflush]
    root       158  0.0  0.0      0     0 ?        S    Dec01   0:04 [pdflush]
    root       159  0.0  0.0      0     0 ?        S<   Dec01   0:00 [kswapd0]
    root       160  0.0  0.0      0     0 ?        S<   Dec01   0:00 [aio/0]
    root       161  0.0  0.0      0     0 ?        S<   Dec01   0:00 [aio/1]
    root       317  0.0  0.0      0     0 ?        S<   Dec01   0:00 [kpsmoused]
    root       346  0.0  0.0      0     0 ?        S<   Dec01   0:00 [ata/0]
    root       347  0.0  0.0      0     0 ?        S<   Dec01   0:00 [ata/1]
    root       348  0.0  0.0      0     0 ?        S<   Dec01   0:00 [ata_aux]
    root       352  0.0  0.0      0     0 ?        S<   Dec01   0:00 [scsi_eh_0]
    root       353  0.0  0.0      0     0 ?        S<   Dec01   0:00 [scsi_eh_1]
    root       363  0.0  0.0      0     0 ?        S<   Dec01   0:00 [kstriped]
    root       376  0.0  0.0      0     0 ?        S<   Dec01   1:03 [kjournald]
    root       401  0.0  0.0      0     0 ?        S<   Dec01   0:02 [kauditd]
    root       434  0.0  0.0   2376   636 ?        S<s  Dec01   0:00 /sbin/udevd -d
    amavis     592  0.0  2.2  81836 68568 ?        S    16:22   0:04 amavisd (ch8-avail)
    apache     761  0.0  0.7  77452 23996 ?        S    Dec05   0:07 /usr/sbin/httpd
    apache     762  0.0  0.7  77288 24548 ?        S    Dec05   0:27 /usr/sbin/httpd
    apache     764  0.0  0.7  76244 21856 ?        S    Dec05   0:06 /usr/sbin/httpd
    apache     769  0.0  0.6  76820 21800 ?        S    Dec05   0:06 /usr/sbin/httpd
    apache     771  0.0  0.7  76276 23528 ?        S    Dec05   0:07 /usr/sbin/httpd
    root       892  0.0  0.0      0     0 ?        S<   Dec01   0:00 [kedac]
    root      1150  0.0  0.0      0     0 ?        S<   Dec01   0:00 [kmpathd/0]
    root      1151  0.0  0.0      0     0 ?        S<   Dec01   0:00 [kmpathd/1]
    root      1152  0.0  0.0      0     0 ?        S<   Dec01   0:00 [kmpath_handlerd]
    root      1181  0.0  0.0      0     0 ?        S<   Dec01   0:00 [kjournald]
    root      1701  0.0  0.0  13652   836 ?        S<sl Dec01   0:32 auditd
    root      1703  0.0  0.0  13188   780 ?        S<sl Dec01   0:11 /sbin/audispd
    rpc       1764  0.0  0.0   1912   548 ?        Ss   Dec01   0:00 portmap
    root      1795  0.0  0.0      0     0 ?        S<   Dec01   0:00 [rpciod/0]
    root      1796  0.0  0.0      0     0 ?        S<   Dec01   0:00 [rpciod/1]
    rpcuser   1803  0.0  0.0   1964   744 ?        Ss   Dec01   0:00 rpc.statd
    root      1810  0.0  0.0   1748   424 ?        S    Dec01   0:00 /usr/sbin/courierlogger -pid=/var/spool/authdaemon/pid -
    root      1811  0.0  0.0   6892  1480 ?        S    Dec01   0:00 /usr/libexec/courier-authlib/authdaemond
    root      1843  0.0  0.0   5928   644 ?        Ss   Dec01   0:00 rpc.idmapd
    root      1864  0.0  0.0   6940  1372 ?        S    Dec01   0:00 /usr/libexec/courier-authlib/authdaemond
    root      1865  0.0  0.0   6940  1372 ?        S    Dec01   0:00 /usr/libexec/courier-authlib/authdaemond
    root      1866  0.0  0.0   6940  1372 ?        S    Dec01   0:00 /usr/libexec/courier-authlib/authdaemond
    root      1867  0.0  0.0   6940  1372 ?        S    Dec01   0:00 /usr/libexec/courier-authlib/authdaemond
    root      1868  0.0  0.0   7040  1380 ?        S    Dec01   0:00 /usr/libexec/courier-authlib/authdaemond
    dbus      1871  0.0  0.0   2844   940 ?        Ss   Dec01   0:00 dbus-daemon --system
    root      1884  0.0  0.0   2256   768 ?        Ss   Dec01   0:00 /usr/sbin/hcid
    root      1890  0.0  0.0   1832   512 ?        Ss   Dec01   0:00 /usr/sbin/sdpd
    root      1913  0.0  0.0      0     0 ?        S<   Dec01   0:00 [krfcommd]
    root      1957  0.0  0.0  12828  1360 ?        Ssl  Dec01   0:00 pcscd
    root      1971  0.0  0.0   1760   528 ?        Ss   Dec01   0:00 /usr/sbin/acpid
    root      1993  0.0  0.0   2008   448 ?        Ss   Dec01   0:00 /usr/bin/hidd --server
    root      2009  0.0  0.0  24964  1236 ?        Sl   Dec01   2:10 /sbin/rsyslogd -m 0
    root      2036  0.0  0.0  30444  1384 ?        Ssl  Dec01   0:00 automount
    root      2075  0.0  0.0   7196  1064 ?        Ss   Dec01   0:22 /usr/sbin/sshd
    root      2106  0.0  0.0  10236  2324 ?        Ss   Dec01   0:00 cupsd
    ntp       2125  0.0  0.1   4508  4504 ?        SLs  Dec01   0:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
    clamav    2138  0.0  2.7 121376 87208 ?        Ssl  Dec01   1:08 clamd
    root      2176  0.0  0.0   4628  1276 ?        S    Dec01   0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --
    mysql     2226  0.0  0.9 146864 29964 ?        Sl   Dec01   5:30 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/my
    nobody    2256  0.0  0.0   7652  2924 ?        Ss   Dec01   2:38 mydns -b -v
    amavis    2297  0.0  2.0  79252 65396 ?        Ss   Dec01   0:03 amavisd (master)
    root      2307  0.0  0.0   1748   424 ?        S    Dec01   0:00 /usr/sbin/courierlogger -pid=/var/run/imapd.pid -start -
    root      2308  0.0  0.0   1860   540 ?        S    Dec01   0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -ma
    root      2314  0.0  0.0   1748   424 ?        S    Dec01   0:00 /usr/sbin/courierlogger -pid=/var/run/imapd-ssl.pid -sta
    root      2315  0.0  0.0   1860   540 ?        S    Dec01   0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -ma
    root      2320  0.0  0.0   1748   424 ?        S    Dec01   0:00 /usr/sbin/courierlogger -pid=/var/run/pop3d.pid -start -
    root      2321  0.0  0.0   1860   540 ?        S    Dec01   0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -ma
    root      2326  0.0  0.0   1748   424 ?        S    Dec01   0:00 /usr/sbin/courierlogger -pid=/var/run/pop3d-ssl.pid -sta
    root      2327  0.0  0.0   1860   544 ?        S    Dec01   0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -ma
    root      2383  0.0  0.0   8540  1984 ?        Ss   Dec01   0:30 /usr/libexec/postfix/master
    root      2396  0.0  0.0   2000   472 ?        Ss   Dec01   0:00 gpm -m /dev/input/mice -t exps2
    postfix   2400  0.0  0.0   8748  2104 ?        S    Dec01   0:06 qmgr -l -t fifo -u
    root      2431  0.0  0.0  10116   784 ?        Ss   Dec01   0:00 pure-ftpd (SERVER)
    root      2444  0.0  0.0   5384  1120 ?        Ss   Dec01   0:01 crond
    xfs       2471  0.0  0.0   3640  1276 ?        Ss   Dec01   0:00 xfs -droppriv -daemon
    root      2490  0.0  0.0  10276  2908 ?        S    Dec01   0:00 /usr/bin/python /usr/bin/fail2ban-server -b -s /var/run/
    root      2515  0.0  0.0   2360   436 ?        Ss   Dec01   0:00 /usr/sbin/atd
    root      2536  0.0  0.0   5684   708 ?        Ss   Dec01   0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam
    root      2537  0.0  0.0   5684   440 ?        S    Dec01   0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam
    root      2538  0.0  0.0   5684   428 ?        S    Dec01   0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam
    root      2539  0.0  0.0   5684   428 ?        S    Dec01   0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam
    root      2540  0.0  0.0   5684   428 ?        S    Dec01   0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam
    avahi     2566  0.0  0.0   2696  1316 ?        Ss   Dec01   0:00 avahi-daemon: running [ns0.local]
    avahi     2567  0.0  0.0   2696   432 ?        Ss   Dec01   0:00 avahi-daemon: chroot helper
    68        2580  0.0  0.1   5716  3804 ?        Ss   Dec01   0:00 hald
    root      2581  0.0  0.0   3264  1096 ?        S    Dec01   0:00 hald-runner
    68        2588  0.0  0.0   2108   832 ?        S    Dec01   0:00 hald-addon-acpi: listening on acpid socket /var/run/acpi
    68        2595  0.0  0.0   2108   820 ?        S    Dec01   0:00 hald-addon-keyboard: listening on /dev/input/event1
    root      2660  0.0  0.0   3612   496 ?        S    Dec01   0:00 /usr/sbin/smartd -q never
    root      2663  0.0  0.0   1748   464 tty1     Ss+  Dec01   0:00 /sbin/mingetty tty1
    root      2664  0.0  0.0   1748   468 tty2     Ss+  Dec01   0:00 /sbin/mingetty tty2
    root      2665  0.0  0.0   1748   464 tty3     Ss+  Dec01   0:00 /sbin/mingetty tty3
    root      2666  0.0  0.0   1748   460 tty4     Ss+  Dec01   0:00 /sbin/mingetty tty4
    root      2667  0.0  0.0   1748   468 tty5     Ss+  Dec01   0:00 /sbin/mingetty tty5
    root      2684  0.0  0.0   1748   468 tty6     Ss+  Dec01   0:00 /sbin/mingetty tty6
    root      2724  0.0  0.3  26212 10576 ?        SN   Dec01   0:01 /usr/bin/python -tt /usr/sbin/yum-updatesd
    root      2726  0.0  0.0   2656  1208 ?        SN   Dec01   0:00 /usr/libexec/gam_server
    vmail     2760  0.0  0.0   2656  1100 ?        S    Dec01   0:00 /usr/libexec/gam_server
    postfix   2771  0.0  0.0   8608  2048 ?        S    Dec01   0:01 tlsmgr -l -t unix -u
    icecast   2887  0.0  0.0  12660  2332 ?        Sl   Dec01   2:23 /usr/bin/icecast -b -c /etc/icecast.xml
    root      2959  0.0  0.0  54340   768 ?        Ssl  Dec01   0:00 memcached -d -m 1024 -u root -l 127.0.0.1 -p11211
    apache    3455  0.0  0.6  76092 21032 ?        S    Dec08   0:03 /usr/sbin/httpd
    apache    3456  0.0  0.6  76508 21396 ?        S    Dec08   0:03 /usr/sbin/httpd
    apache    3457  0.0  0.7  76876 21820 ?        S    Dec08   0:03 /usr/sbin/httpd
    postfix   3464  0.0  0.0   8612  1940 ?        S    16:58   0:00 pickup -l -t fifo -u
    apache    3510  0.0  0.6  76224 21500 ?        S    Dec08   0:02 /usr/sbin/httpd
    apache    4155  0.0  0.6  76584 21612 ?        S    Dec08   0:03 /usr/sbin/httpd
    apache    4157  0.0  0.7  76276 22456 ?        S    Dec08   0:03 /usr/sbin/httpd
    apache    4158  0.0  0.6  76380 20644 ?        S    Dec08   0:04 /usr/sbin/httpd
    apache    4159  0.0  0.7  76844 23220 ?        S    Dec08   0:04 /usr/sbin/httpd
    apache    4161  0.0  0.7  76604 22924 ?        S    Dec08   0:04 /usr/sbin/httpd
    root      4639  0.0  0.1  11436  5836 ?        S    Dec05   0:30 vlogger (access log)
    apache    4640  0.0  0.2  20712  6764 ?        S    Dec05   0:00 /usr/sbin/httpd
    apache    4642  0.0  0.7  76468 23960 ?        S    Dec05   0:07 /usr/sbin/httpd
    apache    4643  0.0  0.6  76276 21300 ?        S    Dec05   0:07 /usr/sbin/httpd
    apache    4647  0.0  0.7  76520 23776 ?        S    Dec05   0:07 /usr/sbin/httpd
    amavis    6351  0.0  2.1  80384 66532 ?        S    17:35   0:00 amavisd (ch1-avail)
    root      6548  0.0  0.0   5968  1504 ?        S    17:39   0:00 crond
    root      6549  0.0  0.0   2500   868 ?        Ss   17:39   0:00 /bin/sh -c /usr/local/ispconfig/server/server.sh &> /dev
    root      6550  0.0  0.0   4576  1140 ?        S    17:39   0:00 /bin/sh /usr/local/ispconfig/server/server.sh
    root      6578  0.0  0.3  34832 10548 ?        S    17:39   0:00 /usr/bin/php -q /usr/local/ispconfig/server/server.php
    postfix   7521  0.0  0.0   8608  1936 ?        S    17:52   0:00 anvil -l -t unix -u
    root      7736  0.1  0.0  10052  2924 ?        Ss   17:55   0:00 sshd: root@pts/0
    root      7743  0.0  0.0   4764  1504 pts/0    Ss   17:55   0:00 -bash
    root      7835  0.0  0.0   4352   940 pts/0    R+   17:56   0:00 ps aux
    root     16993  0.0  0.0   5724  2388 ?        S    Dec09   0:00 /usr/lib/courier-imap/bin/couriertls -server -tcpd /usr/
    vmail    16994  0.0  0.0   2264   964 ?        S    Dec09   0:02 /usr/lib/courier-imap/bin/imapd /var/vmail/aimeelaurenar
    apache   20829  0.0  0.7  76492 22020 ?        S    Dec07   0:04 /usr/sbin/httpd
    apache   20939  0.0  0.7  76752 22772 ?        S    Dec07   0:05 /usr/sbin/httpd
    apache   25398  0.0  0.7  76516 22104 ?        S    Dec05   0:07 /usr/sbin/httpd
    root     29649  0.0  0.5  73236 15832 ?        Ss   Dec02   0:00 /usr/sbin/httpd
    
     
  16. falko

    falko Super Moderator Howtoforge Staff

    These are the already running processes:
    Code:
    root      6549  0.0  0.0   2500   868 ?        Ss   17:39   0:00 /bin/sh -c /usr/local/ispconfig/server/server.sh &> /dev
    root      6550  0.0  0.0   4576  1140 ?        S    17:39   0:00 /bin/sh /usr/local/ispconfig/server/server.sh
    root      6578  0.0  0.3  34832 10548 ?        S    17:39   0:00 /usr/bin/php -q /usr/local/ispconfig/server/server.php
    Please kill them as follows:

    Code:
    kill -9 6549
    kill -9 6550
    kill -9 6578
    Then run /usr/local/ispconfig/server/server.sh again.
     
  17. korbynn

    korbynn Member

    processes killed but I have a cron job that starts it every minute.
    Killing the processes and starting the /usr/local/ispconfig/server/server.php does not resolve the job queue problem.
    Anything else I can can do?
    Would running update work?
     
  18. korbynn

    korbynn Member

    Updated to 3.0.3.1
    Job queue is still full.
     
  19. korbynn

    korbynn Member

    I need to to fix the job queue problems asap.
    I have several websites that I need to implement and changes to others.
    What code do I look at to manually do the job queue?
    Or point me to the code that does this so that I can resolve the error?
    The email stuff is working but the stuff for the DNS and creation of the website structure is failing.
     
  20. till

    till Super Moderator Staff Member ISPConfig Developer

    you have to run the server.sh script, not the php script. Running the php script directly will not work diue to missing or wrong server enviroment variables.

    so the steps are:

    1) enable debugging in ispconfig.
    2) login as root on the shell and run:

    /usr/local/ispconfig/server/server.sh

    and post the output that you get on the shell.

    If you get an error like this:

    09.12.2010-10:15 - DEBUG - There is already an instance of server.php running. Exiting.

    then run then run:

    rm -f /usr/local/ispconfig/server/temp/.ispconfig_lock

    and then run the server.sh script again.
     

Share This Page