Sites that are added using ISPConfig Tool direct to Apache page

Discussion in 'Installation/Configuration' started by gimhan90, Feb 8, 2006.

  1. gimhan90

    gimhan90 New Member

    Hi folks,


    I add a site called www.gallelink.com from ispconfig.Here is my configurations

    Group: admin
    Title: gallelink
    Folder: admin


    Basis User & Email Co-Domains Statistics Options Invoice


    Server: Server 1
    Hostname:www
    Domain: gallelink.com
    IP Address: xxx.xxx.xxx.xxx
    Create DNS: unchecked
    Create DNS-MX: unchecked

    --------------------------------------------------------------------------------

    Space MB: 100
    Traffic MB: -1
    Traffic Exceedance: No Action
    Max. User:-1
    Max. Domain: -1

    --------------------------------------------------------------------------------

    Shell Access: checked
    CGI Scripts: checked
    Standard CGIs: checked
    PHP Scripts: checked
    PHP Safe Mode: checked
    SSI: checked
    FTP Access: checked
    MySQL:checked
    Number of Databases: 1
    SSL: unchecked
    Anonymous FTP: unchecked
    Anon. FTP MB: -1
    WAP: unchecked
    Individual Error Pages: checked
    Mailuser Login: unchecked

    But when i check www.gallelink.com it gose to apache index page.Not to the gallelink welcome page.(There is a ispconfig welcome page in web root).


    Thx in advance,
    gimhan
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Is the IP you selected in the website settings for www.gallelink.com identical with the IP 66.240.254.144 ?

    Is the file /etc/apache/vhosts/Vhost_ispconfig.conf included at the end of your apache httpd.conf file? This may vary a bit because your httpd.conf might be named also apache.conf or apache2.conf and be in the directory /etc/httpd, /etc/apache or /etc/apache2
     
  3. gimhan90

    gimhan90 New Member

    Virtual hostinVhosts_ispconfig.conf file is empty.There are serveral files.The file with name bellow contains the configurations

    Vhosts_ispconfig.conf_07-02-06_22-35-20

    what is the correct vhosts_ispconfig file????


    ###################################
    #
    # ISPConfig vHost Configuration File
    # Version 1.0
    #
    ###################################
    #
    NameVirtualHost 66.240.254.144:80
    <VirtualHost 66.240.254.144:80>
    ServerName localhost
    ServerAdmin root@localhost
    DocumentRoot /var/www/sharedip
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.gallelink.com:80
    ######################################
    #
    #
    <VirtualHost 66.240.254.144:80>
    ServerName www.gallelink.com:80
    ServerAdmin [email protected]
    DocumentRoot /home/www/web4/web
    ServerAlias gallelink
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ScriptAlias /cgi-bin/ /home/www/web4/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /home/www/web4/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php3>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php4>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    <Files *.php5>
    SetOutputFilter PHP
    SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode On
    php_admin_value open_basedir /home/www/web4/
    php_admin_value file_uploads 1
    php_admin_value upload_tmp_dir /home/www/web4/phptmp/
    php_admin_value session.save_path /home/www/web4/phptmp/
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    Alias /error/ "/home/www/web4/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /home/www/web4/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /home/www/web4/user/$1/web/$3
    </VirtualHost>
    #
    #
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, then you have an error in your apache configuration.

    Please rename the latest Vhosts_ispconfig.conf_[DATE] config file to Vhosts_ispconfig.conf and run the command:

    httpd -t

    and post the output here.
     
  5. gimhan90

    gimhan90 New Member

    Virtual hosting

    Hi..
    Thx things are working now.But i have few problems.

    1)
    First i access the site it didn't work.Then i gave excute permission then it works but images.I gave excute permission to the images folder but it dosen't work.I can give you the statistics

    su93254144:/home/www/web4/web # ls -la
    total 152
    drwxrwxr-x 6 web4_gallelink web4 4096 Feb 7 22:29 .
    drwxr-xr-x 8 web4_gallelink web4 4096 Feb 8 22:15 ..
    drwxrwxr-x 2 web4_gallelink web4 4096 Feb 7 22:26 CSS
    drwxrwxr-x 2 web4_gallelink web4 4096 Feb 6 21:32 error
    -rwxrwxr-x 1 web4_gallelink web4 17763 Feb 7 22:28 gallelife.htm
    -rwxrwxr-x 1 web4_gallelink web4 14518 Feb 7 22:29 history.htm
    drwxrwxr-x 7 web4_gallelink web4 4096 Feb 7 22:27 images
    -rwxrwxr-x 1 web4_gallelink web4 13926 Feb 7 22:29 index.htm
    -rwxrwxr-x 1 web4_gallelink web4 13918 Feb 7 22:29 index2.htm
    -rwxrwxr-x 1 web4_gallelink web4 14702 Feb 7 22:29 leisure.htm
    -rwxrwxr-x 1 web4_gallelink web4 13434 Feb 7 22:29 oldharbour.htm
    -rwxrwxr-x 1 web4_gallelink web4 16043 Feb 7 22:29 services.htm
    drwxrwxr-x 2 web4_gallelink web4 4096 Feb 7 04:00 stats
    -rwxrwxr-x 1 web4_gallelink web4 10765 Feb 7 22:29 transport.htm

    I used chmod 775 -R images
    it gives all the images not permitted.


    2)
    It seems the /etc/apache/vhosts/Vhost_ispconfig.conf is renewing when we added a site and generating a file with a date.Becouse i have to delete all the file and rename exsiting virtual hosting file to Vhost_ispconfig.conf.(as u told before).is it?

    For this problem i supose to do this thing in my httpd
    Include /etc/apache2/vhosts.d/Vhost_ispconfig.*

    Is it ok?
     
  6. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ls -la /home/www/web4/web/images
    ?


    Please rename this Vhosts_ispconfig.conf_[DATE] to Vhosts_ispconfig.conf and run
    Code:
    httpd -t
    What's the output?
     
  7. gimhan90

    gimhan90 New Member

    Image permissions

    1)

    su93254144:~ # ls -la /home/www/web4/web/images
    total 92
    drwxrwxr-x 7 775 web4 4096 Feb 7 22:27 .
    drwxrwxr-x 6 web4_gallelink web4 4096 Feb 7 22:29 ..
    -rwxrwxr-x 1 775 web4 18106 Feb 7 22:26 banner1.jpg
    -rwxrwxr-x 1 775 web4 22020 Feb 7 22:26 banner2.jpg
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:26 banners
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:27 bg
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:27 logos
    -rwxrwxr-x 1 775 web4 18855 Feb 7 22:27 logos.gif
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:27 packages
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:28 smalle
    su93254144:~ # ls -la /home/www/web4/web/images
    total 92
    drwxrwxr-x 7 775 web4 4096 Feb 7 22:27 .
    drwxrwxr-x 6 web4_gallelink web4 4096 Feb 7 22:29 ..
    -rwxrwxr-x 1 775 web4 18106 Feb 7 22:26 banner1.jpg
    -rwxrwxr-x 1 775 web4 22020 Feb 7 22:26 banner2.jpg
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:26 banners
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:27 bg
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:27 logos
    -rwxrwxr-x 1 775 web4 18855 Feb 7 22:27 logos.gif
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:27 packages
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:28 smalle
    su93254144:~ # ls -la /home/www/web4/web/images
    total 92
    drwxrwxr-x 7 775 web4 4096 Feb 7 22:27 .
    drwxrwxr-x 6 web4_gallelink web4 4096 Feb 7 22:29 ..
    -rwxrwxr-x 1 775 web4 18106 Feb 7 22:26 banner1.jpg
    -rwxrwxr-x 1 775 web4 22020 Feb 7 22:26 banner2.jpg
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:26 banners
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:27 bg
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:27 logos
    -rwxrwxr-x 1 775 web4 18855 Feb 7 22:27 logos.gif
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:27 packages
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:28 smalle
    su93254144:~ # total 92
    su93254144:~ # ls -la /home/www/web4/web/images
    total 92
    drwxrwxr-x 7 775 web4 4096 Feb 7 22:27 .
    drwxrwxr-x 6 web4_gallelink web4 4096 Feb 7 22:29 ..
    -rwxrwxr-x 1 775 web4 18106 Feb 7 22:26 banner1.jpg
    -rwxrwxr-x 1 775 web4 22020 Feb 7 22:26 banner2.jpg
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:26 banners
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:27 bg
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:27 logos
    -rwxrwxr-x 1 775 web4 18855 Feb 7 22:27 logos.gif
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:27 packages
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:28 smalle
    su93254144:~ # ls -la /home/www/web4/web/images/banner
    /bin/ls: /home/www/web4/web/images/banner: No such file or directory
    su93254144:~ # ls -la /home/www/web4/web/images/banners
    total 128
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:26 .
    drwxrwxr-x 7 775 web4 4096 Feb 7 22:27 ..
    -rwxrwxr-x 1 775 web4 5632 Feb 7 22:26 Thumbs.db
    -rwxrwxr-x 1 775 web4 48062 Feb 7 22:26 banner1.gif
    -rwxrwxr-x 1 775 web4 42556 Feb 7 22:26 banner2.gif
    -rwxrwxr-x 1 775 web4 18106 Feb 7 22:26 banner3.jpg
    su93254144:~ # ls -la /home/www/web4/web/images/packages/
    total 92
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:27 .
    drwxrwxr-x 7 775 web4 4096 Feb 7 22:27 ..
    -rwxrwxr-x 1 775 web4 7168 Feb 7 22:27 Thumbs.db
    -rwxrwxr-x 1 775 web4 25264 Feb 7 22:27 bronze.gif
    -rwxrwxr-x 1 775 web4 24306 Feb 7 22:27 gold.gif
    -rwxrwxr-x 1 775 web4 24266 Feb 7 22:27 silver.gif
    su93254144:~ # ls -la /home/www/web4/web/images/smalle/
    total 668
    drwxrwxr-x 2 775 web4 4096 Feb 7 22:28 .
    drwxrwxr-x 7 775 web4 4096 Feb 7 22:27 ..
    -rwxrwxr-x 1 775 web4 7168 Feb 7 22:28 Thumbs.db
    -rwxrwxr-x 1 775 web4 22944 Feb 7 22:27 city_view.gif
    -rwxrwxr-x 1 775 web4 33718 Feb 7 22:27 clock_tower.gif
    -rwxrwxr-x 1 775 web4 33881 Feb 7 22:27 clock_tower1.gif
    -rwxrwxr-x 1 775 web4 19070 Feb 7 22:27 duotch_church.gif
    -rwxrwxr-x 1 775 web4 18072 Feb 7 22:27 glife.gif
    -rwxrwxr-x 1 775 web4 11519 Feb 7 22:27 glife_s.gif
    -rwxrwxr-x 1 775 web4 30178 Feb 7 22:27 gurad_tower.gif
    -rwxrwxr-x 1 775 web4 20135 Feb 7 22:27 hardware.gif
    -rwxrwxr-x 1 775 web4 21734 Feb 7 22:27 horses.gif
    -rwxrwxr-x 1 775 web4 24362 Feb 7 22:27 lamp.gif
    -rwxrwxr-x 1 775 web4 33831 Feb 7 22:28 landmark.gif
    -rwxrwxr-x 1 775 web4 18119 Feb 7 22:28 leisure.gif
    -rwxrwxr-x 1 775 web4 11239 Feb 7 22:28 leisure_s.gif
    -rwxrwxr-x 1 775 web4 24128 Feb 7 22:28 library.gif
    -rwxrwxr-x 1 775 web4 21743 Feb 7 22:28 lighthouse.gif
    -rwxrwxr-x 1 775 web4 19393 Feb 7 22:28 old_anchor_1.gif
    -rwxrwxr-x 1 775 web4 16427 Feb 7 22:28 old_anchor_2.gif
    -rwxrwxr-x 1 775 web4 13190 Feb 7 22:28 old_jatty.gif
    -rwxrwxr-x 1 775 web4 13190 Feb 7 22:28 oldjatty.gif
    -rwxrwxr-x 1 775 web4 7011 Feb 7 22:28 pro_intro.gif
    -rwxrwxr-x 1 775 web4 25307 Feb 7 22:28 ram_part_hotel.gif
    -rwxrwxr-x 1 775 web4 7283 Feb 7 22:28 redrick.jpg
    -rwxrwxr-x 1 775 web4 20119 Feb 7 22:28 rumassala.gif
    -rwxrwxr-x 1 775 web4 13158 Feb 7 22:28 s1.gif
    -rwxrwxr-x 1 775 web4 13868 Feb 7 22:28 sh1.gif
    -rwxrwxr-x 1 775 web4 25991 Feb 7 22:28 sh1.png
    -rwxrwxr-x 1 775 web4 13243 Feb 7 22:28 ship_wreck.gif
    -rwxrwxr-x 1 775 web4 18063 Feb 7 22:28 sports.gif
    -rwxrwxr-x 1 775 web4 11601 Feb 7 22:28 sports_s.gif
    -rwxrwxr-x 1 775 web4 27962 Feb 7 22:28 train.gif
    -rwxrwxr-x 1 775 web4 16156 Feb 7 22:28 voc_logo.gif
     
  8. gimhan90

    gimhan90 New Member

    Httpd -t

    2)This is working now

    su93254144:~ # httpd -t
    Creating new config (0x5bcd18) for (null)
    Creating new config (0x664378) for (null)
    Getting safe_mode=1 for 0x664378 (0)
    Getting open_basedir=/home/www/web6/ for 0x664378 (1)
    Getting file_uploads=1 for 0x664378 (2)
    Getting upload_tmp_dir=/home/www/web6/phptmp/ for 0x664378 (3)
    Getting session.save_path=/home/www/web6/phptmp/ for 0x664378 (4)
    Creating new config (0x6681b8) for (null)
    Getting safe_mode=1 for 0x6681b8 (0)
    Getting open_basedir=/home/www/web4/ for 0x6681b8 (1)
    Getting file_uploads=1 for 0x6681b8 (2)
    Getting upload_tmp_dir=/home/www/web4/phptmp/ for 0x6681b8 (3)
    Getting session.save_path=/home/www/web4/phptmp/ for 0x6681b8 (4)
    Creating new config (0x66cc38) for (null)
    Getting safe_mode=1 for 0x66cc38 (0)
    Getting open_basedir=/home/www/web6/ for 0x66cc38 (1)
    Getting file_uploads=1 for 0x66cc38 (2)
    Getting upload_tmp_dir=/home/www/web6/phptmp/ for 0x66cc38 (3)
    Getting session.save_path=/home/www/web6/phptmp/ for 0x66cc38 (4)
    Creating new config (0x670938) for (null)
    Getting safe_mode=1 for 0x670938 (0)
    Getting open_basedir=/home/www/web4/ for 0x670938 (1)
    Getting file_uploads=1 for 0x670938 (2)
    Getting upload_tmp_dir=/home/www/web4/phptmp/ for 0x670938 (3)
    Getting session.save_path=/home/www/web4/phptmp/ for 0x670938 (4)
    Merge dir (0x5bcd18) (0x670938)
    Merge dir (0x5bcd18) (0x66cc38)
    Merge dir (0x5bcd18) (0x6681b8)
    Merge dir (0x5bcd18) (0x664378)
    [Thu Feb 09 12:44:34 2006] [warn] NameVirtualHost 66.240.254.144:80 has no VirtualHosts
    [Thu Feb 09 12:44:34 2006] [warn] NameVirtualHost 66.240.254.144:0 has no VirtualHosts
    Syntax OK
    Destroying config 0x670938
    Destroying config 0x66cc38
    Destroying config 0x6681b8
    Destroying config 0x664378
    Destroying config 0x5bcd18
     
  9. falko

    falko Super Moderator Howtoforge Staff

    Although it says Syntax OK it looks strange... :confused:
     
  10. gimhan90

    gimhan90 New Member

    Httpd -t

    httpd is working now.I have a problem with this image thing.How to set permission for images.The can't display.You can check from this url
    http://www.gallelink.com
     
  11. falko

    falko Super Moderator Howtoforge Staff

    Ok, I've checked your site. It expects your images to be in a directory called Images (with a capital I!), not images.
     
  12. gimhan90

    gimhan90 New Member


    Ohhhh ... :mad:
    Now it is working , Thanks very much for u r continuous help.
     

Share This Page