if you want to activate apache in fedora the method is quite different from ubuntu. In ubuntu I usually use this command

sudo apt-get install apache2

and when I type http://localhost in firefox the apache message appear and I can use apache afterwards. But if you use fedora 10 then here is the method.

firstly you have to install this package

[root@kamsis html]# yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss php-mapserver php-mbstring php-mcrypt php-mhash php-mssql php-shout php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel

then after you had finish with the installations you have to edit the file in

[root@kamsis html]# vim /etc/httpd/conf/httpd.conf
after you have open the file, look for the line starting with

DirectoryIndex

and change it into this line

DirectoryIndex index.html.var index.html index.htm index.shtml index.cgi index.php index.php3 index.pl

after you have save the changes then you need to configure the apache so it will start during boot time with command like this

[root@kamsis html]# chkconfig –levels 235 httpd on

and then start your apache

[root@kamsis html]# /etc/init.d/httpd restart

now if you type http://localhost in firefox then the apache’s message will appear and you have succesfully install apache in fedora 10.

I need to disable selinux because i cannot access my computer using samba. so to do this I edit the file here

[root@kamsis home]# vim /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing – SELinux security policy is enforced.
#       permissive – SELinux prints warnings instead of enforcing.
#       disabled – No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
#       targeted – Targeted processes are protected,
#       mls – Multi Level Security protection.
SELINUXTYPE=targeted

then you just have to change to parameter from enforcing to disabled and then reboot your computer. Now you computer are free from SElinux.