Current time: 12-27-2024, 12:46 PM Hello There, Guest! (LoginRegister)


Post Reply 
FreeBSD7 Help with this error, please
Author Message
onelife Offline


Posts: 2
Joined: Feb 2009
Reputation: 0
Post: #1
FreeBSD7 Help with this error, please
Hello.

When I install ISPCP there was many trouble, which I solved. But 1 I can't... When try to open http://admin.testmachine - error 403, the http://admin.testmachine/index.php there next error:

Fatal error: Uncaught exception 'Exception' with message 'Database error: Not connected to default' in /usr/local/www/ispcp/gui/include/class.database.php:21 Stack trace: #0 /usr/local/www/ispcp/gui/include/i18n.php(66): Database::getInstance() #1 /usr/local/www/ispcp/gui/include/system-message.php(49): tr('ispCP Error') #2 /usr/local/www/ispcp/gui/include/ispcp-config.php(62): system_message('ERROR: The php-...') #3 /usr/local/www/ispcp/gui/include/sql.php(26): decrypt_db_password('r6mMh3DvSSM=') #4 /usr/local/www/ispcp/gui/include/ispcp-lib.php(54): require_once('/usr/local/www/...') #5 /usr/local/www/ispcp/gui/index.php(21): require('/usr/local/www/...') #6 {main} thrown in /usr/local/www/ispcp/gui/include/class.database.php on line 21

I twice entered the right data ( localhost, root, pass) to mysql setting in the setup script, and test it with mysql - so I don't know what this may be.....

And more: when I compiled with "make Makefile.fbsd install" :

[root@testbsd ~/ispcp-omega-1.0.0]# make Makefile.fbsd install
"BSDmakefile", line 39: Malformed conditional ($(OSTYPE)==FreeBSD)
"BSDmakefile", line 41: if-less else
"Makefile.inc", line 32: Need an operator
"Makefile.inc", line 34: Need an operator
"BSDmakefile", line 43: if-less endif
make: fatal errors encountered -- cannot continue
[root@testbsd ~/ispcp-omega-1.0.0]#

Then I remove this lines in all BSDmakefile's :

#.ifdef $(OSTYPE)==FreeBSD
.include <Makefile.fbsd>
#.else
#.include <Makefile.inc>
#.endif

and all compile ok. That right compile I hope??? no was errors

Help me understand what my errors or what can I do to fix this .
02-27-2009 08:37 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: FreeBSD7 Help with this error, please
I will reinstall my FreeBSD Server and test it with 1.0.0 again.
Please give me some time.

Code:
[root@testbsd ~/ispcp-omega-1.0.0]# make Makefile.fbsd install
"BSDmakefile", line 39: Malformed conditional ($(OSTYPE)==FreeBSD)
"BSDmakefile", line 41: if-less else
"Makefile.inc", line 32: Need an operator
"Makefile.inc", line 34: Need an operator
"BSDmakefile", line 43: if-less endif
make: fatal errors encountered -- cannot continue
[root@testbsd ~/ispcp-omega-1.0.0]#

Then I remove this lines in all BSDmakefile's :

#.ifdef $(OSTYPE)==FreeBSD
.include <Makefile.fbsd>
#.else
#.include <Makefile.inc>
#.endif

and all compile ok. That right compile I hope??? no was errors
Use BSDmakefile not Makefile.fbsd, Makefile.fbsd is used for customized variable

Greez BeNe
02-27-2009 11:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #3
RE: FreeBSD7 Help with this error, please
I corrected it in the Wiki --> http://www.isp-control.net/documentation...on/freebsd

Greez BeNe
02-28-2009 12:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply
onelife Offline


Posts: 2
Joined: Feb 2009
Reputation: 0
Post: #4
RE: FreeBSD7 Help with this error, please
(02-28-2009 12:39 AM)BeNe Wrote:  I corrected it in the Wiki --> http://www.isp-control.net/documentation...on/freebsd

Greez BeNe

Big 10x for attention =)

I have some question else... When I install the required modules (step 2), during install some option was unavailable, for example: In PHP5-Extension there was no options dbx (only dba & dbase), domxml (just dom), filepro (only fileinfo), pear, xslt & php5-pdo_mysql. In Apache22 this options was absence: mod_cband, mod_php, mod_fastcgi, mod_fcgid.
System is Freebsd 7.0
What's wrong ??? I need to manually add them? About mod_fastcgi & someone else I understand that just get it from ports, how about other???
03-02-2009 04:49 PM
Find all posts by this user Quote this message in a reply
jamesbong Offline
Newbie
*

Posts: 9
Joined: Mar 2009
Reputation: 0
Post: #5
RE: FreeBSD7 Help with this error, please
Sorry I have another type of error on freebsd7 with ispCP 1.0.1 OMEGA build: 20090227 Codename: Orpheus.

