Date: Sun, 4 Jul 2004 15:38:28 -0500 From: "Andras Kende" <andras@kende.com> To: "'Graham Bentley'" <gbentley@uk2.net>, <questions@freebsd.org> Subject: RE: Postnuke install probs - any advice appreciated. Message-ID: <20040704203841.9CEE743D1F@mx1.FreeBSD.org> In-Reply-To: <3.0.6.32.20040704192950.007b3c60@mail.uk2.net>
next in thread | previous in thread | raw e-mail | index | archive | help
-----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Graham Bentley Sent: Sunday, July 04, 2004 1:30 PM To: questions@freebsd.org Subject: Postnuke install probs - any advice appreciated. Hello All, I have 5.2.1 freshly installed and updated / built. I have installed Postnuke (Rogue) using the ports system. I have a running Apache which displays a PHP test page fine. I have a running MySQL server in which I have created a root password for both localhost and the host/domain. I have created a database called rogue and a user called rogue and a password for rogue. I have imported the Rogue.sql schema e.g. 3bsd# mysql -u rogue -p rogue < /usr/local/www/data-dist/postnuke /sql/rogue.sql When I come to run webconfig install.php I only get so far and then get a blank page. I enter language, the database name and user and password. I click proceed and what comes up next is a mostly blank page with red text the words "No database made" If I tick the option to create the database I get a completely blank page. I have also noticed that if I leave all these fields balnk I get exactly the same results. Here is a sample from my httpd-error log :- [error] PHP Warning: main(pnadodb/adodb.inc.php): failed to open stream: Permission denied in /usr/local/www/data-dist/postnuke/html/install.php on line 48 [error] PHP Fatal error: main(): Failed opening required 'pnadodb/adodb.inc.php' (include_path='.:/usr/local/share/pear') in /usr/local/www/data-dist/postnuke/ html/install.php on line 48 --- snip from install.php --- 48 require_once ("pnadodb/adodb.inc.php"); --- snip --- [error] PHP Fatal error: Call to undefined function: mysql_pconnect() in /usr/local/ www/data-dist/postnuke/html/install/newinstall.php on line 36 --- snip from newinstall.php ---- 30 *** This function creates the DB on new installs *** 31 function make_db($dbhost, $dbuname, $dbpass, $dbname, $prefix, $dbtype, $dbmake) 32 { 33 global $dbconn; 34 echo "<center><br><br>"; 35 if ($dbmake) { 36 mysql_pconnect($dbhost, $dbuname, $dbpass); --- snip --- [notice] Apache/1.3.31 (Unix) PHP/4.3.7 configured -- resuming normal operations [notice] Accept mutex: flock (Default: flock) [error] PHP Fatal error: Call to undefined function: mysql_connect() in /usr/local/www/ data-dist/postnuke/html/pnadodb/drivers/adodb-mysql.inc.php on line 108 --- snip from adodb-mysql.inc.php --- 108 $this->_connectionID = mysql_connect($argHostname,$argUsername, $argPassword); --- snip --- [error] PHP Fatal error: Call to undefined function: mysql_pconnect() in /usr/local/www/ data-dist/postnuke/html/install/newinstall.php on line 36 Wondering if calls to the database server are being denied or the DB server is just unavailable for some reason. Any help really appreciated. Thanks _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" Hello, On the phpinfo(); test page do you see the MySQL Support enabled ?? "PHP Fatal error: Call to undefined function: mysql_connect()" Andras Kende http://kende.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040704203841.9CEE743D1F>