install php error line 507
Posted: 02 September 2004 05:48 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  60
Joined  03-19-2004

Unzipped Expression 1.1 on server
set permissions, made mysql db
Run install, get this

install.php
Fatal error: Cannot instantiate non-existent class: db
in /home/steve/www/expression/install.php on line 507

error_log
/usr/libexec/ld-elf.so.1: /usr/local/lib/php/extensions/current/mysql.so:
Undefined symbol “_safe_emalloc”

Profile
 
 
Posted: 02 September 2004 08:25 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

The first error might be because the permissions for the /system/db/db.mysql.php file are incorrect OR the file may not exist.  I would check that first.

The second error is not EE related and there seems to be a problem with the MySQL extension/library for your copy of PHP.  You might want to contact your host.

 Signature 
Profile
 
 
Posted: 03 September 2004 02:21 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  60
Joined  03-19-2004

>> /system/db/db.mysql.php file are incorrect <<

What should it be?

Profile
 
 
Posted: 03 September 2004 08:10 AM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

Try 644 or 755 permissions.  If it still is having this problem send me an email referencing this thread and I can take a look at your server (and the install script) and see why it is failing at that point.

 Signature 
Profile
 
 
Posted: 05 September 2004 09:29 AM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  60
Joined  03-19-2004

Used 644 - works fine.  Thanks

Profile
 
 
Posted: 13 September 2004 12:50 PM   [ Ignore ]   [ # 5 ]  
Summer Student
Total Posts:  3
Joined  09-13-2004

I get the same error.  I think it has something to do with my connection to MySQL.  I am running everything from my own PC using Windows with IIS.  So, I don’t have any chmod commands to change permissions as you suggest.

I get teh following error during the ExpressionEngine install….
Notice: Use of undefined constant MYSQL_ASSOC - assumed ‘MYSQL_ASSOC’ in install.php on line 507

I checked the /system/db/db.mysql.php file to see what you guys were talking about and all it does is suggest I install ZendOptimizer so I went ahead and did that.

I am new to MySQL first install.  I have always used MSSQL.  But, I installed MySQL on the same machine and it seems to be working just fine.  I created a passoword for root and connect via the command prompt.

Now I am trying to configure ExpresionEngine because I assume I need it before configuring pMachine.  Because, when I went to install.php pMachine a lot of the pages would not even come up in the install script.  I could manually jump to each page and find some did have content though.  In the ExpressionEngine install.php script I can’t get the “Click here to install” button to work.  I get the line 507 error.

Database Settings
SQL Server Address
(usually ‘localhost’)  (localhost)
SQL Username       (root)
SQL Password       (mypassword)
SQL Database       (mysql)

running….
ZendOptimizer 5.2-Windows-i386
PHP 5.0.1
ActivePerl 5.8
MySQL 4.0
ODBC 3.51
IIS 5.1

oh and I just copied the folder contents in the zip file for ExpressionEngine 14 day trial into my Inetpub/wwwroot/mywebpage folder.  So I can access the install.php from IE using http:/localhost:8080/mywebpage/install.php

Any more info you need let me know, I tried to be thorough. wink  Any help would be much appreciated.

Profile
 
 
Posted: 13 September 2004 12:57 PM   [ Ignore ]   [ # 6 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

My guess is that while you have both PHP and MySQL installed, that PHP is not actually configured to use/connect with MySQL.

Here’s a very quick Google search that might help you out.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 13 September 2004 01:34 PM   [ Ignore ]   [ # 7 ]  
Summer Student
Total Posts:  3
Joined  09-13-2004

I thought I already had IIS all set up because I already run a PHP like forum on my web server which works with MSSQL.

Here is a simple PHP test script to connect to MySQL database…

<?php
$link
= mysql_connect('localhost', 'root', 'password');
if (!
$link) {
   
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_close($link);
?>

...and when this gave an error not even the Could not Connect message I knew I had something wrong.  So I started checking into IIS setup with PHP.
I found this webpage….
http://www.phpbuddy.com/sub_articles.php?other_articles=4

Now although I already had PHP extension I had it configured to use php-cgi.exe and not php.exe   Once I changed the extension to work with php.exe and retested my simple test.php script I got the Connected successfully message.

Now I get passed my line 507 error but I still get this page saying Zend Optimizer not installed even though I thought I already did install it.

Profile
 
 
Posted: 13 September 2004 02:13 PM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  3
Joined  09-13-2004

Well any rate I went on to install.php in the pm folder and installed pMachine and it is working now, thanks….

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64978 Total Logged-in Users: 21
Total Topics: 82016 Total Anonymous Users: 19
Total Replies: 440814 Total Guests: 192
Total Posts: 522830    
Members ( View Memberlist )