php and mySql

php and mySql

am 09.04.2008 18:06:19 von David Kingsly

I get an error message while trying to follow these procedures:
http://www.howtoforge.com/intrusion-...on-ubuntu-7.10
Here is the error:
Fatal error: Call to undefined function mysql_connect() in
/var/www/adodb5/drivers/adodb-mysql.inc.php on line 363
Here is the url I am trying to access:
http://my.ip.address/web/base-1.3.9/...p?action=check ( ofcourse I removed
my ip before pasting here )
Is there any logs I can look at to get more information about the issue?
Thanks
__________________

Re: php and mySql

am 09.04.2008 18:12:37 von Pat Willener

> I get an error message while trying to follow these procedures:
> http://www.howtoforge.com/intrusion-...on-ubuntu-7.10
> Here is the error:
> Fatal error: Call to undefined function mysql_connect() in
> /var/www/adodb5/drivers/adodb-mysql.inc.php on line 363
> Here is the url I am trying to access:
> http://my.ip.address/web/base-1.3.9/...p?action=check ( ofcourse I
> removed my ip before pasting here )
> Is there any logs I can look at to get more information about the
> issue? Thanks
> __________________


--
--
How to Post to more than one group:
http://en.wikipedia.org/wiki/Crossposting

Re: php and mySql

am 09.04.2008 18:58:46 von Jerry Stuckle

Twayne wrote:
>> I get an error message while trying to follow these procedures:
>> http://www.howtoforge.com/intrusion-...on-ubuntu-7.10
>> Here is the error:
>> Fatal error: Call to undefined function mysql_connect() in
>> /var/www/adodb5/drivers/adodb-mysql.inc.php on line 363
>> Here is the url I am trying to access:
>> http://my.ip.address/web/base-1.3.9/...p?action=check ( ofcourse I
>> removed my ip before pasting here )
>> Is there any logs I can look at to get more information about the
>> issue? Thanks
>> __________________
>
>

You don't have the mysql extension loaded. Check your php.ini file and
remove the # from the line (assuming Windows):

#extension=php_mysql.dll

You must also have the MySQL client dll available, i.e. in a directory
in your PATH environment variable.

P.S. Please learn to crosspost - not multipost.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: php and mySql

am 09.04.2008 21:41:53 von Pat Willener

> Twayne wrote:
>>> I get an error message while trying to follow these procedures:
>>> http://www.howtoforge.com/intrusion-...on-ubuntu-7.10
>>> Here is the error:
>>> Fatal error: Call to undefined function mysql_connect() in
>>> /var/www/adodb5/drivers/adodb-mysql.inc.php on line 363
>>> Here is the url I am trying to access:
>>> http://my.ip.address/web/base-1.3.9/...p?action=check ( ofcourse I
>>> removed my ip before pasting here )
>>> Is there any logs I can look at to get more information about the
>>> issue? Thanks
>>> __________________
>>
>>
>
> You don't have the mysql extension loaded. Check your php.ini file
> and remove the # from the line (assuming Windows):
>
> #extension=php_mysql.dll
>
> You must also have the MySQL client dll available, i.e. in a directory
> in your PATH environment variable.
>
> P.S. Please learn to crosspost - not multipost.

Minor detail, but the post is mis-attributed; it was not me asked that
question. Don't recall who the OP was now. If it's my fault in an
earlier thread, I apologize. Otherwise, FYI:
--
Regards,

Twayne

Open Office isn't just for wimps anymore;
OOo is a GREAT MS Office replacement
www.openoffice.org

Re: php and mySql

am 09.04.2008 23:36:58 von Jerry Stuckle

Twayne wrote:
>> Twayne wrote:
>>>> I get an error message while trying to follow these procedures:
>>>> http://www.howtoforge.com/intrusion-...on-ubuntu-7.10
>>>> Here is the error:
>>>> Fatal error: Call to undefined function mysql_connect() in
>>>> /var/www/adodb5/drivers/adodb-mysql.inc.php on line 363
>>>> Here is the url I am trying to access:
>>>> http://my.ip.address/web/base-1.3.9/...p?action=check ( ofcourse I
>>>> removed my ip before pasting here )
>>>> Is there any logs I can look at to get more information about the
>>>> issue? Thanks
>>>> __________________
>>>
>> You don't have the mysql extension loaded. Check your php.ini file
>> and remove the # from the line (assuming Windows):
>>
>> #extension=php_mysql.dll
>>
>> You must also have the MySQL client dll available, i.e. in a directory
>> in your PATH environment variable.
>>
>> P.S. Please learn to crosspost - not multipost.
>
> Minor detail, but the post is mis-attributed; it was not me asked that
> question. Don't recall who the OP was now. If it's my fault in an
> earlier thread, I apologize. Otherwise, FYI:

Sorry, my fault. I read the entire thread (both posts) before posting,
just to ensure I wasn't duplicating effort. But then I didn't go back
and reply to the original op.


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: php and mySql

am 10.04.2008 00:15:38 von David Kingsly

I won't multipost again. Thanks for the response. You are correct regarding
the extensions location. I found the location, and updated the php.ini file
with the right location. But it is still giving the same error. I am using
Ubuntu btw. In my php.ini file I have two extesions call mysql.so and gd.so.
These files were in different directory I moved a copy to a directory under
php and updated my php.ini file. But it is still giving the same message.
I also restarted apache2, but same thing. Is there any logs that can
provide more information about the issue? Any other troubleshooting
techniques I can use?

Regards-
Davi
"Jerry Stuckle" wrote in message
news:u62dnWetM9knaWHanZ2dnUVZ_tWtnZ2d@comcast.com...
> Twayne wrote:
>>> I get an error message while trying to follow these procedures:
>>> http://www.howtoforge.com/intrusion-...on-ubuntu-7.10
>>> Here is the error:
>>> Fatal error: Call to undefined function mysql_connect() in
>>> /var/www/adodb5/drivers/adodb-mysql.inc.php on line 363
>>> Here is the url I am trying to access:
>>> http://my.ip.address/web/base-1.3.9/...p?action=check ( ofcourse I
>>> removed my ip before pasting here )
>>> Is there any logs I can look at to get more information about the
>>> issue? Thanks
>>> __________________
>>
>>
>
> You don't have the mysql extension loaded. Check your php.ini file and
> remove the # from the line (assuming Windows):
>
> #extension=php_mysql.dll
>
> You must also have the MySQL client dll available, i.e. in a directory in
> your PATH environment variable.
>
> P.S. Please learn to crosspost - not multipost.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================
>

Re: php and mySql

am 10.04.2008 05:06:21 von Jerry Stuckle

David Kingsly wrote:
> I won't multipost again. Thanks for the response. You are correct regarding
> the extensions location. I found the location, and updated the php.ini file
> with the right location. But it is still giving the same error. I am using
> Ubuntu btw. In my php.ini file I have two extesions call mysql.so and gd.so.
> These files were in different directory I moved a copy to a directory under
> php and updated my php.ini file. But it is still giving the same message.
> I also restarted apache2, but same thing. Is there any logs that can
> provide more information about the issue? Any other troubleshooting
> techniques I can use?
>
> Regards-
> Davi
> "Jerry Stuckle" wrote in message
> news:u62dnWetM9knaWHanZ2dnUVZ_tWtnZ2d@comcast.com...
>> Twayne wrote:
>>>> I get an error message while trying to follow these procedures:
>>>> http://www.howtoforge.com/intrusion-...on-ubuntu-7.10
>>>> Here is the error:
>>>> Fatal error: Call to undefined function mysql_connect() in
>>>> /var/www/adodb5/drivers/adodb-mysql.inc.php on line 363
>>>> Here is the url I am trying to access:
>>>> http://my.ip.address/web/base-1.3.9/...p?action=check ( ofcourse I
>>>> removed my ip before pasting here )
>>>> Is there any logs I can look at to get more information about the
>>>> issue? Thanks
>>>> __________________
>>>
>> You don't have the mysql extension loaded. Check your php.ini file and
>> remove the # from the line (assuming Windows):
>>
>> #extension=php_mysql.dll
>>
>> You must also have the MySQL client dll available, i.e. in a directory in
>> your PATH environment variable.
>>
>> P.S. Please learn to crosspost - not multipost.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstucklex@attglobal.net
>> ==================
>>
>
>
>

Ensure you have the MySQL client installed, and the libraries are
available.

Also, ensure you're editing the correct php.ini file (use phpinfo() to
see what file it is actually using).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: php and mySql

am 10.04.2008 13:49:37 von David Kingsly

