|If you are interested in watercolor paintings you can click here|
Last Update: 11/12/2007
This is another version of the AS/400, iSeries, i5 open-source PASE software distribution.
If you click here, you will see the result of the php info (version 5.2.3 with a V5R4 box. Of course I anonymized this document.
WARNING : Of course there is no warranty on this software. However, to my knowledge there is no viruses or trojan horses in the software that I provide here. I also checked all the signatures and MD5SUM when they were provided by the web sites where I downloaded the source files. Naturally, if you follow what I show you in this page, you can also rebuild the distribution on your own machine. You will find the sources HERE. There is also a script which helped me to build this distribution.
There is only a 100 Mb file which contains everything. The file is called local-V5R4-3.1.tar.bz2. The MD5SUM signature a5966b2eb09d51e04da9470c72728257. You must first use the bunzip2 command on a PC (if you don't have it on your AS/400). Many freeware or commercial software can manage this kind of archive under windows. However, I advice you to use winrar or the latest beta version of 7zip (7zip version 4.27 or above. You will then have a tar archive that you can upload to your machine in binary mode with ftp for example. Afterwards you can untar it with the tar commande provide by the 5299PTL AS400 package.
I also downloaded the sources files from reliable sources which are :
This distro has some graphics capabilties such as the PHP bundled GD library. It is also compiled with the --enable-mbstring=all (multibytes support) and --enable-exif (to retrieve information of the header of JPEG pictures) options. NEW : also include the programming language Ruby/RoR and the mini database engine SQLiteThis archive will provide you with the following components :
Freetype-2.1.10 and jpeg-6b has been compiled with software found at the following web address http://www-03.ibm.com/servers/aix/products/aixos/linux/download.html . Libpng is coming from http://www.libpng.org/pub/png/libpng.html>.I followed the same principles to compile this 3 softwares as with e.g. libxml. I also used 1 binary software from the UCLA because I couldn't successfully compile the XPM software with either my gcc-4.0.1 or UCLA gcc-3.3.6.
The above software has been compiled in the order they are displayed except for the ones above. I'm providing the different variable which were used for each software in the following compilation script. That you can see here.
A few notes :
I encounter a few glithes :
I didn't find a way to compile gettext version, that's why I downloaded it from the UCLA website.
A few installation notes :
I assumed that you don't have a /QOpenSys/usr/local directory.
You must installed the iSeries Tools for Developers (5799PTL) software program. You can find this software here
You must register with IBM to download the software which is free and the software is among the trials and betas. I guess it is better if you also ask to your IBM representative the 5733SC1 LPO which is freely available. This is because this distribution support OPENSSL.
This archive MUST be installed in the /QOpenSys/usr directory
You can uncompress it with the bunzip2 command : e.g. bunzip2 local-V5R3-2.0.tar.bz2.
you can then untar it with tar xvf local-V5R4-3.0.tar
Of course, if you don't have bunzip2 command on your iSeries, you must do that with a utility on your PC such as WinRAR, 7Zip, a.s.o.... However it will be Ok to untar on the iSeries.
You must create a symbolic link the following way :
When you are in the PASE environment (CALL QP2TERM from a regular iSeries command line) type the following commands :
ln -s /QOpenSys/usr/local local
The above instruction will create a symbolic link which will permit the use of the software
You can now go in the /usr/local/php4/bin or /usr/local/php5/bin directories. There you can type the 'php -v' command.
If there is the version number which is displayed then everything should be fine for php.
You must configure mysql. To do that you must create a user profile on the iSeries called 'MYSQL'.
It is advised that you configured it as a *USER with no rights at all.
You must run the mysql configuration script which is in /usr/local/mysql/bin. The configuration script is called mysql_install_db.
You should then follow the instruction of this script.
With the command /usr/local/mysql/bin/mysqld_safe &, you should be able to run the mysql daemon.
You must also configure your iSeries apache server (in your httpd.conf file) with the following configuration directives, if you want to use the included php-4.4.7 version :
ScriptAlias /php-bin/ /QOpenSys/usr/local/php4/bin
If you want to use the PHP-5.2.3 version you must configure your httpd.conf with the following instructions :
ScriptAlias /php-bin/ /QOpenSys/usr/local/php5/bin
Make sure you setup the folder and file permissions properly in the /QOpenSys/usr/local/php/bin folder and on the php executable.
The IBM Apache server uses the user profile: QTMHHTP1 when calling CGI applications unless you change the Server User Profile in the Apache config. Refer to the documentation in IBM iSeries Info Center.
*PUBLIC or user QTMHHTP1 will need to have read access to the QOpenSys folder, read access to the php folder, and read access to the bin folder. The owner of the files of the distribution is QPGMR
They will also need read and execute access to the php executable in the /QOpenSys/usr/local/php4/bin (or /QOpenSys/usr/local/php5/bin) folder.
To control mysql you should install phpmyadmin. You will find in this archive the compress archive of the version 2.6.3-pl1 version of phpmyadmim. If you want to use it you will have to install it on your web server. You can find the latest version here : http://www.phpmyadmin.net/home_page/index.php