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.

Leave a Reply