Fedora Linux Support Community & Resources Center
  #1  
Old 16th May 2006, 01:01 PM
nettro Offline
Registered User
 
Join Date: May 2006
Posts: 6
apache2 and php5 help

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.

best regards
Reply With Quote
  #2  
Old 16th May 2006, 01:06 PM
ibbo's Avatar
ibbo Offline
Registered User
 
Join Date: Jun 2005
Location: Leeds
Posts: 1,264
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
__________________
A Hangover Lasts A Day, But Our Drunken Memories Last A Lifetime
--
Linux user #349545
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCfdjyzXscddzQvlhBedAcD7qfKmHo==zx0H
Reply With Quote
  #3  
Old 16th May 2006, 01:28 PM
nettro Offline
Registered User
 
Join Date: May 2006
Posts: 6
Quote:
Originally Posted by ibbo
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
Reply With Quote
  #4  
Old 16th May 2006, 02:17 PM
nettro Offline
Registered User
 
Join Date: May 2006
Posts: 6
no need to explain put my thinking head on and worked it out there's hope yet
Reply With Quote
  #5  
Old 17th May 2006, 11:45 AM
Cipri Offline
Registered User
 
Join Date: Nov 2005
Location: Amsterdam, Netherlands
Age: 32
Posts: 15
yes, for the record. The apache2 RPM package is called "httpd", not "apache2". Similary, the php5 package is simply called "php"
Reply With Quote
  #6  
Old 18th May 2006, 06:49 PM
Renich's Avatar
Renich Offline
Registered User
 
Join Date: May 2005
Location: Guadalajara, Jalisco, México
Age: 32
Posts: 145
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.
Reply With Quote
  #7  
Old 18th May 2006, 07:05 PM
xerxesfedora Offline
Registered User
 
Join Date: Apr 2006
Location: Turkey
Posts: 64
What are repos should I activate pls ?
Reply With Quote
  #8  
Old 18th May 2006, 07:17 PM
Renich's Avatar
Renich Offline
Registered User
 
Join Date: May 2005
Location: Guadalajara, Jalisco, México
Age: 32
Posts: 145
I would leave the default ones...
Reply With Quote
  #9  
Old 18th May 2006, 07:48 PM
xerxesfedora Offline
Registered User
 
Join Date: Apr 2006
Location: Turkey
Posts: 64
It does not work and says nothing to do with me (FC5 2111). Strange!
Reply With Quote
  #10  
Old 18th May 2006, 07:53 PM
SHtRO's Avatar
SHtRO Offline
Registered User
 
Join Date: Jul 2005
Posts: 178
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.
__________________
Imagination is more important than knowledge.
--Albert Einstein
Reply With Quote
  #11  
Old 18th May 2006, 08:00 PM
Renich's Avatar
Renich Offline
Registered User
 
Join Date: May 2005
Location: Guadalajara, Jalisco, México
Age: 32
Posts: 145
Quote:
Originally Posted by SHtRO
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
Reply With Quote
  #12  
Old 21st May 2006, 04:00 PM
realmax Offline
Registered User
 
Join Date: Mar 2006
Posts: 2
Smile

Quote:
Originally Posted by SHtRO
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
Reply With Quote
  #13  
Old 18th May 2006, 08:35 PM
SHtRO's Avatar
SHtRO Offline
Registered User
 
Join Date: Jul 2005
Posts: 178
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.
__________________
Imagination is more important than knowledge.
--Albert Einstein
Reply With Quote
  #14  
Old 19th May 2006, 12:37 PM
xerxesfedora Offline
Registered User
 
Join Date: Apr 2006
Location: Turkey
Posts: 64
Thnks for all how told me to go to the server service.

It was not enabled ! I enabled it and it works!
Reply With Quote
Reply

Tags
apache2, php5

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fedora8, apache2, php5, mod_fcgid - doesn't work at all strannik Using Fedora 6 10th September 2008 08:06 PM
PHP5 DOM - Apache2 - fedora8 macm Using Fedora 0 1st September 2008 08:58 PM
Apache2 and PHP5.1.6 Dygear Using Fedora 4 29th October 2006 11:43 AM
FC4 Apache2 PHP5 enabling debug messages Tekifuku Servers & Networking 0 5th June 2006 05:55 AM


Current GMT-time: 17:37 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat