-
The mysql and php4 connection bug in the php.ini
This will make you apply HeadOn to your forehead.
When making a connection with mysql and php4 one of the configurations is to uncomment
the extension in the php4.ini file.
However, the php extension has a typo in this file.
/etc/php4/apache2/php.ini
Under the Dynamic Extensions section it reads:
Code:
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename.extension
;
; For example, on Windows:
;
; extension=msql.dll
;
; ... or under UNIX:
;
; extension=msql.so
;
; Note that it should be the name of the module only; no directory information
; needs to go here. Specify the location of the extension with the
; extension_dir directive above.
;
; Example lines:
;
;extension=mysql.so
;extension=gd.so
The first extension for UNIX reads:
; extension=msql.so
It should read
; extension=mysql.so [ It's missing a y ]
The second one is ok
;extension=mysql.so
Either uncomment the second one or correct and uncomment the first for mysql connection to php.
So far I've found this typo also in other Knoppix versions and other php.ini's.
The Windows geekers ironically have it worse they have to deal with msql.
note: Don't make any white space between the equals sign. Also PHP code has something similar too.
The other config is to uncomment the 'extension_dir ='
then add '/usr/lib/php4/extensions'
Save and exit and make a extensions directory
# mkdir /usr/lib/php4/extensions
locate mysql.so then copy the path of mysql.so to /usr/lib/php4/extensions/
restart apache2
# apache2 -k restart or apache2ctl restart
# /etc/init.d/mysql start
<Enter>
# mysql -u root
---
Addendum:
The extension msql.so is from mini SQL(mSQL).
However, use mysql.so and MySQL
---
Addendum2:
Since Oracle is gobbling up things and CD versions after 501 don't have Mysql-server it might be wise to download it and save it somewhere.
Similar Threads
-
By kjackson7_93 in forum General Support
Replies: 12
Last Post: 02-03-2007, 11:39 PM
-
By markleong in forum General Support
Replies: 3
Last Post: 11-20-2004, 04:52 PM
-
By jselman in forum General Support
Replies: 2
Last Post: 12-05-2003, 12:52 AM
-
By hooji in forum Customising & Remastering
Replies: 0
Last Post: 11-25-2003, 03:22 PM
-
By Coume in forum General Support
Replies: 5
Last Post: 08-06-2003, 06:42 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Windows XP, Vista, 8.1, Linux Knoppix, Office XP, (6 CDS)
$10.00

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit
$19.99

KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED
$11.99

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive
$5.99

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick
$20.85

Knoppix NSM 1.2
$8.00

VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)
$7.57

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick
$21.42

Hamshack Live DVD-ROM
$7.00

Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006
$33.98