sparkle
04-23-2002, 06:25 AM
http://66.250.24.81:81/index.php
mysql is up and running, database installed, webmin can access the database from port80 on apache but the webcp will not connect to the database
Any ideas people....if i get this working then a install doc is on the way :)
smoats
04-23-2002, 12:50 PM
Does the password in config.inc.php for the database match the one you give mysql?
Sam
sparkle
04-23-2002, 01:13 PM
yes everything matches up.
Félix C.Courtemanche
04-25-2002, 02:51 AM
Try this simple script:
(create in CP_BASEDIR/web/test.php)
<?
include("config.inc.php");
@mysql_connect($cfg['dbhost'], $cfg['dbuser'], $cfg['dbpass'])
OR die("Error: Could not connect to database server");
?>
If you cannot connect and that your db user, pass (and dbhost is 'localhost') are correct, it means you have a problem with your php <=> mysql installation. Try recompiling the PHP apache module.
sparkle
04-25-2002, 03:49 AM
yer hmmm couldnt connect. so theres a problem there. Anyway....my host whos support and availability has been excellent trying to get through the install of this (prioritycolocation-still awake at 5am in the morning to have a go and see what they can do for you!) has managed to get webcp 0.5pre installed!
so they are going to handle the install for me.
smoats
04-29-2002, 04:35 PM
What needs done is an installation howto or better an install script. I'm trying to package webcp into a redhat RPM now but I'm haveing some trouble with mysql. An sh script might be better, this
would let anyone take a stock RH machine and load
webcp on it. This is a GREAT! program and if I get it debuged to a point where my poor code isn't to embarrasing ;) I'll post it somewhere for everyone.
Sam
sparkle
04-30-2002, 06:30 AM
my thoughts exactly and i would help in the creation of installation script or instructions if i can get to the end of my install.
Felix - ran your test.php script and i get a blank screen through my web browser. however index.php fails to load. setup.php can be viewed fine.
so i guess as the test.php is loading fine then there is a problem with the index.php file?
Félix C.Courtemanche
05-02-2002, 02:24 AM
it all depends on how you set it up... join us on the forums at http://webcp.can-host.com to discuss this further since here is not the place.