Here is what I did: I used find utility to look for all php.ini files in my
file system. I found two of them, and I updated both. I restarted apache2
after every update, and tested the application. Did not work.
"Jerry Stuckle" wrote in message
news:-K2dnVGAcvW9HmDanZ2dnUVZ_r_inZ2d@comcast.com...
> David Kingsly wrote:
>> I won't multipost again. Thanks for the response. You are correct
>> regarding the extensions location. I found the location, and updated the
>> php.ini file with the right location. But it is still giving the same
>> error. I am using Ubuntu btw. In my php.ini file I have two extesions
>> call mysql.so and gd.so. These files were in different directory I moved
>> a copy to a directory under php and updated my php.ini file. But it is
>> still giving the same message. I also restarted apache2, but same thing.
>> Is there any logs that can provide more information about the issue? Any
>> other troubleshooting techniques I can use?
>>
>> Regards-
>> Davi
>> "Jerry Stuckle" wrote in message
>> news:u62dnWetM9knaWHanZ2dnUVZ_tWtnZ2d@comcast.com...
>>> Twayne wrote:
>>>>> I get an error message while trying to follow these procedures:
>>>>> http://www.howtoforge.com/intrusion-...on-ubuntu-7.10
>>>>> Here is the error:
>>>>> Fatal error: Call to undefined function mysql_connect() in
>>>>> /var/www/adodb5/drivers/adodb-mysql.inc.php on line 363
>>>>> Here is the url I am trying to access:
>>>>> http://my.ip.address/web/base-1.3.9/...p?action=check ( ofcourse I
>>>>> removed my ip before pasting here )
>>>>> Is there any logs I can look at to get more information about the
>>>>> issue? Thanks
>>>>> __________________
>>>>
>>> You don't have the mysql extension loaded. Check your php.ini file and
>>> remove the # from the line (assuming Windows):
>>>
>>> #extension=php_mysql.dll
>>>
>>> You must also have the MySQL client dll available, i.e. in a directory
>>> in your PATH environment variable.
>>>
>>> P.S. Please learn to crosspost - not multipost.
>>>
>>> --
>>> ==================
>>> Remove the "x" from my email address
>>> Jerry Stuckle
>>> JDS Computer Training Corp.
>>> jstucklex@attglobal.net
>>> ==================
>>>
>>
>>
>>
>
> Ensure you have the MySQL client installed, and the libraries are
> available.
>
> Also, ensure you're editing the correct php.ini file (use phpinfo() to see
> what file it is actually using).
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstucklex@attglobal.net
> ==================
>

Re: php and mySql

am 10.04.2008 23:26:44 von Jerry Stuckle

David Kingsly wrote:
> "Jerry Stuckle" wrote in message
> news:-K2dnVGAcvW9HmDanZ2dnUVZ_r_inZ2d@comcast.com...
>> David Kingsly wrote:
>>> I won't multipost again. Thanks for the response. You are correct
>>> regarding the extensions location. I found the location, and updated the
>>> php.ini file with the right location. But it is still giving the same
>>> error. I am using Ubuntu btw. In my php.ini file I have two extesions
>>> call mysql.so and gd.so. These files were in different directory I moved
>>> a copy to a directory under php and updated my php.ini file. But it is
>>> still giving the same message. I also restarted apache2, but same thing.
>>> Is there any logs that can provide more information about the issue? Any
>>> other troubleshooting techniques I can use?
>>>
>>> Regards-
>>> Davi
>>> "Jerry Stuckle" wrote in message
>>> news:u62dnWetM9knaWHanZ2dnUVZ_tWtnZ2d@comcast.com...
>>>> Twayne wrote:
>>>>>> I get an error message while trying to follow these procedures:
>>>>>> http://www.howtoforge.com/intrusion-...on-ubuntu-7.10
>>>>>> Here is the error:
>>>>>> Fatal error: Call to undefined function mysql_connect() in
>>>>>> /var/www/adodb5/drivers/adodb-mysql.inc.php on line 363
>>>>>> Here is the url I am trying to access:
>>>>>> http://my.ip.address/web/base-1.3.9/...p?action=check ( ofcourse I
>>>>>> removed my ip before pasting here )
>>>>>> Is there any logs I can look at to get more information about the
>>>>>> issue? Thanks
>>>>>> __________________
>>>> You don't have the mysql extension loaded. Check your php.ini file and
>>>> remove the # from the line (assuming Windows):
>>>>
>>>> #extension=php_mysql.dll
>>>>
>>>> You must also have the MySQL client dll available, i.e. in a directory
>>>> in your PATH environment variable.
>>>>
>>>> P.S. Please learn to crosspost - not multipost.
>>>>
>>>> --
>>>> ==================
>>>> Remove the "x" from my email address
>>>> Jerry Stuckle
>>>> JDS Computer Training Corp.
>>>> jstucklex@attglobal.net
>>>> ==================
>>>>
>>>
>>>
>> Ensure you have the MySQL client installed, and the libraries are
>> available.
>>
>> Also, ensure you're editing the correct php.ini file (use phpinfo() to see
>> what file it is actually using).
>>
> Here is what I did: I used find utility to look for all php.ini files
> in my file system. I found two of them, and I updated both. I
> restarted apache2 after every update, and tested the application. Did
> not work.