when I create a new user/domain apache goes down, if I try to manually restart it gives me this error:

bob# /usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
Warning: DocumentRoot [/usr/local/www/data/virtual/mynewdomain.com/htdocs] does not exist
Syntax error on line 156 of /usr/local/etc/apache22/Includes/ispcp.conf:
can't get fastcgi file info: /usr/local/www/data/fcgi/mynewdomain.com/php5-fcgi-starter(/usr/local/www/data/fcgi/mynewdomain.com/php5-fcgi-starter), errno: 2
bob#

if I look in the database, the domain status says:

setfmode() | ERROR: File '/usr/local/www/data/virtual/mynewdomain.com/errors/inc/.svn' does not exist !

the log file /var/log/ispcp/ispcp_daemon-stderr.log. is empty.
any ideas?

Tnks
(This post was last modified: 03-05-2009 07:21 AM by jamesbong.)
03-05-2009 07:18 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: FreeBSD7 Help with this error, please
You must remove the .svn files from the svn checkout you did.
Code:
find . -type d -name ".svn" -exec rm -rf {} \;;true

Then everything should be ok Wink

Greez BeNe
03-05-2009 04:59 PM
Visit this user's website Find all posts by this user Quote this message in a reply
jamesbong Offline
Newbie
*

Posts: 9
Joined: Mar 2009
Reputation: 0
Post: #7
RE: FreeBSD7 Help with this error, please
Thank you for support BeNe Big Grin ...

I have removed the svn files from the svn checkout,
but i have the same error for apache and the same error in the DB.
the log file /var/log/ispcp/ispcp_daemon-stderr.log is always empty.
Where i can find any error log??
It seems that the templates do not create these files:
- htdocs folder for new domain
- php5-fcgi-starter file for new domain

Thank you in advance
03-05-2009 09:57 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #8
RE: FreeBSD7 Help with this error, please
Did you enabled the Debug Modus ?
--> http://www.isp-control.net/ispcp/wiki/howto_debug

Path to the request manager is in your case:
Code:
/usr/local/www/ispcp/engine/ispcp-rqst-mngr

Then take a look in the Errorlogs.

Greez BeNe
03-05-2009 10:26 PM
Visit this user's website Find all posts by this user Quote this message in a reply
jamesbong Offline
Newbie
*

Posts: 9
Joined: Mar 2009
Reputation: 0
Post: #9
RE: FreeBSD7 Help with this error, please
ok
I have enabled the Debug Modus Tongue
this is the output of ispcp-rqst-mngr

Quote:bob# /usr/local/www/ispcp/engine/ispcp-rqst-mngr
DEBUG: push_el() sub_name: mngr_start_up(), msg: Starting...
DEBUG: push_el() sub_name: lock_system(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('`which touch` /var/run/ispcp.lock'), msg: Ending...
DEBUG: push_el() sub_name: lock_system(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Starting...
DEBUG: push_el() sub_name: get_file(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Starting...
DEBUG: push_el() sub_name: decrypt_db_password(), msg: Ending...
DEBUG: push_el() sub_name: setup_main_vars(), msg: Ending...
DEBUG: push_el() sub_name: get_conf(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mngr_start_up(), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('/usr/local/www/ispcp/engine/ispcp-serv-mngr 1 0 0 0 0 1>/var/log/ispcp/ispcp-serv-mngr.stdout 2>/var/log/ispcp/ispcp-serv-mngr.stderr'), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: doSQL(), msg: Starting...
DEBUG: push_el() sub_name: doSQL(), msg: Ending...
DEBUG: push_el() sub_name: mngr_engine(), msg: Ending...
DEBUG: push_el() sub_name: mngr_shut_down(), msg: Starting...
DEBUG: push_el() sub_name: unlock_system(), msg: Starting...
DEBUG: push_el() sub_name: sys_command(), msg: Starting...
DEBUG: push_el() sub_name: sys_command('`which rm` -rf /var/run/ispcp.lock'), msg: Ending...
DEBUG: push_el() sub_name: unlock_system(), msg: Ending...
DEBUG: push_el() sub_name: mngr_shut_down(), msg: Ending...
bob#

if i look in the log i see a lot of this line:

Quote:DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{HTACCESS_GROUPS_FILE_NAME}' eq '{HTACCESS_GROUPS_FILE_NAME}', missing '{HTACCESS_GROUPS_FILE_NAME}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{AWSTATS_GROUP_AUTH}' eq '{AWSTATS_GROUP_AUTH}', missing '{AWSTATS_GROUP_AUTH}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{WWW_DIR}' eq '{WWW_DIR}', missing '{WWW_DIR}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{PHP_VERSION}' eq '{PHP_VERSION}', missing '{PHP_VERSION}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{GUI_ROOT_DIR}' eq '{GUI_ROOT_DIR}', missing '{GUI_ROOT_DIR}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{APACHE_LOG_DIR}' eq '{APACHE_LOG_DIR}', missing '{APACHE_LOG_DIR}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{DMN_NAME}' eq '{DMN_NAME}', missing '{DMN_NAME}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{BASE_SERVER_VHOST}' eq '{BASE_SERVER_VHOST}', missing '{BASE_SERVER_VHOST}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{BWLIMIT_DISABLED}' eq '{BWLIMIT_DISABLED}', missing '{BWLIMIT_DISABLED}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{SUEXEC_USER}' eq '{SUEXEC_USER}', missing '{SUEXEC_USER}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{APACHE_USERS_LOG_DIR}' eq '{APACHE_USERS_LOG_DIR}', missing '{APACHE_USERS_LOG_DIR}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{DMN_IP}' eq '{DMN_IP}', missing '{DMN_IP}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{HTACCESS_USERS_FILE_NAME}' eq '{HTACCESS_USERS_FILE_NAME}', missing '{HTACCESS_USERS_FILE_NAME}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{STARTER_DIR}' eq '{STARTER_DIR}', missing '{STARTER_DIR}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{SELF}' eq '{SELF}', missing '{SELF}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{CUSTOM_SITES_CONFIG_DIR}' eq '{CUSTOM_SITES_CONFIG_DIR}', missing '{CUSTOM_SITES_CONFIG_DIR}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{BWLIMIT}' eq '{BWLIMIT}', missing '{BWLIMIT}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '##TEMPLATE' eq '##TEMPLATE', missing '##TEMPLATE' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{SUEXEC_GROUP}' eq '{SUEXEC_GROUP}', missing '{SUEXEC_GROUP}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{PEAR_DIR}' eq '{PEAR_DIR}', missing '{PEAR_DIR}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{SCOREBOARDS_DIR}' eq '{SCOREBOARDS_DIR}', missing '{SCOREBOARDS_DIR}' in src !
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{DMN_GRP}' eq '{DMN_GRP}', missing '{DMN_GRP}' in src !

and this error at the end:

Quote:DEBUG: push_el() sub_name: sys_command(), msg: ERROR: External command '/bin/echo n | /bin/cp -ip /usr/local/www/ispcp/gui/errordocs/inc/.svn /usr/local/www/data/virtual/mynewdomain.com/errors/inc/ 2>/dev/null' returned '1' status !
DEBUG: push_el() sub_name: setfmode(), msg: ERROR: File '/usr/local/www/data/virtual/mynewdomain.com/errors/inc/.svn' does not exist !
DEBUG: pop_el() sub_name: setfmode(), msg: ERROR: File '/usr/local/www/data/virtual/mynewdomain.com/errors/inc/.svn' does not exist !

for the installation i have followed your howto step by step.

tnks Wink
(This post was last modified: 03-06-2009 02:31 AM by jamesbong.)
03-06-2009 02:26 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #10
RE: FreeBSD7 Help with this error, please
Code:
DEBUG: push_el() sub_name: get_tag(), msg: ERROR: '{HTACCESS_GROUPS_FILE_NAME}' eq '{HTACCESS_GROUPS_FILE_NAME}', missing '{HTACCESS_GROUPS_FILE_NAME}' in src !
Ok, please check your:
Code:
/usr/local/etc/ispcp/ispcp.conf
There should be ALL these variables like:
Code:
HTACCESS_USERS_FILE_NAME = .htpasswd

HTACCESS_GROUPS_FILE_NAME = .htgroup
Make sure they exist.

Code:
DEBUG: push_el() sub_name: sys_command(), msg: ERROR: External command '/bin/echo n | /bin/cp -ip /usr/local/www/ispcp/gui/errordocs/inc/.svn /usr/local/www/data/virtual/mynewdomain.com/errors/inc/ 2>/dev/null' returned '1' status !
DEBUG: push_el() sub_name: setfmode(), msg: ERROR: File '/usr/local/www/data/virtual/mynewdomain.com/errors/inc/.svn' does not exist !
DEBUG: pop_el() sub_name: setfmode(), msg: ERROR: File '/usr/local/www/data/virtual/mynewdomain.com/errors/inc/.svn' does not exist !
You have to remove the .svn also in the installed ispcp directory´s.
Code:
-> find . -type d -name ".svn" -exec rm -rf {} \;;true

Quote:for the installation i have followed your howto step by step.
Fine Smile But there are is still many todo and i´m very busy this time...

Greez BeNe
03-06-2009 02:35 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: 3 Guest(s)