From owner-freebsd-questions@FreeBSD.ORG Sun Jul 4 20:38:42 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1AE3C16A4CE for ; Sun, 4 Jul 2004 20:38:42 +0000 (GMT) Received: from kende.com (ns1.kende.com [66.17.131.94]) by mx1.FreeBSD.org (Postfix) with SMTP id 9CEE743D1F for ; Sun, 4 Jul 2004 20:38:41 +0000 (GMT) (envelope-from andras@kende.com) Received: (qmail 23724 invoked by uid 0); 4 Jul 2004 20:38:49 -0000 Received: from unknown (HELO ak) (24.1.130.29) by ns1.kende.com with SMTP; 4 Jul 2004 20:38:49 -0000 From: "Andras Kende" To: "'Graham Bentley'" , Date: Sun, 4 Jul 2004 15:38:28 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <3.0.6.32.20040704192950.007b3c60@mail.uk2.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Thread-Index: AcRh9P0icVAVKhZPSySlRP0oqvUciAAEd1yA Message-Id: <20040704203841.9CEE743D1F@mx1.FreeBSD.org> Subject: RE: Postnuke install probs - any advice appreciated. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2004 20:38:42 -0000 -----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 "


"; 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