(Top posting fixed)

But what php.ini file is it actually using? phpinfo() will tell you
that; it may be a default one and not either of the ones you changed.

But again - do you have the MySQL client installed, and are the client
libraries available, i.e. in your PATH statement? PHP can't access
MySQL without these libraries, and will not load the extension.

P.S. This group uses bottom posting (like this) or interleaved posting
(where responses appear in the message), but not top posting. Thanks.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: php and mySql

am 10.04.2008 23:28:57 von Jerry Stuckle

Jerry Stuckle wrote:
> David Kingsly wrote:
>> "Jerry Stuckle" wrote in message
>> news:-K2dnVGAcvW9HmDanZ2dnUVZ_r_inZ2d@comcast.com...
>>> David Kingsly wrote:
>>>> I won't multipost again. Thanks for the response. You are correct
>>>> regarding the extensions location. I found the location, and
>>>> updated the php.ini file with the right location. But it is still
>>>> giving the same error. I am using Ubuntu btw. In my php.ini file I
>>>> have two extesions call mysql.so and gd.so. These files were in
>>>> different directory I moved a copy to a directory under php and
>>>> updated my php.ini file. But it is still giving the same message. I
>>>> also restarted apache2, but same thing. Is there any logs that can
>>>> provide more information about the issue? Any other troubleshooting
>>>> techniques I can use?
>>>>
>>>> Regards-
>>>> Davi
>>>> "Jerry Stuckle" wrote in message
>>>> news:u62dnWetM9knaWHanZ2dnUVZ_tWtnZ2d@comcast.com...
>>>>> Twayne wrote:
>>>>>>> I get an error message while trying to follow these procedures:
>>>>>>> http://www.howtoforge.com/intrusion-...on-ubuntu-7.10
>>>>>>> Here is the error:
>>>>>>> Fatal error: Call to undefined function mysql_connect() in
>>>>>>> /var/www/adodb5/drivers/adodb-mysql.inc.php on line 363
>>>>>>> Here is the url I am trying to access:
>>>>>>> http://my.ip.address/web/base-1.3.9/...p?action=check ( ofcourse I
>>>>>>> removed my ip before pasting here )
>>>>>>> Is there any logs I can look at to get more information about the
>>>>>>> issue? Thanks
>>>>>>> __________________
>>>>> You don't have the mysql extension loaded. Check your php.ini file
>>>>> and remove the # from the line (assuming Windows):
>>>>>
>>>>> #extension=php_mysql.dll
>>>>>
>>>>> You must also have the MySQL client dll available, i.e. in a
>>>>> directory in your PATH environment variable.
>>>>>
>>>>> P.S. Please learn to crosspost - not multipost.
>>>>>
>>>>> --
>>>>> ==================
>>>>> Remove the "x" from my email address
>>>>> Jerry Stuckle
>>>>> JDS Computer Training Corp.
>>>>> jstucklex@attglobal.net
>>>>> ==================
>>>>>
>>>>
>>>>
>>> Ensure you have the MySQL client installed, and the libraries are
>>> available.
>>>
>>> Also, ensure you're editing the correct php.ini file (use phpinfo()
>>> to see what file it is actually using).
>>>
> > Here is what I did: I used find utility to look for all php.ini files
> > in my file system. I found two of them, and I updated both. I
> > restarted apache2 after every update, and tested the application. Did
> > not work.
>
> (Top posting fixed)
>
> But what php.ini file is it actually using? phpinfo() will tell you
> that; it may be a default one and not either of the ones you changed.
>
> But again - do you have the MySQL client installed, and are the client
> libraries available, i.e. in your PATH statement? PHP can't access
> MySQL without these libraries, and will not load the extension.
>
> P.S. This group uses bottom posting (like this) or interleaved posting
> (where responses appear in the message), but not top posting. Thanks.
>

Correct that - you're on Linux. So the MySQK client libs must be in
your library path and must have the correct permissions so they can be
accessed by your web server user.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================