Gentoo Perfect Setup problem Apache PHP

Discussion in 'HOWTO-Related Questions' started by dschmid, Nov 6, 2007.

  1. dschmid

    dschmid New Member

    Hello I had setup Perfect Setup for Gentoo only with some changes for dmraid setup. Before I installed ispconfig apache just worked fine with php. But after Installation PHP won't work anymore. I know that PHP is disabled normaly and I have to enable it for each domain but the problem is that when I create my Site and enable php in the IspConfig Administration Console the directory www.mydomain.de and all necessary files under /var/www are created. But when I try to open www.mydomain.de in the browser the standard Apache2 site is shown. And that files are under /var/www/localhost in the htdocs folder. I renamed the the htdocs folder and created a symlink for htdocs that points to my web folder in /var/www/www.mydomain.de. But then I get no php support because it's disabled globally for apache. I don't won't to enable it that way because I want to have controll to disable it for other domains later. I never had such a problem with Suse, Debian or Ubuntu I started there with always one domain too. Now I had reinstalled apache, mysql, php and ispcofig but the same problem again.

    "hostname" brings:
    Code:
    server1
    "hostname -f" :
    Code:
    server1.mydomain.de
    "domainname":
    Code:
    mydomain.de
    My /etc/apache2/httpd.conf:
    Code:
    ServerRoot "/usr/lib/apache2"
    LoadModule actions_module modules/mod_actions.so
    LoadModule alias_module modules/mod_alias.so
    LoadModule auth_basic_module modules/mod_auth_basic.so
    LoadModule auth_digest_module modules/mod_auth_digest.so
    LoadModule authn_anon_module modules/mod_authn_anon.so
    LoadModule authn_dbd_module modules/mod_authn_dbd.so
    LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule authn_default_module modules/mod_authn_default.so
    LoadModule authn_file_module modules/mod_authn_file.so
    LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule authz_default_module modules/mod_authz_default.so
    LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
    LoadModule authz_host_module modules/mod_authz_host.so
    LoadModule authz_owner_module modules/mod_authz_owner.so
    LoadModule authz_user_module modules/mod_authz_user.so
    LoadModule autoindex_module modules/mod_autoindex.so
    <IfDefine CACHE>
    LoadModule cache_module modules/mod_cache.so
    </IfDefine>
    #LoadModule cgid_module modules/mod_cgid.so
    <IfDefine DAV>
    LoadModule dav_module modules/mod_dav.so
    </IfDefine>
    <IfDefine DAV>
    LoadModule dav_fs_module modules/mod_dav_fs.so
    </IfDefine>
    <IfDefine DAV>
    LoadModule dav_lock_module modules/mod_dav_lock.so
    </IfDefine>
    LoadModule dbd_module modules/mod_dbd.so
    LoadModule deflate_module modules/mod_deflate.so
    LoadModule dir_module modules/mod_dir.so
    <IfDefine CACHE>
    LoadModule disk_cache_module modules/mod_disk_cache.so
    </IfDefine>
    LoadModule env_module modules/mod_env.so
    LoadModule expires_module modules/mod_expires.so
    LoadModule ext_filter_module modules/mod_ext_filter.so
    <IfDefine CACHE>
    LoadModule file_cache_module modules/mod_file_cache.so
    </IfDefine>
    LoadModule filter_module modules/mod_filter.so
    LoadModule headers_module modules/mod_headers.so
    LoadModule ident_module modules/mod_ident.so
    LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule include_module modules/mod_include.so
    <IfDefine INFO>
    LoadModule info_module modules/mod_info.so
    </IfDefine>
    LoadModule log_config_module modules/mod_log_config.so
    LoadModule logio_module modules/mod_logio.so
    <IfDefine CACHE>
    LoadModule mem_cache_module modules/mod_mem_cache.so
    </IfDefine>
    LoadModule mime_module modules/mod_mime.so
    LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule negotiation_module modules/mod_negotiation.so
    <IfDefine PROXY>
    LoadModule proxy_module modules/mod_proxy.so
    </IfDefine>
    <IfDefine PROXY>
    LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    </IfDefine>
    <IfDefine PROXY>
    LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
    </IfDefine>
    <IfDefine PROXY>
    LoadModule proxy_connect_module modules/mod_proxy_connect.so
    </IfDefine>
    <IfDefine PROXY>
    LoadModule proxy_http_module modules/mod_proxy_http.so
    </IfDefine>
    LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule setenvif_module modules/mod_setenvif.so
    LoadModule speling_module modules/mod_speling.so
    <IfDefine SSL>
    LoadModule ssl_module modules/mod_ssl.so
    </IfDefine>
    <IfDefine INFO>
    LoadModule status_module modules/mod_status.so
    </IfDefine>
    <IfDefine SUEXEC>
    LoadModule suexec_module modules/mod_suexec.so
    </IfDefine>
    LoadModule unique_id_module modules/mod_unique_id.so
    <IfDefine USERDIR>
    LoadModule userdir_module modules/mod_userdir.so
    </IfDefine>
    LoadModule usertrack_module modules/mod_usertrack.so
    LoadModule vhost_alias_module modules/mod_vhost_alias.so
    User apache
    Group apache
    Include /etc/apache2/modules.d/*.conf
    Include /etc/apache2/vhosts.d/*.conf
    
    # vim: ts=4 filetype=apache
    
    <Directory /var/www/sharedip>
        Options +Includes -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    ###############ispconfig_log###############
    LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
    CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig
    
    <Directory /var/www/*/web>
        Options +Includes -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    <Directory /var/www/*/user/*/web>
        Options +Includes -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    <Directory /var/www/*/cgi-bin>
        Options ExecCGI -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Deny from all
        </Files>
    </Directory>
    
    Include /etc/apache2/vhosts/Vhosts_ispconfig.conf
    The /etc/apache2/vhosts/Vhosts_ispconfig.conf is empty.

    Where are the entrys set for www.mydomain.de ???

    I'm glad about any idea. I think it could be only a little problem.

    Thanks for any help.
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's the output of
    Code:
    ls -l /etc/apache2/vhosts/
    ?
     
  3. dschmid

    dschmid New Member

    Sorry for the late answer.

    I had ubuntu now. Not so strange I problems like by the gentoo setup.
     

Share This Page