View Full Version : apache2 and php5 help
nettro
16th May 2006, 01:01 PM
hi
iv just got linux fc5 and trying to install apache2 and php5 from the magazine
but i cant find apache2 in the software install, in the magazine it says it shopuld be
could apache or apache 2 but there nothing in software install program what says
apache or apache 2. :confused:
best regards
ibbo
16th May 2006, 01:06 PM
httpd is what your looking for.
its doc root is /var/ww/html
its config is under /etc/httpd
try starting it up by service httpd start. If you want it to start automatically try /sbin/chkconfig httpd on (should start at boot).
ibbo
nettro
16th May 2006, 01:28 PM
httpd is what your looking for.
its doc root is /var/ww/html
its config is under /etc/httpd
try starting it up by service httpd start. If you want it to start automatically try /sbin/chkconfig httpd on (should start at boot).
ibbo
could you explain a bit more please, where should i put them commands in
i should of said im really new to all this
nettro
16th May 2006, 02:17 PM
no need to explain put my thinking head on and worked it out there's hope yet
Cipri
17th May 2006, 11:45 AM
yes, for the record. The apache2 RPM package is called "httpd", not "apache2". Similary, the php5 package is simply called "php"
Renich
18th May 2006, 06:49 PM
and you should install using yum
[renich@web1 ~]# su -c 'yum install httpd php'
or
[root@web1 log]# yum install httpd php
You should really investigate about yum... It's a great FC tool.
xerxesfedora
18th May 2006, 07:05 PM
What are repos should I activate pls ?
Renich
18th May 2006, 07:17 PM
I would leave the default ones...
xerxesfedora
18th May 2006, 07:48 PM
It does not work and says nothing to do with me (FC5 2111). Strange!
SHtRO
18th May 2006, 07:53 PM
They are probably already installed. Do this:
rpm -q httpd
If you get a package back, go to your GNOME desktop and select from the menu the "System->Administration->Server Settings->Services" application and activate your httpd service.
You will need to check it to activate it on the next boot and also "Start" it.
Renich
18th May 2006, 08:00 PM
They are probably already installed. Do this:
rpm -q httpd
If you get a package back, go to your GNOME desktop and select from the menu the "System->Administration->Server Settings->Services" application and activate your httpd service.
You will need to check it to activate it on the next boot and also "Start" it.
You can also type:
[root@web1 ~]# service httpd start
or
[root@web1 ~]# apachectrl start
and to make it start by default when you restart your pc/server just type:
[root@web1 ~]# chkconfig --levels 345 httpd on
I really recommend you check the man pages or --help for "service" and "chkconfig" so you really understand them
[root@web1 ~]# man service
[root@web1 ~]# man chkconfig
or
[root@web1 ~]# service --help
[root@web1 ~]# chkconfig --help
SHtRO
18th May 2006, 08:35 PM
REnich is right, though I've found that the graphical representation helps some newbies understand the layout a little better. CLI (command-line interface) commands are definitely quicker and easier once you understand what is happening or if you are in a text console.
xerxesfedora
19th May 2006, 12:37 PM
Thnks for all how told me to go to the server service.
It was not enabled ! I enabled it and it works!
realmax
21st May 2006, 04:00 PM
They are probably already installed. Do this:
rpm -q httpd
If you get a package back, go to your GNOME desktop and select from the menu the "System->Administration->Server Settings->Services" application and activate your httpd service.
You will need to check it to activate it on the next boot and also "Start" it.
Thanks, I have solved my problem :)
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.