Web Hosting Talk







View Full Version : Sorry [URGENT]... :( problem with Php-Nuke in my server


5need
07-08-2004, 12:13 AM
I have a webserver and there are about 30 customer install Php-Nuke all of them see this error-
==============================
Warning: main(db/mysql.php): failed to open stream: No such file or directory in /home/aclp/public_html/db/db.php on line 53

Warning: main(): Failed opening 'db/mysql.php' for inclusion (include_path='/usr/local/lib/php:/usr/lib/php') in /home/aclp/public_html/db/db.php on line 53

Fatal error: Cannot instantiate non-existent class: sql_db in /home/aclp/public_html/db/db.php on line 86
===================================
I have try to Reinstall Mysql httpd .. but it still not work .. so what the best to do ?
Thanks you

Haze
07-08-2004, 12:17 AM
What does the apache error log say when you tail it in SSH and visit an error producing web site ? Any errors when you restart apache or mysql ?

5need
07-08-2004, 12:22 AM
Dear Haze ,
All other scripts is work fine ... but the Nuke still not work .. there are no error when i restart apache or mysql
and in error_log of apache there are no error

blockcipher
07-08-2004, 12:43 AM
Whats on line 53?

5need
07-08-2004, 12:48 AM
Line 53 : include("".$the_include."/mysql.php");
Line 86 in db file $db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);

Thanks you

blockcipher
07-08-2004, 12:56 AM
And you are importing the nuke DB, and setting up the config.php file correctly?

5need
07-08-2004, 01:04 AM
Dear blockcipher,
it's not in a one site it's on all sites in the server .
Thanks u

pizzaboy_au
07-08-2004, 02:25 AM
Are all the clients installing PHP-nuke via fantastico?

Burhan
07-08-2004, 03:38 AM
1. Find out where this file (mysql.php) is
2. Adjust the script so that it includes it from the correct directory. More than likely its not /db/db/mysql.php, but just /db/mysql.php, so the include must be mysql.php.

5need
07-08-2004, 04:00 AM
Fyerstrtr can you please tell me more information what to do ?
Thanks you

5need
07-10-2004, 07:41 AM
Please answer

Informity
07-10-2004, 09:18 AM
He's explained in more than layman's terms how to fix it. Hell, the error message outputted by PHP *tells* you what the problem is.

Do you have no capacity for individual thought? If not, i'm sure some members here would be willing to fix the script for you for a fee.

</rant>

BudWay
07-10-2004, 04:23 PM
Originally posted by 5need
Please answer

The file on:

/home/aclp/public_html/db/db.php

Is calling wrong the file "db/mysql.php" and it's not finding...

Open file "db.php" under dir "/home/aclp/public_html/db/" and search this line "mysql" fix this line, the way that the begining of the calling of this files looks similar to the other Data bases type.

Example: MsSQL and etc....

You can due this from "SSH" our FTP (Using the user FTP, by that you neede to change the main account password).

If still than you can't figure out, than please learn quickly the basic's our consider leaving the web biz.


PS: This is a simple error on the script calling the db (database), very easy to fix, try reading the error msg more carefuly the answer was there.

