HOWTO Install apache-2.0.53 mysql-4.1.10 and PHP-5.03

Rene Bon Ciric (Renich) no-reply-gw at fcp.homelinux.org
Mon Mar 7 20:32:35 UTC 2005


Fedora Core 3, Apache 2.53, MySQL 4.1.10, PHP 5.03 Setup 




Intro

This is an easy way to setup your 2005 uptodate server!





Aclarations:


- Don't get fooled by the "[root at fedora SRPMS]#" Thats only my prompt. You probably have a #> or simething like that.


- I will assume you have a i386 compilant arch. Sorry, i'm not a guru, I have to 
stick with what I know!





Pre-Requisites:



- Login as root

- Connect to the internet (i assume you already are)

- run:

[root at fedora3 SRPMS]#yum update



I don't know if you really need the above, but you'll thank me! Remember you should update udev (http://fedora.redhat.com/docs/udev/)





1.- Download:



    1.1- http://dev.mysql.com/downloads/mysql/4.1.html			



    MySQL-shared-compat-4.1.10-0.i386.rpm

    MySQL-shared-4.1.10-0.i386.rpm

    MySQL-server-4.1.10-0.i386.rpm.part

    MySQL-Max-4.1.10-0.i386.rpm

    MySQL-embedded-4.1.10-0.i386.rpm

    MySQL-devel-4.1.10-0.i386.rpm

    MySQL-client-4.1.10-0.i386.rpm

    MySQL-bench-4.1.10-0.i386.rpm



    save to /usr/src/redhat/RPMS/i386/





    1.2- http://download.fedora.redhat.com/pub/fedora/linux/core/development/SRPMS



    httpd-2.0.53-4.src.rpm

    pcre-5.0-3.src.rpm

    php-5.0.3-2.src.rpm

    sqlite3-3.0.8-3.src.rpm



    save to /usr/src/redhat/SRPMS



2- Go to /usr/src/redhat/SRPMS and run:

[root at fedora3 SRPMS]# rpmbuild --rebuild sqlite3*.rpm



	2.1- Go to /usr/src/redhat/RPMS/i386 and run:
	[root at fedora3 i386]# rpm -Uhv sqlite3*.rpm



	2.2- Return to /usr/src/redhat/SRPMS and run:

	[root at fedora3 SRPMS]# rpmbuild --rebuild pcre*.rpm



	2.3- Go to /usr/src/redhat/RPMS/i386 and run:

	[root at fedora3 i386]# rpm -Uhv pcre*.rpm



	2.4- Return to /usr/src/redhat/SRPMS and run:

	[root at fedora3 SRPMS]# rpmbuild --rebuild *.rpm



	Go get something to eat, spend time with your family or make some 
	excercise 'cause this is gonna take some time.



	2.5- Go to /usr/src/redhat/RPMS/i386 and move the installed rpm's with:

	[root at fedora3 i386]# mkdir installed

	[root at fedora3 i386]# mv pcre*.rpm installed

	[root at fedora3 i386]# mv sqlite3*.rpm installed



	2.6- Install everything else with:

	[root at fedora3 i386]# rpm -Uhv *.rpm



3.- If everything went fine, you should have a bunch of RPM's in your 
/usr/src/redhat/RPMS/i386/ folder (If you have the same arch as me). 

If you happen to have a diferent architecture, use a bit o logic. 
Try looking for them in the apropiate dir located in /usr/src/redhat/RPMS/. 

Here is the list:



httpd-2.0.53-4.i386.rpm                 httpd-debuginfo-2.0.53-4.i386.rpm

httpd-devel-2.0.53-4.i386.rpm           httpd-manual-2.0.53-4.i386.rpm

httpd-suexec-2.0.53-4.i386.rpm          mod_ssl-2.0.53-4.i386.rpm



           

MySQL-client-4.1.10-0.i386.rpm          MySQL-devel-4.1.10-0.i386.rpm

MySQL-embedded-4.1.10-0.i386.rpm        MySQL-Max-4.1.10-0.i386.rpm

MySQL-server-4.1.10-0.i386.rpm          MySQL-shared-4.1.10-0.i386.rpm

MySQL-shared-compat-4.1.10-0.i386.rpm   MySQL-bench-4.1.10-0.i386.rpm



pcre-5.0-3.i386.rpm                     pcre-devel-5.0-3.i386.rpm

pcre-debuginfo-5.0-3.i386.rpm           



php-5.0.3-2.i386.rpm                    php-debuginfo-5.0.3-2.i386.rpm

php-devel-5.0.3-2.i386.rpm              php-gd-5.0.3-2.i386.rpm

php-imap-5.0.3-2.i386.rpm               php-ldap-5.0.3-2.i386.rpm

php-mbstring-5.0.3-2.i386.rpm           php-mysql-5.0.3-2.i386.rpm

php-ncurses-5.0.3-2.i386.rpm            php-odbc-5.0.3-2.i386.rpm

php-pear-5.0.3-2.i386.rpm               php-pgsql-5.0.3-2.i386.rpm

php-snmp-5.0.3-2.i386.rpm               php-soap-5.0.3-2.i386.rpm

php-xml-5.0.3-2.i386.rpm                php-xmlrpc-5.0.3-2.i386.rpm



sqlite3-3.0.8-3.i386.rpm                sqlite3-debuginfo-3.0.8-3.i386.rpm

sqlite3-devel-3.0.8-3.i386.rpm



4.- Move everything to the "installed" folder you created in step 2.5 with

[root at fedora3 SRPMS]# mv *.rpm installed



5.- I know you're dying to try it! Wait a sec! We haven't compiled the extension yet! 
(MySQLi of course!)



6.- Go to /usr/src/redhat/SRPMS and install the PHP5 source code with:

[root at fedora3 SRPMS]# rpm -i php*.rpm
    
    6.1- Go to /usr/src/redhat/SOURCES and copy the file php-5.0.3-2.tar.gz to the 
    directory BUILD with:
    [root at fedora3 SOURCES]# cp php-5.0.3-2.tar.gz /usr/src/redhat/BUILD/
    
    And go there.
    
    6.2- UnGzip with 
    [root at fedora3 BUILD]# gzip -d php-5.0.3-2.tar.gz
    
    6.3- UnTar with
    [root at fedora3 BUILD]# tar -xvf php-5.0.3-2.tar



	6.4- Go to /usr/src/redhat/BUILD/PHP5.0.3-2/ext/mysqli and run:

	[root at fedora3 mysqli]# phpize

	[root at fedora3 mysqli]# ./configure --enable-embedded-mysqli \ 

                            --enable-static \

                            --with-mysqli=/usr/bin/mysl_config \

                            --with-php-config=/usr/bin/php-config
                            
    Note:

	Each time you type a "\" press enter once, it wont start, it will give you a new line so
	your command doesn't look like this:
	

      ./configure --enable-embedded-mysqli --enable-static --with-mysqli=/usr/bin/mysl_config 
      --with-php-config=/usr/bin/php-config

	

	6.5- Keep your fingers crossed and pray, concentrante, think positive, sing... do something
	 so the command works!

	

	6.6- If no error message apears just run:

	[root at fedora3 mysqli]# make install

	

	6.7- Now go to /etc/php.d and make a copy of the mysql.ini file so we can use it as the
	mysqli.ini file with:
	[root at fedora3 SRPMS]# cp mysql.ini mysqli.ini
	
	6.8- Edit this file with nano mysqli.ini and make shure the file looks like this:
	; Enable mysqli extension module
    extension=mysqli.so
    
    6.8.1- Save the changes with ctrl+o and exit with ctrl+x

7.0- Restart your apache daemon with:
[root at fedora3 php.d] apachectl restart

THE END

Be happy and I hope it works as well for you as for me.

Remember to create the mysql user and password (# mysqladmin -u root password "whatever") and to put an index.php in /var/www/html/ with a <?php phpinfo(); ?> to check if everything is ok.

Thats all
Renich Bon Ciric
renich at woralelandia.com

Thanks to all the guys that helped me out with this issue. Their names are in this thread
http://fcp.homelinux.org/modules/newbb/viewtopic.php?topic_id=10549&start=30

Special thanks to Paulh, Giulio Sorrentino, Jim Cornette and Robert Locke. I've would done nothing without your support guys. Thanks a lot. You have toght me why linux works...



-- 
This is an email sent via the webforum on http://fcp.homelinux.org
http://fcp.homelinux.org/modules/newbb/viewtopic.php?post_id=46453&topic_id=11756&forum=4#forumpost46453




More information about the fedora-list mailing list