Share » Forums » Install & configuration » Installation Problem on Fedora Core 4

Installation Problem on Fedora Core 4

Installation Problem on Fedora Core 4

Thursday 13 April 2006 1:49:27 pm - 1 reply

Author Message

Will Collins

Monday 17 April 2006 10:12:05 am

First, you need to remove PHP 5 and install PHP 4. To do this, visit:

http://www.mjmwired.net/resources/mjm-php4-fc4.html .

Just don't forget to add PHP the file exclusion list in the Yum Update config file. Otherwise Yum will update PHP to version 5.x and EzPublish will stop working.

Then you need to worry about SELinux with Fedora Core 4 and 5.

Type "ls -Z /var/www/html" at the command prompt. If you get an error message about only available on SELinux kernel, then you are done. Otherwise, continue on:

You need to use the chcon command:

chcon -R -t httpd_user_content_t public_html/

Just replace the "public_html/" with the directory you use as web directory (/var/ww/html or /var/www/ezpublish for example). The -R makes it recursive for all folders.

To see what SELinux policies are in place, use the -Z on the ls command for the file or folder you want to view.

You can avoid using the chcon command by using the cp command instead of the mv command in any Redhat version. When you use the cp command, the files will inherit the security policies of the folder that they are being moved to. This is not the case with the mv command as it does not set the SELinuz policies correctly for the folder that is being moved.

The official Fedora explanation of this issue can be found at http://fedora.redhat.com/docs/selinux-apache-fc3/sn-simple-setup.html .

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu