-
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

Vintage Iomega Bernoulli 90 PRO 90MB SCSI Removable Disk Drive + Extras
$124.99

🔥 RARE VINTAGE HP 2112A 21MX M-SERIES 16-BIT MINICOMPUTER HP
$299.99

Lot of 2 Vintage Plextor PX-43CS SCSI CD-ROM Caddy Drives + 4 Caddies Used
$55.99

🔥 RARE VINTAGE HP 2113A 21MX 1000 E-SERIES MINICOMPUTER CHASSIS BACKPLANE
$249.00

Original Vintage Old Style STANDARD Black CD Jewel Case (Heavy Duty) 90g Lot
$316.95

Rare Vintage Commodore Solid State Red LED Calculator 897D w/ box & manual
$49.99

Epson LQ-570+ Vintage Dot Matrix Printer Tested w/Cable - READ
$100.00

RAM-Tester for vintage RAM, 4816, 4164, 41256, 514402, and more - USA Seller
$35.00

Vintage Microsoft Visual Studio.NET Professional Software suite Version 2002 New
$82.00

Vintage Jetway J-620BF Socket 370 Celeron AT Motherboard SiS 620 Brand New
$75.00