ISPConfig 2 Apache 2 problem with Drupal and Wordpress

Discussion in 'Installation/Configuration' started by Sudhir, Jun 15, 2011.

  1. Sudhir

    Sudhir New Member

    Hi All,

    I am new to this site and also new to Linux and ISPConfig 2 and so I would very much appreciate your help.

    I have installed The Perfect Server ISPConfig 2 on Ubuntu 11 Howto.

    The server has a single static IP and virtual hosts.

    All dB, users and virtual host websites configuration are done thru ISPConfig. So far non dB sites work no problem when they are created and hosted on a virtual host on the single shared IP.

    But if a drupal or wordpress dB site is created in ISPConfig 2 then the pages of that site show as 404 not found and the Apache 2 error log says that file( webpage) doesn't exist. The permissions for a Wordpress site are set at 777.

    chmod 777 /var/www/web7/web and ls al shows the following:


    drwxrwxrwx 7 web7_wbh8 web7 4096 2011-06-15 14:52 .
    drwxr-xr-x 8 web7_wbh8 web7 4096 2011-06-10 16:31 ..
    -rwxrwxrwx 1 web7_wbh8 web7 397 2008-05-25 21:33 index.php
    -rw-r--r-- 1 root root 2764167 2011-06-10 16:32 latest.tar.gz
    -rwxrwxrwx 1 web7_wbh8 web7 15606 2011-02-22 22:36 license.txt
    -rwxrwxrwx 1 web7_wbh8 web7 9202 2011-05-25 19:10 readme.html
    drwxrwxrwx 2 web7_wbh8 web7 4096 2011-06-11 04:00 webalizer
    drwxrwxrwx 2 web7_wbh8 web7 4096 2011-06-15 14:52 wordpress
    -rwxrwxrwx 1 web7_wbh8 web7 4337 2011-01-22 03:25 wp-activate.php
    drwxrwxrwx 9 web7_wbh8 web7 4096 2011-05-25 19:16 wp-admin
    -rwxrwxrwx 1 web7_wbh8 web7 40261 2011-05-24 16:56 wp-app.php
    -rwxrwxrwx 1 web7_wbh8 web7 226 2010-12-09 18:02 wp-atom.php
    -rwxrwxrwx 1 web7_wbh8 web7 274 2010-11-20 21:44 wp-blog-header.php
    -rwxrwxrwx 1 web7_wbh8 web7 3931 2010-12-09 18:02 wp-comments-post.php
    -rwxrwxrwx 1 web7_wbh8 web7 244 2010-12-09 18:02 wp-commentsrss2.php
    -rwxrwxrwx 1 web7_wbh8 web7 3177 2010-11-01 14:45 wp-config-sample.php
    drwxrwxrwx 4 web7_wbh8 web7 4096 2011-05-25 19:16 wp-content
    -rwxrwxrwx 1 web7_wbh8 web7 1255 2010-03-17 04:39 wp-cron.php
    -rwxrwxrwx 1 web7_wbh8 web7 246 2010-12-09 18:02 wp-feed.php
    drwxrwxrwx 8 web7_wbh8 web7 4096 2011-05-25 19:16 wp-includes
    -rwxrwxrwx 1 web7_wbh8 web7 1997 2010-10-23 13:17 wp-links-opml.php
    -rwxrwxrwx 1 web7_wbh8 web7 2453 2010-10-30 08:02 wp-load.php
    -rwxrwxrwx 1 web7_wbh8 web7 27816 2011-05-24 16:29 wp-login.php
    -rwxrwxrwx 1 web7_wbh8 web7 7774 2010-05-26 03:42 wp-mail.php
    -rwxrwxrwx 1 web7_wbh8 web7 494 2010-12-09 18:02 wp-pass.php
    -rwxrwxrwx 1 web7_wbh8 web7 224 2010-12-09 18:02 wp-rdf.php
    -rwxrwxrwx 1 web7_wbh8 web7 334 2010-12-09 18:02 wp-register.php
    -rwxrwxrwx 1 web7_wbh8 web7 226 2010-12-09 18:02 wp-rss2.php
    -rwxrwxrwx 1 web7_wbh8 web7 224 2010-12-09 18:02 wp-rss.php
    -rwxrwxrwx 1 web7_wbh8 web7 9655 2010-11-24 00:19 wp-settings.php
    -rwxrwxrwx 1 web7_wbh8 web7 18644 2010-12-06 19:26 wp-signup.php
    -rwxrwxrwx 1 web7_wbh8 web7 3702 2010-02-24 20:13 wp-trackback.php
    -rwxrwxrwx 1 web7_wbh8 web7 3210 2010-11-06 09:41 xmlrpc.php
    root@mondial-pbb:/var/www/web7/web#




    tail /var/log/apache2/error.log shows the following:-

    [Wed Jun 15 15:23:30 2011] [error] [client 80.4.171.248] File does not exist: /var/www/sharedip/wp-admin
    [Wed Jun 15 15:47:19 2011] [error] [client 80.4.171.248] File does not exist: /var/www/sharedip/wp-admin
    [Wed Jun 15 15:47:28 2011] [error] [client 80.4.171.248] File does not exist: /var/www/sharedip/wp-admin
    [Wed Jun 15 15:47:48 2011] [error] [client 80.4.171.248] File does not exist: /var/www/sharedip/wp-admin
    [Wed Jun 15 16:22:55 2011] [error] [client 80.4.171.248] File does not exist: /var/www/sharedip/wp-admin
    [Wed Jun 15 16:23:02 2011] [error] [client 80.4.171.248] File does not exist: /var/www/sharedip/wp-admin

    I hope that you can help.

    Sudhir
     
    Last edited: Jun 15, 2011
  2. falko

    falko Super Moderator Howtoforge Staff

    Can you post the Vhosts_ispconfig.conf file and the output of
    Code:
    ifconfig
    ?
     
  3. Sudhir

    Sudhir New Member

    Falko thank you for the response,

    There were quite a few files called Vhosts_ispconfig.conf

    root@mondial-pbb:/home/administrator# locate Vhosts_ispconfig.conf
    /etc/apache2/vhosts/Vhosts_ispconfig.conf
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_02-06-11_17-03-22
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_02-06-11_20-26-29
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_02-06-11_20-27-24
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_02-06-11_20-28-16
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_02-06-11_20-31-18
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_02-06-11_20-37-41
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_02-06-11_20-46-33
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_02-06-11_20-47-15
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_02-06-11_20-48-27
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_02-06-11_20-56-29
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_02-06-11_21-00-21
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_02-06-11_21-08-33
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_03-06-11_13-56-22
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_03-06-11_14-01-25
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_03-06-11_19-53-41
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_03-06-11_19-57-43
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_03-06-11_22-06-18
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_03-06-11_22-08-20
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_03-06-11_22-09-02
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_03-06-11_22-09-54
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_03-06-11_22-14-56
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_04-06-11_21-37-44
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_04-06-11_21-38-07
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_04-06-11_21-39-09
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_08-06-11_06-24-54
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_08-06-11_17-12-53
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_10-06-11_16-16-08
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_10-06-11_16-21-11
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_29-05-11_11-23-32
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_29-05-11_13-05-07
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_29-05-11_13-11-29
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_29-05-11_13-13-33
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_29-05-11_14-54-58
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_31-05-11_15-40-45
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_31-05-11_22-29-28
    /etc/apache2/vhosts/Vhosts_ispconfig.conf_31-05-11_22-30-30


    I have pasted the newest one below:-


    root@mondial-pbb:/home/administrator# tail /etc/apache2/vhosts/Vhosts_ispconfig.conf_10-06-11_16-21-11
    AuthType Basic
    AuthName "webdav"
    AuthUserFile /var/www/web7/passwd.dav
    Require valid-user
    </Location>
    </IfModule>
    </VirtualHost>
    #
    #
    Accessing a website using port 80 as in http://www.websitename.com:80 allows access to the website default page.

    ifconfig produces the following:-

    root@mondial-pbb:/home/administrator# ifconfig
    eth0 Link encap:Ethernet HWaddr 00:13:8f:6c:d7:95
    inet addr:195.12.115.3 Bcast:195.12.115.31 Mask:255.255.255.224
    inet6 addr: fe80::213:8fff:fe6c:d795/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:378287 errors:0 dropped:0 overruns:0 frame:0
    TX packets:209178 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:28978678 (28.9 MB) TX bytes:42162730 (42.1 MB)
    Interrupt:20 Base address:0xc800

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:22822 errors:0 dropped:0 overruns:0 frame:0
    TX packets:22822 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:1186109 (1.1 MB) TX bytes:1186109 (1.1 MB)
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

Share This Page