5need
07-12-2004, 04:52 PM
Hi All,
I have try and edit the file db.sql and re put it in the right place .. but :( :( it's still not work
I WANNA YOU PLEASE TO LISTEN THAT ALL PHP-NUKES ON THE SERVER HAVE THE SAME PROBLEM NOT FOR ONE SITE ABOUT 15 SITE HAVE THE PROBLEM
and i think the main problem at 86 line
(Fatal error: Cannot instantiate non-existent class: sql_db in /home/aclp/public_html/db/db.php on line 86
)

SO please help me .... :)
Thanks u

Darth
07-12-2004, 05:38 PM
Were these working installations before this happened?

If not, how is php-nuke installed? via fantastico etc ?

Burhan
07-13-2004, 03:16 AM
All these problems stem from the fact that the php script can't include mysql.php file.

Check the permissions on the file.

Imago
07-13-2004, 03:56 AM
There is no connection to the MySQL DB. Check your config.php and make sure you can access the database from your control panel.

And perhaps the first thing to be done, re-upload the entire /db directory in the Nuke root, paying special attention to the integrity of mysql.php

5need
07-13-2004, 05:11 AM
Dear All,
I have try to do all fixes but it's not done :(
The problem happen when i enter the internet then i found all websites not work so i enter the server then i found no apache at the server then i re-install it and all sites is working but the ALL PHP-NUKE NOT WORK IN THE SERVER :( ..
So please help me :(

EnigmaPrime
07-13-2004, 05:26 AM
5need, ask one of the above experienced admins if they would look at your files.
You could post the file in question here
(REMEMBER NOT TO POST PASSWORDS OR USERNAME IN A PUBLIC FORUM)
or give them access to the server DIRECTLY.

Dont give access to anyone who has less than 300 posts & always private message or email the admin directly.

This is just a suggestion, you should really read up on what the above admins are stating very clearly, your hosting clients who expect you to be professional.
If one of the admins gives you his/her time, concider it a wake up call on what you need to learn.

5need
07-13-2004, 06:23 AM
Thanks EnigmaPrime for your advice .. .
I try to copy all files & mysql to other server for php-nuke sites then it's work 1000% but it still not work in my server :(
REALLY BAD ! :(
GOD HELP ME

5need
07-18-2004, 06:02 PM
Hello ! :(

Dacsoft
07-18-2004, 09:52 PM
Have you checked to make sure other php scripts are working?
Have you checked to make sure mySql is working?
Is phpNuke installed in the public_html folder or a subfolder?
If phpNuke is installed in public_html, make sure that the file db.php is in the public_html/db folder and has permisisons of 644.
Make sure mysql.php is in the public_html/db folder and has permisisons of 644.
Make sure config.php is in the public_html folder and has permissions of 644.
All the files should be owned by the user name.
Is it broken for all users, just admin, or both?

good luck....

Dacsoft
07-18-2004, 10:15 PM
I just noticed that you said you reinstalled Apache. Did you recompile Apache or php? Did you figure out why it was not there?

bglkk
07-19-2004, 01:43 AM
5need, did you try posting this at a phpnuke-specific site like www.nukecops.com?

5need
07-23-2004, 05:00 PM
Dear All,
I have try to do all of that but this error still coming (Warning: main(): Failed opening 'db/mysql.php' for inclusion (include_path='/usr/local/lib/php:/usr/lib/php') in /home/jaacom/public_html/Nuke/db/db.php on line 53
)
The problem happing when i enter my server and i found no apache in it ,it's was deleted so i had re install it and then the Nuke stop work i don't know what to do ..

Dacsoft
07-23-2004, 05:25 PM
5need,

You probably need to find somebody you trust to login and help you solve the problem. There are a couple people here who can probably help with that issue.

There are a couple server management companies who handle one-time jobs. Check the forums and you will find some. Some that I know of are:
rack911.com (thelinuxguy here on wht)
fastservermanagement.com
cheetaweb.com
rfxnetworks.com
Acunett.com (don't know if they do 1 time work).

kosmo
07-23-2004, 06:34 PM
Sneed,

professional help here :D

Modify your php.ini file and add '.' to the "include path".
In detail: Open your php.ini file, find and change
/usr/local/lib/php:/usr/lib/php
to:
.:/usr/local/lib/php:/usr/lib/php

According to the error message, I think this will solve all your problems. After modification you will need to restart HTTPD.

kosmo

electron33
07-23-2004, 07:10 PM
Is that THE kosmo?

If yes, what are you doing here man? Don't you have some 100 people on your own forum to help?

Good to see you here ;-)

kosmo
07-23-2004, 07:20 PM
I was just looking to relax a little, enough to do anyway ;)

5need
07-23-2004, 07:27 PM
Hello ,
Thanks you to all and the spical thanks to kosmo
Man Im really don't know how to thanks you the problem has been fixed !!!!! thanks you too much

electron33
07-23-2004, 07:29 PM
And that's the way you relax.
Why doesn't that surprise me.

I agree with you on 5need's problem. I think the little dot in the path should do it.

RaviSharma
07-24-2004, 12:23 AM
delete