Current time: 12-26-2024, 11:12 PM Hello There, Guest! (LoginRegister)


Post Reply 
Cannot open the ispcp.conf config file!
Author Message
greatman Offline
Junior Member
*

Posts: 40
Joined: Apr 2008
Reputation: 0
Post: #1
Cannot open the ispcp.conf config file!
Hi

When i want to go on ispcp, i got this message:
Quote:Cannot open the ispcp.conf config file!
Please contact your system administrator

I chmod 777 the ispcp.conf file but that doesn't work. Sad

Can you help me please?

Thanks
Greatman
[/quote]
09-15-2008 08:17 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Cannot open the ispcp.conf config file!
Maybe it's not a read problem but rather a problem what's inside the file.

If the file cannot be interpreted/parsed the same message will appear...

Have a look at your ispcp.conf

/J
09-15-2008 07:13 PM
Visit this user's website Find all posts by this user Quote this message in a reply
greatman Offline
Junior Member
*

Posts: 40
Joined: Apr 2008
Reputation: 0
Post: #3
RE: Cannot open the ispcp.conf config file!
Thanks for the information but i doesn't see the error. Sad

Here is my ispcp.conf file

PHP Code:
#
# ispCP Ï‰ (OMEGA) a Virtual Hosting Control Panel
# Copyright (c) 2006-2008 by isp Control Panel
# http://isp-control.net
#

#
# Misc config variables
#

BuildDate 20080806

Version 
1.0.0 RC6 OMEGA

CodeName 
Priamos

DEFAULT_ADMIN_ADDRESS 
netadmin@virtual-info.eu

SERVER_HOSTNAME 
ispcp.virtual-info.eu

BASE_SERVER_IP 
91.121.208.48

BASE_SERVER_VHOST 
admin.virtual-info.eu

MR_LOCK_FILE 
= /var/run/ispcp.lock

#
# File system variables
#

CMD_AWK = /usr/bin/awk

CMD_BZCAT 
= /bin/bzcat

CMD_BZIP 
= /bin/bzip2

CMD_CHOWN 
= /bin/chown

CMD_CAT 
= /bin/cat

CMD_CHMOD 
= /bin/chmod

CMD_CP 
= /bin/cp

CMD_DIFF 
= /usr/bin/diff

CMD_DU 
= /usr/bin/du

CMD_ECHO 
= /bin/echo

CMD_EGREP = /bin/egrep

CMD_GZCAT 
= /bin/zcat

CMD_GZIP 
= /bin/gzip

CMD_GREP 
= /bin/grep

CMD_GROUPADD 
= /usr/sbin/groupadd

CMD_GROUPDEL 
= /usr/sbin/groupdel

CMD_HOSTNAME 
= /bin/hostname

CMD_IFCONFIG 
= /sbin/ifconfig

CMD_IPTABLES 
= /sbin/iptables

CMD_LN 
= /bin/ln

CMD_MYSQL 
= /usr/bin/mysql

CMD_MV 
= /bin/mv

CMD_PS 
= /bin/ps

CMD_RM 
= /bin/rm

CMD_SED 
= /bin/sed

CMD_SHELL 
= /bin/bash

CMD_TAR 
= /bin/tar

CMD_TOUCH 
= /usr/bin/touch

CMD_USERADD 
= /usr/sbin/useradd

CMD_USERDEL 
= /usr/sbin/userdel

CMD_WC 
= /usr/bin/wc

PEAR_DIR 
= /usr/share/php

#
# SQL backend variables
#

# Don't change this one
DATABASE_TYPE mysql

DATABASE_HOST 
localhost

DATABASE_NAME 
ispcp

DATABASE_PASSWORD 
= **********

DATABASE_USER root

DATABASE_DIR 
= /var/lib/mysql

CMD_MYSQLDUMP 
= /usr/bin/mysqldump

DATABASE_UTF8 
yes

#
# Main variables
#

CONF_DIR = /etc/ispcp

LOG_DIR 
= /var/log/ispcp

PHP_STARTER_DIR 
= /var/www/fcgi

ROOT_DIR 
= /var/www/ispcp

ROOT_USER 
root

ROOT_GROUP 
root

GUI_ROOT_DIR 
= /var/www/ispcp/gui

APACHE_WWW_DIR 
= /home/vhost

SCOREBOARDS_DIR 
= /var/www/scoreboards

# Select Zipping Algorithm for Backups
# Supported: gzip, bzip2
ZIP bzip2

#
# PHP FastCGI data
#

