You should see something like this as result : We need to find the configuration of already installed version, so we can use it install the new version with the exact same configuration /opt/lampp/bin/php -info | grep "Configure Command" Sudo mv php-5.2.11 /usr/src/php-5.2 Step 3 / Finding configuration configure -enable-so -prefix=/opt/lamppÄownload PHP's source code from here and extract it in /usr/share Sudo apt-get install libcurl4-openssl-dev Step 1 / Compiling apache wget PHP depends on Apache, so i'm going to install the latest version of Apache as well This tutorial is written under Kubuntu(Debian based) and i will assume that LAMPP is installed in /opt/lampp which is the folder for manually installed softwares Xampp 1.7.2 comes with PHP 5.3.0 which is stil buggy so i'm going to install PHP 5.2.11 under XAMPP (I could recompile 5.3 RC2 but i don't want to recompile for every issue i find!) But the Linux version of this software does not support addons, so upgrading its modules or installing new ones is not possible without compiling,unfortunately XAMPP developers don't like to share the source code of XAMPP it self so you cannot build our own customized version, so i'm going to describe how to overcome this problem. But sometimes dependency issues and different versions may cause some trouble, this is where xampp comes in, XAMPP is a very useful piece of software for developers and regular users which allows installing a complete standalone Web Server in few minutes. In Linux preparing a complete webserver is quite easy and it does not require much time. I also recommend using Virtual Machines like VirtualBox for this kind of purposes if you like to keep your system clean. Open the phpinfo.php file (http: //localhost/phpinfo.This article is not finished yet and it might not work for you at all, if you're still interested you can subscribe to its rss so you will be notified whenever i update it. Once you have edited the php.ini file, simply restart Apache for the changes to take effect, as shown below: Remembering that the name of the DLL's varies according to the version of PHP (71, 70, 54, etc.), Thread-safe (TS or NTS) and architecture (X86 or X64) and must ALWAYS be the same as the name of the files you downloaded and copied it to the php \ ext directory. ini looking for Loaded Configuration FileĪfter copying all files, edit the php.ini file from your installation and add the following records: If you do not know the path of your configuration file (the default path is C: \ xampp \ php \ php.ini), in the phpinfo () screen shown above, you can identify the correct path of your php file. php \ ext on your Xampp installation (default directory is C: \ xampp \ php \ ext)
0 Comments
Leave a Reply. |