Hi Till and Falko, I have found some problem in the administration panel. When I try to write some custom directives in the box at the end of the page and then I look the the /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf, the file doesn't respect the configuration posted on the web application. Why?!
What custom directives did you use? When you look at the Apache Directives box now, are these directives commented out?
Code: <Directory /var/www/web1/web/> AllowOverride All </Directory> php_value memory_limit 64M No, they don't.
Code: include("/home/admispconfig/ispconfig/lib/config.inc.php"); $go_info["isp"]["httpd"]["use_old_conf_on_errors"] = 1; // if httpd syntax check gives back errors, use old, working configuration //////////////// DO NOT EDIT BELOW !!! ////////////////// $go_info["isp"]["server_root"] = "/root/ispconfig"; $go_info["isp"]["include_root"] = $go_info["isp"]["server_root"] . $go_info["server"]["dir_trenner"] ."scripts".$go_info["server"]["dir_trenner"]."lib"; $go_info["isp"]["classes_root"] = $go_info["isp"]["include_root"] . $go_info["server"]["dir_trenner"] ."classes"; $go_info["isp"]["server_id"] = 1; /************************************** * Server Einstellungen * V1.0 ISPConfig SERVER Modules ***************************************/ $link = @mysql_connect($go_info["server"]["db_host"], $go_info["server"]["db_user"], $go_info["server"]["db_password"]) or die("Could not connect to MySQL server!"); mysql_select_db($go_info["server"]["db_name"]); $server_params = mysql_query("SELECT * FROM isp_server WHERE doc_id = '".$go_info["isp"]["server_id"]."'"); if(!$go_info["isp"]["server_conf"] = mysql_fetch_array($server_params)){ die("No results found!"); } else { foreach($go_info["isp"]["server_conf"] as $key => $value) { $value = trim($value); while(strlen($value) > 1 && substr($value,-1) == "/") $value = substr($value,0,strlen($value)-1); $go_info["isp"]["server_conf"][$key] = $value; } $key = NULL; $value = NULL; } mysql_free_result($server_params); $server_params = mysql_query("SELECT server_ip FROM isp_server_ip WHERE server_id = '".$go_info["isp"]["server_id"]."'"); while ($row = mysql_fetch_array($server_params)) { $ips[] = $row['server_ip']; } $go_info["isp"]["server_conf"]["ips"] = $ips; unset($ips); mysql_free_result($server_params); mysql_close($link); $go_info["modules"]["string"] = "string"; $go_info["modules"]["file"] = "file"; $go_info["modules"]["system"] = "system"; $go_info["modules"]["mail"] = $go_info["isp"]["server_conf"]["server_mta"]; $go_info["modules"]["procmail"] = "procmail"; $go_info["modules"]["dns"] = "bind"; $go_info["modules"]["cron"] = "cron"; $go_info["modules"]["webdav"] = "webdav";
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.shinesoftware.com: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.34"; $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"] = "db_ispconfig"; $go_info["server"]["db_user"] = "root"; $go_info["server"]["db_password"] = "****"; $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"] = "it"; $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"] = 0; // enable sudo for gathering website file usage $go_info["server"]["apache2_php"] = 'addtype'; // '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; $go_info["server"]["force_user_quota"] = 0; $go_info["server"]["redirect_after_logout"] = ''; // URL to redirect to after logout from ISPConfig; leave empty for default location $go_info["server"]["redirect_mailuser_after_logout"] = ''; // URL to redirect to after logout from ISPConfig mailuser interface; leave empty for default location /********************************************** * 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"] = ""; /********************************************** * Localisation Settings **********************************************/ $go_info["localisation"]["dec_point"] = ","; $go_info["localisation"]["thousands_sep"] = "."; $go_info["localisation"]["currency"] = "EUR"; define("CONFIG_LOADED",1); ?>
Ok, you're not using suPHP. Can you post the vhost configuration? What's the output of Code: ls -la /etc/httpd/conf/vhosts/ ?
Do you suggest me to use the suPHP Option? Code: # ls -la /etc/httpd/conf/vhosts/ total 10240 drwxr-xr-x 2 root root 4096 Nov 19 15:15 . drwxr-xr-x 3 root root 4096 Nov 14 05:14 .. -rw-r--r-- 1 root root 127335 Nov 19 15:12 _backup_Vhosts_ispconfig.conf -rw-r--r-- 1 root root 127791 Nov 19 16:01 Vhosts_ispconfig.conf -rw-r--r-- 1 root root 127791 Nov 19 16:01 Vhosts_ispconfig.conf~ -rw-r--r-- 1 root root 62187 Mar 2 2009 Vhosts_ispconfig.conf_02-03-09_18-11-53 -rw-r--r-- 1 root root 61992 Mar 2 2009 Vhosts_ispconfig.conf_02-03-09_18-12-35 -rw-r--r-- 1 root root 126233 Nov 12 09:25 Vhosts_ispconfig.conf_12-11-09_09-25-52 -rw-r--r-- 1 root root 126233 Nov 12 09:26 Vhosts_ispconfig.conf_12-11-09_09-26-51 -rw-r--r-- 1 root root 126304 Nov 12 09:27 Vhosts_ispconfig.conf_12-11-09_09-27-51 -rw-r--r-- 1 root root 126304 Nov 12 10:51 Vhosts_ispconfig.conf_12-11-09_10-51-12 -rw-r--r-- 1 root root 126304 Nov 12 10:52 Vhosts_ispconfig.conf_12-11-09_10-52-12 -rw-r--r-- 1 root root 126304 Nov 12 10:53 Vhosts_ispconfig.conf_12-11-09_10-53-15 -rw-r--r-- 1 root root 126304 Nov 12 10:59 Vhosts_ispconfig.conf_12-11-09_10-59-54 -rw-r--r-- 1 root root 126304 Nov 12 11:00 Vhosts_ispconfig.conf_12-11-09_11-00-53 -rw-r--r-- 1 root root 126304 Nov 12 11:01 Vhosts_ispconfig.conf_12-11-09_11-01-54 -rw-r--r-- 1 root root 126304 Nov 12 11:03 Vhosts_ispconfig.conf_12-11-09_11-03-55 -rw-r--r-- 1 root root 126304 Nov 12 11:04 Vhosts_ispconfig.conf_12-11-09_11-04-52 -rw-r--r-- 1 root root 126320 Nov 12 16:34 Vhosts_ispconfig.conf_12-11-09_16-34-44 -rw-r--r-- 1 root root 126374 Nov 12 17:52 Vhosts_ispconfig.conf_12-11-09_17-52-53 -rw-r--r-- 1 root root 126374 Nov 12 17:53 Vhosts_ispconfig.conf_12-11-09_17-53-51 -rw-r--r-- 1 root root 126374 Nov 12 18:44 Vhosts_ispconfig.conf_12-11-09_18-44-36 -rw-r--r-- 1 root root 126374 Nov 13 13:56 Vhosts_ispconfig.conf_13-11-09_13-56-45 -rw-r--r-- 1 root root 71713 Jun 15 08:47 Vhosts_ispconfig.conf_15-06-09_08-47-53 -rw-r--r-- 1 root root 71808 Jun 15 16:01 Vhosts_ispconfig.conf_15-06-09_16-01-59 -rw-r--r-- 1 root root 71805 Jun 15 16:05 Vhosts_ispconfig.conf_15-06-09_16-05-41 -rw-r--r-- 1 root root 127524 Nov 15 18:10 Vhosts_ispconfig.conf_15-11-09_18-10-13 -rw-r--r-- 1 root root 127524 Nov 15 18:11 Vhosts_ispconfig.conf_15-11-09_18-11-10 -rw-r--r-- 1 root root 127595 Nov 15 18:29 Vhosts_ispconfig.conf_15-11-09_18-29-20 -rw-r--r-- 1 root root 127592 Nov 15 19:00 Vhosts_ispconfig.conf_15-11-09_19-00-55 -rw-r--r-- 1 root root 127595 Nov 15 19:02 Vhosts_ispconfig.conf_15-11-09_19-02-52 -rw-r--r-- 1 root root 126374 Nov 15 19:13 Vhosts_ispconfig.conf_15-11-09_19-13-46 -rw-r--r-- 1 root root 126374 Nov 15 19:15 Vhosts_ispconfig.conf_15-11-09_19-15-16 -rw-r--r-- 1 root root 127568 Nov 15 19:16 Vhosts_ispconfig.conf_15-11-09_19-16-49 -rw-r--r-- 1 root root 127568 Nov 15 19:17 Vhosts_ispconfig.conf_15-11-09_19-17-47 -rw-r--r-- 1 root root 127565 Nov 15 19:39 Vhosts_ispconfig.conf_15-11-09_19-39-07 -rw-r--r-- 1 root root 127565 Nov 15 19:41 Vhosts_ispconfig.conf_15-11-09_19-41-26 -rw-r--r-- 1 root root 127568 Nov 15 19:48 Vhosts_ispconfig.conf_15-11-09_19-48-07 -rw-r--r-- 1 root root 127639 Nov 15 19:59 Vhosts_ispconfig.conf_15-11-09_19-59-43 -rw-r--r-- 1 root root 127639 Nov 15 21:32 Vhosts_ispconfig.conf_15-11-09_21-32-26 -rw-r--r-- 1 root root 127639 Nov 15 21:33 Vhosts_ispconfig.conf_15-11-09_21-33-22 -rw-r--r-- 1 root root 127639 Nov 15 21:38 Vhosts_ispconfig.conf_15-11-09_21-38-37 -rw-r--r-- 1 root root 127639 Nov 15 21:42 Vhosts_ispconfig.conf_15-11-09_21-42-15 -rw-r--r-- 1 root root 127639 Nov 15 21:46 Vhosts_ispconfig.conf_15-11-09_21-46-03 -rw-r--r-- 1 root root 127666 Nov 15 21:59 Vhosts_ispconfig.conf_15-11-09_21-59-21 -rw-r--r-- 1 root root 127666 Nov 15 22:53 Vhosts_ispconfig.conf_15-11-09_22-53-22 -rw-r--r-- 1 root root 127622 Nov 17 10:32 Vhosts_ispconfig.conf_17-11-09_10-32-27 -rw-r--r-- 1 root root 127622 Nov 17 11:10 Vhosts_ispconfig.conf_17-11-09_11-10-00 -rw-r--r-- 1 root root 127622 Nov 18 11:36 Vhosts_ispconfig.conf_18-11-09_11-36-29 -rw-r--r-- 1 root root 127622 Nov 18 11:37 Vhosts_ispconfig.conf_18-11-09_11-37-24 -rw-r--r-- 1 root root 127622 Nov 18 11:50 Vhosts_ispconfig.conf_18-11-09_11-50-38 -rw-r--r-- 1 root root 127622 Nov 18 11:54 Vhosts_ispconfig.conf_18-11-09_11-54-49 -rw-r--r-- 1 root root 127622 Nov 18 12:07 Vhosts_ispconfig.conf_18-11-09_12-07-15 -rw-r--r-- 1 root root 127622 Nov 18 12:08 Vhosts_ispconfig.conf_18-11-09_12-08-14 -rw-r--r-- 1 root root 127622 Nov 18 15:34 Vhosts_ispconfig.conf_18-11-09_15-34-17 -rw-r--r-- 1 root root 127622 Nov 18 15:35 Vhosts_ispconfig.conf_18-11-09_15-35-22 -rw-r--r-- 1 root root 127622 Nov 18 15:39 Vhosts_ispconfig.conf_18-11-09_15-39-37 -rw-r--r-- 1 root root 127622 Nov 18 15:40 Vhosts_ispconfig.conf_18-11-09_15-40-32 -rw-r--r-- 1 root root 127622 Nov 18 17:24 Vhosts_ispconfig.conf_18-11-09_17-24-08 -rw-r--r-- 1 root root 127751 Nov 18 17:34 Vhosts_ispconfig.conf_18-11-09_17-34-52 -rw-r--r-- 1 root root 127906 Nov 18 17:40 Vhosts_ispconfig.conf_18-11-09_17-40-17 -rw-r--r-- 1 root root 127906 Nov 18 17:41 Vhosts_ispconfig.conf_18-11-09_17-41-12 -rw-r--r-- 1 root root 127906 Nov 18 18:52 Vhosts_ispconfig.conf_18-11-09_18-52-38 -rw-r--r-- 1 root root 127906 Nov 18 21:03 Vhosts_ispconfig.conf_18-11-09_21-03-22 -rw-r--r-- 1 root root 127906 Nov 19 10:24 Vhosts_ispconfig.conf_19-11-09_10-24-01 -rw-r--r-- 1 root root 127906 Nov 19 10:24 Vhosts_ispconfig.conf_19-11-09_10-24-55 -rw-r--r-- 1 root root 127924 Nov 19 14:24 Vhosts_ispconfig.conf_19-11-09_14-24-19 -rw-r--r-- 1 root root 127924 Nov 19 14:54 Vhosts_ispconfig.conf_19-11-09_14-54-42 -rw-r--r-- 1 root root 128110 Nov 19 15:00 Vhosts_ispconfig.conf_19-11-09_15-00-39 -rw-r--r-- 1 root root 127924 Nov 19 15:05 Vhosts_ispconfig.conf_19-11-09_15-05-14 -rw-r--r-- 1 root root 127924 Nov 19 15:09 Vhosts_ispconfig.conf_19-11-09_15-09-31 -rw-r--r-- 1 root root 169972 Oct 28 18:29 Vhosts_ispconfig.conf_28-10-09_18-29-09 -rw-r--r-- 1 root root 169991 Oct 28 18:29 Vhosts_ispconfig.conf_28-10-09_18-29-49 -rw-r--r-- 1 root root 106303 Oct 30 09:10 Vhosts_ispconfig.conf_30-10-09_09-10-33 -rw-r--r-- 1 root root 106335 Oct 30 12:33 Vhosts_ispconfig.conf_30-10-09_12-33-13 -rw-r--r-- 1 root root 106352 Oct 30 12:33 Vhosts_ispconfig.conf_30-10-09_12-33-55 -rw-r--r-- 1 root root 106399 Oct 30 12:34 Vhosts_ispconfig.conf_30-10-09_12-34-34 -rw-r--r-- 1 root root 106399 Oct 30 12:35 Vhosts_ispconfig.conf_30-10-09_12-35-15 -rw-r--r-- 1 root root 106470 Oct 30 13:14 Vhosts_ispconfig.conf_30-10-09_13-14-26 -rw-r--r-- 1 root root 106605 Oct 30 13:22 Vhosts_ispconfig.conf_30-10-09_13-22-07 -rw-r--r-- 1 root root 106595 Oct 30 13:25 Vhosts_ispconfig.conf_30-10-09_13-25-17 -rw-r--r-- 1 root root 106470 Oct 30 13:27 Vhosts_ispconfig.conf_30-10-09_13-27-08 -rw-r--r-- 1 root root 106470 Oct 30 13:32 Vhosts_ispconfig.conf_30-10-09_13-32-57 -rw-r--r-- 1 root root 49784 Oct 31 2008 Vhosts_ispconfig.conf_31-10-08_09-29-44
Find out which dierctive causes the problem: http://www.howtoforge.com/forums/showpost.php?p=211326&postcount=11 no.