PHP4_FASTCGI_BIN = /usr/bin/php4-cgi

PHP5_FASTCGI_BIN 
= /usr/bin/php5-cgi

PHP_VERSION 
5

#
# ProFTPd data
#

FTPD_CONF_FILE = /etc/proftpd/proftpd.conf

#
# BIND data
#

BIND_CONF_FILE = /etc/bind/named.conf

BIND_DB_DIR 
= /var/cache/bind

SECONDARY_DNS 
213.251.128.131

#
# AWSTATS data
#

AWSTATS_ACTIVE no

# could be 'dynamic' = 0 or 'static' = 1
AWSTATS_MODE 0

AWSTATS_CACHE_DIR 
= /var/cache/awstats

AWSTATS_CONFIG_DIR 
= /etc/awstats

AWSTATS_ENGINE_DIR 
= /usr/lib/cgi-bin

AWSTATS_WEB_DIR 
= /usr/share/awstats

AWSTATS_ROOT_DIR 
= /var/www/ispcp/engine/awstats

#
# APACHE data
#

APACHE_NAME apache2

APACHE_RESTART_TRY 
5

APACHE_CONF_DIR 
= /etc/apache2

APACHE_CMD 
= /usr/sbin/apache2

APACHE_LOG_DIR 
= /var/log/apache2

APACHE_BACKUP_LOG_DIR 
= /var/log/apache2/backup

APACHE_USERS_LOG_DIR 
= /var/log/apache2/users

APACHE_MODS_DIR 
= /etc/apache2/mods-available

APACHE_SITES_DIR 
= /etc/apache2/sites-available

APACHE_CUSTOM_SITES_CONFIG_DIR 
= /etc/apache2/ispcp

APACHE_SUEXEC_USER_PREF 
vu

APACHE_SUEXEC_MIN_GID 
2000

APACHE_SUEXEC_MIN_UID 
2000

APACHE_USER 
www-data

APACHE_GROUP 
www-data

#
# Postfix MTA Data
#

POSTFIX_CONF_FILE = /etc/postfix/main.cf

POSTFIX_MASTER_CONF_FILE 
= /etc/postfix/master.cf

MTA_LOCAL_MAIL_DIR 
= /var/mail

MTA_VIRTUAL_MAIL_DIR 
= /var/mail/virtual

MTA_LOCAL_ALIAS_HASH 
= /etc/aliases

MTA_VIRTUAL_CONF_DIR 
= /etc/postfix/ispcp

MTA_VIRTUAL_ALIAS_HASH 
= /etc/postfix/ispcp/aliases

MTA_VIRTUAL_DMN_HASH 
= /etc/postfix/ispcp/domains

MTA_VIRTUAL_MAILBOX_HASH 
= /etc/postfix/ispcp/mailboxes

MTA_TRANSPORT_HASH 
= /etc/postfix/ispcp/transport

MTA_SENDER_ACCESS_HASH 
= /etc/postfix/ispcp/sender-access

MTA_MAILBOX_MIN_UID 
1004

MTA_MAILBOX_UID 
1004

MTA_MAILBOX_UID_NAME 
vmail

MTA_MAILBOX_GID 
8

MTA_MAILBOX_GID_NAME 
mail

MTA_SASLDB_FILE 
= /var/spool/postfix/etc/sasldb2

ETC_SASLDB_FILE 
= /etc/sasldb2

CMD_SASLDB_LISTUSERS2 
= /usr/sbin/sasldblistusers2

CMD_SASLDB_PASSWD2 
= /usr/sbin/saslpasswd2

CMD_POSTMAP 
= /usr/sbin/postmap

CMD_NEWALIASES 
= /usr/bin/newaliases

#
# Courier data
#

AUTHLIB_CONF_DIR = /etc/courier

CMD_MAKEUSERDB 
= /usr/sbin/makeuserdb

#
# Crontab delayed tasks
#

BACKUP_HOUR 23

BACKUP_MINUTE 
40

BACKUP_ISPCP 
yes

BACKUP_DOMAINS 
yes

BACKUP_ROOT_DIR 
= /var/www/ispcp/engine/backup

CMD_CRONTAB 
= /usr/bin/crontab

#
# Service manager
#

# Either no or path to the amavis-daemon (usually: /etc/init.d/amavis)
CMD_AMAVIS no

CMD_AUTHD 
= /etc/init.d/courier-authdaemon

CMD_FTPD 
= /etc/init.d/proftpd

CMD_HTTPD 
= /usr/sbin/apache2ctl

CMD_IMAP 
= /etc/init.d/courier-imap

