aaea73 Posted August 27, 2007 Report Share Posted August 27, 2007 I've downloaded the uniform server version 3.5. It works great on my xp home edition OS. Now I wanted to use the php 4 plugin. Since it is my understanding that I can't have 2 versions of php running on the same machine, I've downloaded the php4 plugin, deleted all the files and folders under my already installed C:\Uniform Server\udrive\usr\local\php folder, copied the exracted files and folders from the downloaded plugin into that same folder (i.e, C:\Uniform Server\udrive\usr\local\php). I've also changed the LoadModule php5_module "/usr/local/php/php5apache2.dll" line in the httpd.conf file located in C:\Uniform Server\udrive\usr\local\apache2\conf into LoadModule php4_module "/usr/local/php/php4apache2.dll". Now, when I access the phpinfo() from the admin panel I get the information about php4 installed. The problem is phpMyAdmin gives me the following error"Couldn't load the iconv or recode extension needed for charset conversion. Either configure PHP to enable these extensions or disable charset conversion in phpMyAdmin." I don't have any installed php on my machine before. just the Uniform server and the downloaded extracted files of Apollo 3.5 and php4.x.x, any suggestions? Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted August 27, 2007 Report Share Posted August 27, 2007 Go to php.net and download that version of the 4.x plugin. Look for the php_iconv.dll extension and then edit the php.ini to enable it... or just goto the config.inc.php in the /home/admin/www/phpMyAdmin folder... edit it, and look for where it mentions charset conversion. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
aaea73 Posted August 27, 2007 Author Report Share Posted August 27, 2007 Go to php.net and download that version of the 4.x plugin. Look for the php_iconv.dll extension and then edit the php.ini to enable it... or just goto the config.inc.php in the /home/admin/www/phpMyAdmin folder... edit it, and look for where it mentions charset conversion. Would you elaborate more on the edits I need to apply to the config.inc.php in the /home/admin/www/phpMyAdmin folder? Thanks Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted August 27, 2007 Report Share Posted August 27, 2007 I really cant right now cause i dont have a copy with me and cant one at the moment, so i dont know what setting it would be but can you copy and paste the whole thing to the Pastebin: http://www.uniformserver.com/pastebin Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
aaea73 Posted August 27, 2007 Author Report Share Posted August 27, 2007 I have posted the config.inc.php to the http://www.uniformserver.com/pastebin. It would be graet if you can show what edits need to be made. Thanks Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted August 28, 2007 Report Share Posted August 28, 2007 When y make a post to the pastebin.. you give us the entire link.. not the link to the main pastebin.... or we wont know where it is as it gets spammed... you have to give us the link to your post??? Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
aaea73 Posted August 28, 2007 Author Report Share Posted August 28, 2007 The link is http://www.uniformserver.com/pastebin/43139 Thanks Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted August 28, 2007 Report Share Posted August 28, 2007 Sorry.... i did not see it but i think thats due to the spamming I have moved the whole pastebin to a new directory, http://www.uniformserver.com/bin/ Post it there and let me know. Thanks. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
aaea73 Posted August 30, 2007 Author Report Share Posted August 30, 2007 I posted it again on http://www.uniformserver.com/bin/43206 Thanks Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted August 30, 2007 Report Share Posted August 30, 2007 Here you go: http://www.uniformserver.com/bin/43207 Copy it to the file, and it should work. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
aaea73 Posted August 31, 2007 Author Report Share Posted August 31, 2007 I used your code to replace the code in the Config.inc.php that exists under C:\Uniform Server\udrive\home\admin\www\phpMyAdmin. I still got the same "Couldn't load the iconv or recode extension needed for charset conversion. Either configure PHP to enable these extensions or disable charset conversion in phpMyAdmin." error. Help! Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted September 2, 2007 Report Share Posted September 2, 2007 Iconv is not supported in PHP 4, its a PHP 5 extension thats being used by new versions of PHPMyAdmin. It seems this version has a bug or something if we cant get it to turn that model off and not to allow it to use it.... Did you turn the server off before trying this step? Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
rado Posted February 26, 2008 Report Share Posted February 26, 2008 I've downloaded the uniform server version 3.5. It works great on my xp home edition OS. Now I wanted to use the php 4 plugin. Since it is my understanding that I can't have 2 versions of php running on the same machine, I've downloaded the php4 plugin, deleted all the files and folders under my already installed C:\Uniform Server\udrive\usr\local\php folder, copied the exracted files and folders from the downloaded plugin into that same folder (i.e, C:\Uniform Server\udrive\usr\local\php). I've also changed the LoadModule php5_module "/usr/local/php/php5apache2.dll" line in the httpd.conf file located in C:\Uniform Server\udrive\usr\local\apache2\conf into LoadModule php4_module "/usr/local/php/php4apache2.dll". Now, when I access the phpinfo() from the admin panel I get the information about php4 installed. The problem is phpMyAdmin gives me the following error"Couldn't load the iconv or recode extension needed for charset conversion. Either configure PHP to enable these extensions or disable charset conversion in phpMyAdmin." I don't have any installed php on my machine before. just the Uniform server and the downloaded extracted files of Apollo 3.5 and php4.x.x, any suggestions? Hello, I am stuck in the same situation. I tried enabling the iconv extension (php.ini; dlls in place with paths etc.), but the message was the same again. I tried to disable the charset conversion in phpMyAdmin configuration, but it didn't work as well. Actually I tried everything I found on this forum, but it doesn't get any better. And... yes - I do turn off and on the server on every try. Please, let me know if there is a working way to get rid of this error. Rado Quote Link to comment Share on other sites More sharing options...
Ric Posted February 27, 2008 Report Share Posted February 27, 2008 How to downgrade PHP 5 to PHP 4.4.8 for 3.5-Apollo A) Download full version of PHP 4.4.81) Create a new folder named c:\php4482) Download and save the following file into the above folder: a) Goto: http://www.php.net/downloads.php b ) Scroll down the page to: Windows Binaries c) Download this file: PHP 4.4.8 zip package [8,434Kb] - 12 Feb 2008 md5: 09ffff4b1a54bbadb8fee6acd85a2c1f3) Right click on file and select Extract All, click NEXT(no need to change path), click NEXT again. B ) Install a clean version of Uniform Server 3.5-Apollo on C drive1) Start and stop the servers. Make sure they work and train any security software.2) Backup php.ini - Install PHP a) Copy php.ini from C:\Uniform Server\udrive\usr\local\php to C:\Uniform Server b ) Delete the contents of folder C:\Uniform Server\udrive\usr\local\php c) Copy the contents of folder C:\php448\php-4.4.8-Win32\php-4.4.8-Win32 To folder: C:\Uniform Server\udrive\usr\local\php d) Copy php4apache2.dll from: C:\Uniform Server\udrive\usr\local\php\sapi To folder: C:\Uniform Server\udrive\usr\local\php e) Copy iconv.dll from: C:\Uniform Server\udrive\usr\local\php\dlls To folder: C:\Uniform Server\udrive\usr\local\php f) Copy libmysql.dll from: C:\Uniform Server\udrive\usr\local\php\dlls To folder: C:\Uniform Server\udrive\usr\local\php g) Restore php.ini: Copy php.ini from C:\Uniform Server to C:\Uniform Server\udrive\usr\local\php C) Edit php.ini1) Locate the line: ;extension=php_iconv.dll and change to extension=php_iconv.dll2) Locate the line: extension=php_mysql.dll and change to ;extension=php_mysql.dll3) Locate the line: extension=php_mysqli.dll and change to ;extension=php_mysqli.dll4) Locate the line: extension=php_pdo.dll and change to ;extension=php_pdo.dll5) Locate the line: extension=php_sqlite.dll and change to ;extension=php_sqlite.dll D) Edit Apache httpd.conf located in folder: C:\Uniform Server\udrive\usr\local\apache2\conf1) Locate the line: LoadModule php5_module "/usr/local/php/php5apache2.dll" Change to: LoadModule php4_module "/usr/local/php/php4apache2.dll" E) Edit the phpMyAdmin file: config.inc.php located in folder: C:\Uniform Server\udrive\home\admin\www\phpMyAdmin1) Locate the line : $cfg['Servers'][$i]['extension'] = 'mysqli'; Change to : $cfg['Servers'][$i]['extension'] = 'mysql'; F) Edit my-small Located in folder: C:\Uniform Server\udrive\usr\local\mysql\bin1) Under this line port=3306 add the following two new lines: #Use old password encryption method (needed for 4.0 and older clients). old_passwords Restart the servers; from apanel check that PHP 4.4.8 info is displayed.Click on phpMyAdmin expected error displayed is: #1251 - mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client” PHP4 uses short password hashes as opposed to PHP5’s long one’s. Anyway it shows PHP4 is working and phpMyAdmin. To correct the above do not turn the servers off and follow these instructions: G) Open a command prompt (start > run > type cmd and press OK)H) Type the following and press return at the end of every line: W:Cd usr\local\mysql\binmysql -u root –p I) When requested enter the password rootJ) You are now at the MySQL command prompt. Type the following and press return: SET PASSWORD FOR 'root'@'localhost' =OLD_PASSWORD('root'); Query OK indicates you have created a short password hash. Close the command prompt window (top right cross).Restart the servers; check you can access MySQL using phpMyAdmin. K) From apanel run phpMyBackupPro, a) Login as root root, b ) Select the configuration tab, c) Change the MySQL password to root d) Finally click Save Data Phew! That’s it All the bestRic Quote Link to comment Share on other sites More sharing options...
rado Posted February 28, 2008 Report Share Posted February 28, 2008 Thank you very much, Ric. That was a really good and helpful one. It actually worked. I'm not sure if I had to, but I made some more changes, as I had the same errors whatever I tried to do: 1. I inserted "old_passwords=1" in the "my-small" instead of "old_passwords" alone. (don't know why) 2. And the other in the "config.inc.php":$cfg['AllowAnywhereRecoding'] = FALSE; //$cfg['RecodingEngine'] = 'auto';//$cfg['IconvExtraParams'] = ''; 3. I cleared the temp files of the IE... Maybe this was the problem and my added changes were not needed. Thanks again,Rado Quote Link to comment Share on other sites More sharing options...
Ric Posted February 28, 2008 Report Share Posted February 28, 2008 Excellent glad its working and thanks for the feedback: 1) My fault it should have been "old_passwords=1" 2) Not sure about this one, the manual states: $cfg['AllowAnywhereRecoding'] booleanAllow character set recoding of MySQL queries. You need recode or iconv support (compiled in or module) in PHP to allow MySQL queries recoding and used language file must have it enabled (by default only these which are in Unicode, just to avoid losing some characters). Setting this to TRUE also activates a pull-down menu in the Export page, to choose the character set when exporting a file. It looks as if setting it to “False” should not be an issue however bear it in mind if you do have problems. All the bestRic Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.