Problems with Wordpress based web page after installing Ispconfig

Discussion in 'Installation/Configuration' started by Mole, Apr 10, 2008.

  1. till

    till Super Moderator Staff Member ISPConfig Developer

    Never edit the file Vhosts_ispconfig.conf manually! ISPConfig will remove all your changes. Instead, just uncheck the Suexec checkbox in ISPConfig under management > server > settings.
     
  2. Mole

    Mole New Member

    OK, thank You about Suexec!:)

    But what about this error:

    Code:
    Fatal error: Call to undefined function wp() in /wwwroot/web3/web/wp-blog-header.php on line 18
     
  3. Mole

    Mole New Member

    Something strange... what can be the problem?

    When install new wordpress - the same error! :(

    Server installed as needed, ispconfig installation successful, php.ini good, other pages run normal...except Wordpress based! :confused:

    Maybe somebody have solution to resolve this problem?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    How exactly did you install Wordpress?
     
  5. Mole

    Mole New Member

    migration - copy ALL files&directories to /wwwroot/webX/web

    new - wget latest Wordpress archive, unzip it, copy ALL files&folders into /wwwroot/webX/web, then rename wp-config-sample.php to wp-config.php, create new db in mysql (create database wordpress), then grant access to user, Flush privilegies), edit wp-config.php file appropriate to my needs, run file. Usually the first error is that "ERROR: in wp-config.php can only contain numbers, letters, and underscores.", but, when this is corrected, then next error is about wp() function!
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Can you post the vhost configuration of that web site?
     
  7. Mole

    Mole New Member

    Code:
    <VirtualHost XX.XX.XX.XX:80>
    ServerName www.komunalserviss.lv:80
    ServerAdmin [email protected]
    DocumentRoot /wwwroot/web3/web
    ServerAlias komunalserviss.lv
    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
    Alias  /cgi-bin/ /wwwroot/web3/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /wwwroot/web3/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 Off
    Alias /error/ "/wwwroot/web3/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 ^/~([^/]+)(/(.*))? /wwwroot/web3/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /wwwroot/web3/user/$1/web/$3
    </VirtualHost>
    
     
  8. falko

    falko Super Moderator ISPConfig Developer

  9. Mole

    Mole New Member

    it's done, now Vhosts_ispconfig.conf:
    Code:
    <VirtualHost 62.85.27.11:80>
    ServerName www.komunalserviss.lv:80
    ServerAdmin [email protected]
    DocumentRoot /wwwroot/web3/web
    ServerAlias komunalserviss.lv
    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
    Alias  /cgi-bin/ /wwwroot/web3/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /wwwroot/web3/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    php_admin_flag safe_mode Off
    Alias /error/ "/wwwroot/web3/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 ^/~([^/]+)(/(.*))? /wwwroot/web3/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /wwwroot/web3/user/$1/web/$3
    </VirtualHost>
    
    But problem is not solved! :(
     
  10. falko

    falko Super Moderator ISPConfig Developer

    I'm at my wit's end. Does it work on other distributions than SUSE?
     
  11. Mole

    Mole New Member

    It worked also on this server running Suse SLES 10.1 64bit before I'm installed ispconfig!
     
  12. falko

    falko Super Moderator ISPConfig Developer

    I have no idea why it shouldn't work with ISPConfig installed...
     
  13. Mole

    Mole New Member

    Something strange - look at "Fatal error: Call to undefined function wp() in /wwwroot/web16/web/wp-blog-header.php on line 18' in site Error.log and think - Am I stupid or what? :confused:

    Cannot understand, why "wp() is undefined function", but I can find it in wp-includes/function.php:

    PHP:
    function wp($query_vars '') {
    global 
    $wp$wp_query$wp_the_query;

    $wp->main($query_vars);

    if( !isset(
    $wp_the_query) )
    $wp_the_query $wp_query;
    }
    Here is my /wp-blog-header.php:
    PHP:
    <?php

    if (! isset($wp_did_header)):
    if ( !
    file_existsdirname(__FILE__) . '/wp-config.php') ) {
    if (
    strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false$path '';
    else 
    $path 'wp-admin/';

    require_once( 
    dirname(__FILE__) . '/wp-includes/classes.php');
    require_once( 
    dirname(__FILE__) . '/wp-includes/functions.php');
    require_once( 
    dirname(__FILE__) . '/wp-includes/plugin.php');
    wp_die("There doesn't seem to be a wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.""WordPress › Error");
    }

    $wp_did_header true;

    require_once( 
    dirname(__FILE__) . '/wp-config.php');

    wp();
    gzip_compression();

    require_once(
    ABSPATH WPINC '/template-loader.php');

    endif;

    ?>
    What else I can say - if i comment out wp(); like this #wp();, then trying to open web page shows error that now is 'PHP Fatal error: Call to undefined function gzip_compression() in"...

    BUT - i have also this function in /pathtomywebhomedorectory/wp-includes/functions.php

    PHP:
    function gzip_compression() {
    if ( !
    get_option'gzipcompression' ) ) {
    return 
    false;
    }

    if ( ( 
    ini_get'zlib.output_compression' ) == 'On' || ini_get'zlib.output_compression_level' ) > ) || ini_get'output_handler' ) == 'ob_gzhandler' ) {
    return 
    false;
    }

    if ( 
    extension_loaded'zlib' ) ) {
    ob_start'ob_gzhandler' );
    }
    }
     
  14. Mole

    Mole New Member

    Here is /home/admispconfig/ispconfig/sysconfig.txt

    Code:
    Linux arditsrv1 2.6.16.46-0.12-smp #1 SMP Thu May 17 14:00:09 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux
    Server version: Apache/2.2.3
    Server built:   May  4 2007 12:20:53
    Server's Module Magic Number: 20051115:3
    Server loaded:  APR 1.2.2, APR-Util 1.2.2
    Compiled using: APR 1.2.2, APR-Util 1.2.2
    Architecture:   64-bit
    Server MPM:     Prefork
      threaded:     no
        forked:     yes (variable process count)
    Server compiled with....
     -D APACHE_MPM_DIR="server/mpm/prefork"
     -D APR_HAS_SENDFILE
     -D APR_HAS_MMAP
     -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
     -D APR_USE_SYSVSEM_SERIALIZE
     -D APR_USE_PTHREAD_SERIALIZE
     -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
     -D APR_HAS_OTHER_CHILD
     -D AP_HAVE_RELIABLE_PIPED_LOGS
     -D DYNAMIC_MODULE_LIMIT=128
     -D HTTPD_ROOT="/srv/www"
     -D SUEXEC_BIN="/usr/sbin/suexec2"
     -D DEFAULT_PIDLOG="/var/run/httpd2.pid"
     -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
     -D DEFAULT_LOCKFILE="/var/run/accept.lock"
     -D DEFAULT_ERRORLOG="/var/log/apache2/error_log"
     -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
     -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"
    
    Here is /home/admispconfig/ispconfig/lib/isconfig.inc.php
    Code:
    <?
    /*
    Copyright (c) 2005, projektfarm Gmbh, Till Brehm, Falko Timme
    All rights reserved.
    
    Redistribution and use in source and binary forms, with or without modification,
    are permitted provided that the following conditions are met:
    
        * Redistributions of source code must retain the above copyright notice,
          this list of conditions and the following disclaimer.
        * Redistributions in binary form must reproduce the above copyright notice,
          this list of conditions and the following disclaimer in the documentation
          and/or other materials provided with the distribution.
        * Neither the name of ISPConfig nor the names of its contributors
          may be used to endorse or promote products derived from this software without
          specific prior written permission.
    
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
    ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
    INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
    BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
    OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
    EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    */
    // Register Globals emulieren, falls notwendig
    if(get_cfg_var('register_globals') != 'On') {
    
        foreach($HTTP_GET_VARS as $getkey => $getval) {
            $$getkey = $getval;
        }
        unset($getkey);
        unset($getval);
    
        foreach($HTTP_POST_VARS as $postkey => $postval) {
            $$postkey = $postval;
        }
        unset($postkey);
        unset($postval);
    
        foreach($HTTP_COOKIE_VARS as $cookiekey => $cookieval) {
            $$cookiekey = $cookieval;
        }
        unset($cookiekey);
        unset($cookieval);
    }
    
    $go_info = array();
    
    $s = $HTTP_GET_VARS["s"];
    if(isset($HTTP_POST_VARS["s"])) $s = $HTTP_POST_VARS["s"];
    $s = addslashes($s);
    $session = "s=$s";
    $set_header = 1;
    @session_start();
    
    /**********************************************
    * System Settings
    **********************************************/
    
    $go_info["server"]["dir_trenner"] = "/";
    $go_info["server"]["server_root"] = "/home/admispconfig/ispconfig";
    
    define("DIR_TRENNER","/");
    define("SERVER_ROOT","/home/admispconfig/ispconfig");
    define("INCLUDE_ROOT",SERVER_ROOT.DIR_TRENNER."lib");
    define("CLASSES_ROOT",INCLUDE_ROOT.DIR_TRENNER."classes");
    define("DB_TYPE","mysql");
    
    if(isset($_SERVER['HTTP_HOST'])){
      $go_info["server"]["server_url"] = 'https://'.$_SERVER['HTTP_HOST'];
    } else {
      $go_info["server"]["server_url"] = "https://www.ardit.lv:81";
    }
    $go_info["server"]["include_root"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."lib";
    $go_info["server"]["classes_root"] = $go_info["server"]["include_root"] . $go_info["server"]["dir_trenner"] ."classes";
    $go_info["server"]["temp_dir"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."temp";
    $go_info["server"]["files_dir"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."files";
    $go_info["server"]["backup_dir"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."backup";
    $go_info["server"]["version"] = "2.2.21";
    $go_info["server"]["os"] = "linux";
    $go_info["server"]["ort"] = "local";
    $go_info["server"]["banner"] = "0";
    $go_info["server"]["db_host"] = "localhost";
    $go_info["server"]["db_name"] = "dp_ispconfig";
    $go_info["server"]["db_user"] = "root";
    $go_info["server"]["db_password"] = "240181kurmisMOLE";
    $go_info["server"]["db_type"] = "mysql";
    $go_info["server"]["mail_server"] = "";
    $go_info["server"]["mail_user"] = "";
    $go_info["server"]["mail_password"] = "";
    $go_info["server"]["smtp_server"] = "localhost";
    $go_info["server"]["mode"] = "";
    $go_info["server"]["lang"] = "en";
    
    $go_info["server"]["postfix_config"] = 1; // 1 = SENDMAIL-STYLE, 2 = POSTFIX-STYLE
    $go_info["server"]["smtp_restart"] = 1; // 1 = stop/start, 2 = restart
    $go_info["server"]["network_config"] = 0; // 0 = none, 1 = automatic
    $go_info["server"]["sudo_du_enabled"] = 1; // enable sudo for gathering website file usage
    $go_info["server"]["apache2_php"] = 'addhandler'; // 'filter' = set PHP filters, 'addtype' = Set PHP addtype or 'both' = Set Filter + Addtype, suphp = SuPHP wrapper enabled, 'addhandler' = Set PHP AddHandler (nescessary for SuSE 10.2)
    $go_info["server"]["password_hash"] = 'md5'; // 'crypt' = crypt; 'md5' = crypt-md5
    $go_info["server"]["do_automated_backups"] = 0; // 0 = no, 1 = yes; PLEASE NOTE: automated backups might fill up your HDD fast!
    $go_info["server"]["ssh_chroot"] = 0;
    $go_info["server"]["httpd_check"] = 1;
    $go_info["server"]["salutatory_email_charset"] = 'iso-8859-1'; // possible values are iso-8859-1, iso-8859-2, ..., us-ascii, koi8-r (Russian), ...; if no charset is specified, unknown-8bit is assumed.
    $go_info["server"]["webdav"] = 0;
    
    /**********************************************
    * Tools Settings
    **********************************************/
    
    $go_info["tools"]["zip"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."tools".$go_info["server"]["dir_trenner"]."zip".$go_info["server"]["dir_trenner"]."zip"; // nicht gzip !!
    $go_info["tools"]["unzip"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."tools".$go_info["server"]["dir_trenner"]."unzip".$go_info["server"]["dir_trenner"]."unzip";
    $go_info["tools"]["imagemagick"]["mogrify"] = "mogrify.exe";
    
    /**********************************************
    * Themes Settings
    **********************************************/
    
    // Themes Section
    $go_info["theme"]["sitename"] = "ISPConfig";
    $go_info["theme"]["page"]["box_color"] = "E4E4E4"; // z.B. E4E4E4 , angaben ohne #
    $go_info["theme"]["page"]["nav_color"] = "E0E0E0"; // z.B. 025CCA , angaben ohne #
    // Die Logo-Datei muss im Verzeichnis /home/admispconfig/ispconfig/web/design/default liegen!
    $go_info["theme"]["page"]["logo"] = ""; // z.B. meinlogo.gif
    $go_info["theme"]["charset"] = "iso-8859-1";
    
    /**********************************************
    * Logging
    **********************************************/
    
    $go_info["server"]["log_level"] = 0; // 0 = Debug, 1 = Info, 2 = Warning, 3 = Failure
    $go_info["server"]["log_file"] = $go_info["server"]["server_root"] . $go_info["server"]["dir_trenner"] ."ispconfig.log"; // Logdatei
    if(is_file("/home/admispconfig/ispconfig/adminmail.txt")){
      $go_info["server"]["log_mail"] = trim(shell_exec("cat /home/admispconfig/ispconfig/adminmail.txt")); // Log Emailadresse
    } else {
      $go_info["server"]["log_mail"] = "root@localhost";
    }
    $go_info["server"]["log_device"] = "FILE"; // FILE, SYSTEM, MAIL
    
    /**********************************************
    * Demo Mode Settings
    **********************************************/
    
    $go_info["demo"]["web_path"] = "";
    
    
    define("CONFIG_LOADED",1);
    
    
    ?>
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    The file wp-includes/function.php is not included in your header, only the file wp-includes/functions.php is included.

    If this was just a typo as ypu copied the info to the forum, Please craete a file info.php in the website aith the following content:

    <?php
    phpinfo();
    ?>

    and call the file in the browser. Please post the output that you get here in the forum or post a link to the page.
     
  16. Mole

    Mole New Member

  17. Mole

    Mole New Member

    Here is also /etc/apache2/httpd.conf:

    Code:
    #
    # /etc/apache2/httpd.conf 
    #
    # This is the main Apache server configuration file.  It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs-2.2/> for detailed information about
    # the directives.
    
    # Based upon the default apache configuration file that ships with apache,
    # which is based upon the NCSA server configuration files originally by Rob
    # McCool. This file was knocked together by Peter Poeml <[email protected]>.
    
    # If possible, avoid changes to this file. It does mainly contain Include
    # statements and global settings that can/should be overridden in the
    # configuration of your virtual hosts.
    
    
    # Overview of include files, chronologically:
    #
    # httpd.conf
    #  | 
    #  |-- uid.conf  . . . . . . . . . . . . . .  UserID/GroupID to run under
    #  |-- server-tuning.conf  . . . . . . . . .  sizing of the server (how many processes to start, ...)
    #  |-- sysconfig.d/loadmodule.conf . . . . .  [*] load these modules
    #  |-- listen.conf . . . . . . . . . . . . .  IP adresses / ports to listen on
    #  |-- mod_log_config.conf . . . . . . . . .  define logging formats
    #  |-- sysconfig.d/global.conf . . . . . . .  [*] server-wide general settings
    #  |-- mod_status.conf . . . . . . . . . . .  restrict access to mod_status (server monitoring)
    #  |-- mod_info.conf . . . . . . . . . . . .  restrict access to mod_info
    #  |-- mod_usertrack.conf  . . . . . . . . .  defaults for cookie-based user tracking
    #  |-- mod_autoindex-defaults.conf . . . . .  defaults for displaying of server-generated directory listings
    #  |-- mod_mime-defaults.conf  . . . . . . .  defaults for mod_mime configuration
    #  |-- errors.conf . . . . . . . . . . . . .  customize error responses
    #  |-- ssl-global.conf . . . . . . . . . . .  SSL conf that applies to default server _and all_ virtual hosts
    #  |
    #  |-- default-server.conf . . . . . . . . .  set up the default server that replies to non-virtual-host requests
    #  |    |--mod_userdir.conf  . . . . . . . .  enable UserDir (if mod_userdir is loaded)
    #  |    `--conf.d/apache2-manual?conf  . . .  add the docs ('?' = if installed)
    #  |
    #  |-- sysconfig.d/include.conf  . . . . . .  [*] your include files 
    #  |                                             (for each file to be included here, put its name 
    #  |                                              into APACHE_INCLUDE_* in /etc/sysconfig/apache2)
    #  |
    #  `-- vhosts.d/ . . . . . . . . . . . . . .  for each virtual host, place one file here
    #       `-- *.conf . . . . . . . . . . . . .     (*.conf is automatically included)
    #
    #
    # Files marked [*] are created from sysconfig upon server restart: instead of
    # these files, you edit /etc/sysconfig/apache2
    
    
    
    #  Filesystem layout:
    #
    # /etc/apache2/
    #  |-- charset.conv  . . . . . . . . . . . .  for mod_auth_ldap
    #  |-- conf.d/
    #  |   |-- apache2-manual.conf . . . . . . .  conf that comes with apache2-doc
    #  |   |-- mod_php4.conf . . . . . . . . . .  (example) conf that comes with apache2-mod_php4
    #  |   `-- ... . . . . . . . . . . . . . . .  other configuration added by packages
    #  |-- default-server.conf
    #  |-- errors.conf
    #  |-- httpd.conf  . . . . . . . . . . . . .  top level configuration file
    #  |-- listen.conf
    #  |-- magic
    #  |-- mime.types -> ../mime.types
    #  |-- mod_autoindex-defaults.conf
    #  |-- mod_info.conf
    #  |-- mod_log_config.conf
    #  |-- mod_mime-defaults.conf
    #  |-- mod_perl-startup.pl
    #  |-- mod_status.conf
    #  |-- mod_userdir.conf
    #  |-- mod_usertrack.conf
    #  |-- server-tuning.conf
    #  |-- ssl-global.conf
    #  |-- ssl.crl/  . . . . . . . . . . . . . .  PEM-encoded X.509 Certificate Revocation Lists (CRL)
    #  |-- ssl.crt/  . . . . . . . . . . . . . .  PEM-encoded X.509 Certificates
    #  |-- ssl.csr/  . . . . . . . . . . . . . .  PEM-encoded X.509 Certificate Signing Requests
    #  |-- ssl.key/  . . . . . . . . . . . . . .  PEM-encoded RSA Private Keys
    #  |-- ssl.prm/  . . . . . . . . . . . . . .  public DSA Parameter Files
    #  |-- sysconfig.d/  . . . . . . . . . . . .  files that are created from /etc/sysconfig/apache2
    #  |   |-- global.conf
    #  |   |-- include.conf
    #  |   `-- loadmodule.conf
    #  |-- uid.conf
    #  `-- vhosts.d/ . . . . . . . . . . . . . .  put your virtual host configuration (*.conf) here
    #      |-- vhost-ssl.template
    #      `-- vhost.template
    
    
    
    ### Global Environment ######################################################
    #
    # The directives in this section affect the overall operation of Apache,
    # such as the number of concurrent requests.
    
    # run under this user/group id
    Include /etc/apache2/uid.conf
    
    # - how many server processes to start (server pool regulation)
    # - usage of KeepAlive
    Include /etc/apache2/server-tuning.conf
    
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here.  If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    ErrorLog /var/log/apache2/error_log
    
    # generated from APACHE_MODULES in /etc/sysconfig/apache2
    Include /etc/apache2/sysconfig.d/loadmodule.conf
    
    # IP addresses / ports to listen on
    Include /etc/apache2/listen.conf
    
    # predefined logging formats
    Include /etc/apache2/mod_log_config.conf
    
    # generated from global settings in /etc/sysconfig/apache2
    Include /etc/apache2/sysconfig.d/global.conf
    
    # optional mod_status, mod_info
    Include /etc/apache2/mod_status.conf
    Include /etc/apache2/mod_info.conf
    
    # optional cookie-based user tracking
    # read the documentation before using it!!
    Include /etc/apache2/mod_usertrack.conf
    
    # configuration of server-generated directory listings
    Include /etc/apache2/mod_autoindex-defaults.conf
    
    # associate MIME types with filename extensions
    TypesConfig /etc/apache2/mime.types
    DefaultType text/plain
    Include /etc/apache2/mod_mime-defaults.conf
    
    # set up (customizable) error responses
    Include /etc/apache2/errors.conf
    
    # global (server-wide) SSL configuration, that is not specific to 
    # any virtual host
    Include /etc/apache2/ssl-global.conf
    
    # forbid access to the entire filesystem by default
    <Directory />
        Options None
        AllowOverride None
        Order deny,allow
        Deny from all
    </Directory>
    
    # use .htaccess files for overriding,
    AccessFileName .htaccess
    # and never show them
    <Files ~ "^\.ht">
        Order allow,deny
        Allow from all
    </Files>
    
    # List of resources to look for when the client requests a directory
    DirectoryIndex index.html index.shtml index.html.var index.php index.php5 index.php4 index.aspx default.aspx index.pl index.cgi
    
    ### 'Main' server configuration #############################################
    #
    # The directives in this section set up the values used by the 'main'
    # server, which responds to any requests that aren't handled by a
    # <VirtualHost> definition.  These values also provide defaults for
    # any <VirtualHost> containers you may define later in the file.
    #
    # All of these directives may appear inside <VirtualHost> containers,
    # in which case these default settings will be overridden for the
    # virtual host being defined.
    #
    Include /etc/apache2/default-server.conf
    
    
    # Another way to include your own files
    #
    # The file below is generated from /etc/sysconfig/apache2,
    # include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and
    # APACHE_CONF_INCLUDE_DIRS
    Include /etc/apache2/sysconfig.d/include.conf
    
    
    ### Virtual server configuration ############################################
    #
    # VirtualHost: If you want to maintain multiple domains/hostnames on your
    # machine you can setup VirtualHost containers for them. Most configurations
    # use only name-based virtual hosts so the server doesn't need to worry about
    # IP addresses. This is indicated by the asterisks in the directives below.
    #
    # Please see the documentation at
    # <URL:http://httpd.apache.org/docs-2.2/vhosts/>
    # for further details before you try to setup virtual hosts.
    #
    # You may use the command line option '-S' to verify your virtual host
    # configuration.
    #
    Include /etc/apache2/vhosts.d/*.conf
    
    
    # Note: instead of adding your own configuration here, consider 
    #       adding it in your own file (/etc/apache2/httpd.conf.local)
    #       putting its name into APACHE_CONF_INCLUDE_FILES in 
    #       /etc/sysconfig/apache2 -- this will make system updates 
    #       easier :) 
    
    <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 /wwwroot/*/web>
        Options +Includes -Indexes
        AllowOverride None
        AllowOverride Indexes AuthConfig Limit FileInfo
        Order allow,deny
        Allow from all
        <Files ~ "^\.ht">
        Allow from all
        </Files>
    </Directory>
    
    <Directory /wwwroot/*/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 /wwwroot/*/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
    
    
     
  18. Mole

    Mole New Member

    I'm in big deadlock :eek: :rolleyes:
    I need to get up running this website... but do not know - how!

    Ok, I can choose others controls panels, but as far I found - this one was the best and is opensource...

    Maybe I can give more config files or other info to make you able to help me?
     
  19. till

    till Super Moderator Staff Member ISPConfig Developer

    I have really no Idea what is causing this on your server. But its definately no problem with ISPConfig in genaral as I run several Wordpress websites without problems and I know many other ISPConfig installations that use wordpress too.

    Do you vae any .htaccess file inside the web directory?
     
  20. Mole

    Mole New Member

    At this moment - no!

    But - if I create such one:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /http://www.komunalserviss.lv/index.php/category/jaunumi/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /http://www.komunalserviss.lv/category/jaunumi/ [L]
    </IfModule>
    ~

    Then there is no differences - the same Error!
     

Share This Page