# Advice Needed: Installing with FC4

**URL:** <https://forums.interworx.com/t/advice-needed-installing-with-fc4/10803>\
**Category:** Hacks / Tools / Tips / Tricks\
**Created:** [April 23, 2006, 1:28am UTC](https://forums.interworx.com/t/advice-needed-installing-with-fc4/10803 "2006-04-23T01:28:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![EverythingWeb](https://forums.interworx.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@EverythingWeb](https://forums.interworx.com/u/EverythingWeb)\
**Post date:** [April 23, 2006, 1:28am UTC](https://forums.interworx.com/t/advice-needed-installing-with-fc4/10803/1 "2006-04-23T01:28:48Z")

</div>

Hello,

We are bringing an Interworx box online in the next few days (we currently use FC3 across most servers), and the client has requested FC4. However he does not want PHP5.

He would like, PHP4, Mysql 4.1.x & Apache2.

Please can someone give some details on the “best” way to ‘downgrade’ the PHP that will be installed by Interworx?

Many Thanks, and looking forward to your responses. 🙂

Regards,  
William

---

<div class="post-metadata">

**Author:** ![system](https://forums.interworx.com/uploads/default/original/2X/4/40ab17cc34b792a0172b48ad1333b9ba9299a9a1.png) [@system](https://forums.interworx.com/u/system)\
**Post date:** [April 24, 2006, 7:56am UTC](https://forums.interworx.com/t/advice-needed-installing-with-fc4/10803/2 "2006-04-24T07:56:08Z")

</div>

Hey,

I’ll have to face this very same problem this week (waiting for a server to be put online), and I’ll try myself if nobody answers 😉 I’ll let you know the results… I’ve been fighting mysql 4.1.x, 4.0.x and 3.23.x with PHP for some time now.

Regards,

Juan

---

<div class="post-metadata">

**Author:** ![IWorx-Chris](https://forums.interworx.com/letter_avatar_proxy/v4/letter/i/ba8739/32.png) [@IWorx-Chris](https://forums.interworx.com/u/IWorx-Chris)\
**Post date:** [April 24, 2006, 1:19pm UTC](https://forums.interworx.com/t/advice-needed-installing-with-fc4/10803/3 "2006-04-24T13:19:13Z")

</div>

This is the easiest way I know of guys:

1. Install IWorx-CP as “normal” (i.e. with default fedora PHP5)
2. Remove the PHP package that fedora provides (DO NOT REMOVE THE PHP-IWORX PACKAGE) using rpm -e \<pack names\>
3. Edit your /etc/yum.conf and put an exlucde in there for php. This will ensure that next time YUM runs it won’t clobber the work we’re about to do with the “newer” php5 default RPMs
4. Run the following command:

```auto

rpmbuild --rebuild --with fdr40 http://updates.interworx.com/iworx/SRPMS/php-4.3.11-100.iworx.src.rpm

```

You _may_ have to install rpm-build and gcc (using “yum install gcc rpm-build”) if the previous command gives you issues. If the RPM complains of missing dependencies (of which there are a ton) you may also have to install _all_ of them. If you can’t find mhash/libmhash look here: [http://dag.wieers.com/packages/libmhash/](http://dag.wieers.com/packages/libmhash/)

1. Once that completes you’ll have a bunch of new RPMs in /usr/src/redhat/RPMS/i386 or /usr/src/redhat/RPMS/x86\_64 depending on your architecture. Just rpm -Uvh \<packages you want installed\> and that should do it

Chris

---

<div class="post-metadata">

**Author:** ![system](https://forums.interworx.com/uploads/default/original/2X/4/40ab17cc34b792a0172b48ad1333b9ba9299a9a1.png) [@system](https://forums.interworx.com/u/system)\
**Post date:** [May 16, 2006, 5:04am UTC](https://forums.interworx.com/t/advice-needed-installing-with-fc4/10803/4 "2006-05-16T05:04:41Z")

</div>

Hello. I finally setup a FC4 box with PHP4 + MySQL 4.1.

I tried the guidelines provided by Chris, but rpmbuild won’t make it compiling PHP4 from src.rpm on FC4, perhaps some GCC version issues or whatever. I read that some other people faced the same problem and tried a proposed solution: just using the FedoraCore3 PHP4 rpms.

This worked for me, just had to resolve some dependencies.

So this is the briefing:

- Install Interworx-CP as normal on FC4 box.

- Uninstall rpm packages for installed php5

# rpm -e --nodeps php-pear php-mysql php php-ldap

- Getting php4 FC3 rpm packages:

# mkdir /root/downloads

# cd /root/downloads

# wget [http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-4.3.11-100.fdr30.iworx.i386.rpm](http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-4.3.11-100.fdr30.iworx.i386.rpm)

# wget [http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-devel-4.3.11-100.fdr30.iworx.i386.rpm](http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-devel-4.3.11-100.fdr30.iworx.i386.rpm)

# wget [http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-imap-4.3.11-100.fdr30.iworx.i386.rpm](http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-imap-4.3.11-100.fdr30.iworx.i386.rpm)

# wget [http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-ldap-4.3.11-100.fdr30.iworx.i386.rpm](http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-ldap-4.3.11-100.fdr30.iworx.i386.rpm)

# wget [http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-mbstring-4.3.11-100.fdr30.iworx.i386.rpm](http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-mbstring-4.3.11-100.fdr30.iworx.i386.rpm)

# wget [http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-mysql-4.3.11-100.fdr30.iworx.i386.rpm](http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-mysql-4.3.11-100.fdr30.iworx.i386.rpm)

# wget [http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-pear-4.3.11-100.fdr30.iworx.i386.rpm](http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-pear-4.3.11-100.fdr30.iworx.i386.rpm)

# wget [http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-mcrypt-4.3.11-100.fdr30.iworx.i386.rpm](http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-mcrypt-4.3.11-100.fdr30.iworx.i386.rpm)

# wget [http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-mhash-4.3.11-100.fdr30.iworx.i386.rpm](http://updates.interworx.com/iworx/RPMS/fdr30/i386/php-mhash-4.3.11-100.fdr30.iworx.i386.rpm)

-Installing compat packages needed:

# yum install libdb-4.2.so libhistory.so.4 libreadline.so.4 libmysqlclient.so.10 libltdl.so.3

-Install PHP4 from rpms you just downloaded:

# rpm -ivh php\*

-Try…

# php -v

PHP 4.3.11 (cgi) (built: Apr 25 2005 22:06:33)  
Copyright © 1997-2004 The PHP Group  
Zend Engine v1.3.0, Copyright © 1998-2004 Zend Technologies

After that I installed as normal Zend Optimizer, and test a “phpmyadmin” installation with no problems under Apache to test MySQL and PHP.

-Put a exclude on [main] section of /etc/yum.conf:  
exclude=php\*

I assume this will prevent php-iworx to be updated if someday needed, so perhaps Chris can point out something about this exclude?

Hope this helps someone.

Regards,

---

<div class="post-metadata">

**Author:** ![IWorx-Chris](https://forums.interworx.com/letter_avatar_proxy/v4/letter/i/ba8739/32.png) [@IWorx-Chris](https://forums.interworx.com/u/IWorx-Chris)\
**Post date:** [May 16, 2006, 11:28am UTC](https://forums.interworx.com/t/advice-needed-installing-with-fc4/10803/5 "2006-05-16T11:28:56Z")

</div>

Thanks for posting this Juan! I’m sure it’ll help a bunch of folks.

Chris

---

<div class="post-metadata">

**Author:** ![system](https://forums.interworx.com/uploads/default/original/2X/4/40ab17cc34b792a0172b48ad1333b9ba9299a9a1.png) [@system](https://forums.interworx.com/u/system)\
**Post date:** [May 20, 2006, 9:13am UTC](https://forums.interworx.com/t/advice-needed-installing-with-fc4/10803/6 "2006-05-20T09:13:44Z")

</div>

I also have to add something about the firewall on Fedora Core 4.

I had to disable the redhat firewall enabled by default in my FC4 installation in order to make APF work correctly (they get “mixed”). By default, this disables responses to HTTP, FTP, etc.

So you have to select “Disable firewall”, executing /usr/sbin/setup (it’s a console app), and then start APF.

I had locked myself but having a “Trusted IP” saved me from a reinstall and now it’s working nice.

Regards,

---

<div class="post-metadata">

**Author:** ![EverythingWeb](https://forums.interworx.com/letter_avatar_proxy/v4/letter/e/8baadc/32.png) [@EverythingWeb](https://forums.interworx.com/u/EverythingWeb)\
**Post date:** [May 20, 2006, 10:56am UTC](https://forums.interworx.com/t/advice-needed-installing-with-fc4/10803/7 "2006-05-20T10:56:51Z")

</div>

Juan,

There is also quite a problem with APF and the Kernel that FC4 comes with, meaning APF wouldn’t work at all. There is a fix which I will details shortly however it is only a temporary fix to get the firewall “functioning”.

---

<div class="post-metadata">

**Author:** ![system](https://forums.interworx.com/uploads/default/original/2X/4/40ab17cc34b792a0172b48ad1333b9ba9299a9a1.png) [@system](https://forums.interworx.com/u/system)\
**Post date:** [May 20, 2006, 11:56am UTC](https://forums.interworx.com/t/advice-needed-installing-with-fc4/10803/8 "2006-05-20T11:56:24Z")

</div>

Yeah you’re right. I forgot it. Those are the APF issues with 2.6 kernels and I have the temporary fix put on too.