CMD_IMAP_SSL 
= /etc/init.d/courier-imap-ssl

CMD_MTA 
= /etc/init.d/postfix

CMD_NAMED 
= /etc/init.d/bind9

CMD_POP 
= /etc/init.d/courier-pop

CMD_POP_SSL 
= /etc/init.d/courier-pop-ssl

CMD_ISPCPD 
= /etc/init.d/ispcp_daemon

CMD_ISPCPN 
= /etc/init.d/ispcp_network

#
# Virtual traffic manager
#

CMD_PFLOGSUM = /usr/sbin/maillogconvert.pl

TRAFF_LOG_DIR 
= /var/log

FTP_TRAFF_LOG 
= /proftpd/ftp_traff.log

MAIL_TRAFF_LOG 
mail.log

TRAFF_ROOT_DIR 
= /var/www/ispcp/engine/traffic

TOOLS_ROOT_DIR 
= /var/www/ispcp/engine/tools

QUOTA_ROOT_DIR 
= /var/www/ispcp/engine/quota

#
# AMaViS data
#

MAIL_LOG_INC_AMAVIS 0

#
# GUI config
#

USER_INITIAL_THEME omega_original

FTP_USERNAME_SEPARATOR 
= @

FTP_HOMEDIR = /home/vhost/

IPS_LOGO_PATH = ../themes/user_logos

ISPCP_SUPPORT_SYSTEM_PATH 
ticket_system.php

ISPCP_SUPPORT_SYSTEM_TARGET 
=

MYSQL_PREFIX no

# '' for MYSQL_PREFIX = no,
# 'infront' or 'behind' for MYSQL_PREFIX = yes
MYSQL_PREFIX_TYPE 

WEBMAIL_PATH = ../tools/webmail/

WEBMAIL_TARGET _blank

PMA_PATH 
= ../tools/pma/

PMA_TARGET _blank

FILEMANAGER_PATH 
= ../tools/filemanager/

FILEMANAGER_TARGET _blank

DATE_FORMAT 
d.m.Y

RKHUNTER_LOG 
= /var/log/rkhunter.log

CHKROOTKIT_LOG 
= /var/log/chkrootkit.log

# Here you can set an additional anti-rootkit tool log file
OTHER_ROOTKIT_LOG =

#
# htaccess management
#

HTACCESS_USERS_FILE_NAME = .htpasswd

HTACCESS_GROUPS_FILE_NAME 
= .htgroup

HTPASSWD_CMD 
= /usr/bin/htpasswd2

#
# backup management
#

BACKUP_FILE_DIR = /var/www/ispcp/backups

#
# Developer Mode
#

DEBUG 
(This post was last modified: 09-15-2008 09:51 PM by greatman.)
09-15-2008 09:50 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Cannot open the ispcp.conf config file!
Hm, right...

ok, try the followin:

in /var/www/ispcp/gui/include/class.config.php you have
Code:
...
        private static function _parseFile() {
                // open file ... parse it and put it in $cfg_values
                @$fd = fopen(self::$_file, 'r');
                if (!$fd) {
                        return false;
                } while (!feof($fd)) {
...

just delete the @ in
@$fd = fopen(self::$_file, 'r');
(line 208) and try again - hopefully you'll see more error messages which help finding the problem...

/J
09-16-2008 01:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
greatman Offline
Junior Member
*

Posts: 40
Joined: Apr 2008
Reputation: 0
Post: #5
RE: Cannot open the ispcp.conf config file!
Got this : Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid/gid is 1000/33 is not allowed to access /etc/ispcp/ispcp.conf owned by uid/gid 0/0 in /var/www/ispcp/gui/include/class.config.php on line 208

I change the gid of the file to 1000 and its now ok !
09-16-2008 07:39 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: Cannot open the ispcp.conf config file!
You have a setup that differs from mine...

for ispcp I have no safe_mode enabled, but open_basedir ist also set to /etc/ispcp and the whole ispcp runs under user 2000 (group 33).
Your ispcp.conf also looks like 2000:33...

So: keep in mind that your setup is not as it should be...

/J
09-16-2008 08:21 PM
Visit this user's website Find all posts by this user Quote this message in a reply
sci2tech Away
Senior Member
****

Posts: 1,285
Joined: Jan 2007
Reputation: 23
Post: #7
RE: Cannot open the ispcp.conf config file!
You are using mod_php with safe mode on. If you want to work without this trick turn it off for master domain. (/etc/apache2/sites-enabled/00_master.conf)
09-17-2008 01:15 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)