Re: How to install Apache web server in Fedora 14? Can yum be used for installing?

2011-04-13 Thread Tim
Varuna Seneviratna wrote:

 I started the service But I had to log on as root.

Um, not really.  Well, that rather depends on what *you* mean by
logging on.  

You only need to do su - (in the command line of your normal login) to
be allowed to start the webserver, then a service httpd start command,
and then you can go back to being yourself, once it's started.

  [tim@gonzales ~]$ su -
  Password: 
  [root@gonzales ~]# service httpd start
  Starting httpd:[  OK  ]
  [root@gonzales ~]# exit
  logout

If you start it up from one of the configuration GUIs, it'll ask you to
enter the root password, just to use that GUI.  Again, you only need to
be logged in as yourself.

If you plan to do a lot of web development work, you might configure the
service to it always starts itself each time you boot up.

 1 How to Do web Development, I am not able to(not allowed) save any
 .html or any other file in the directory /var/www/html Do I have to
 logged in as root to Do web Development?

No, you don't.  However, you're going to have to change some things,
first.  

While still the root user, you change the ownership of /var/www/html to
yourself.  

While still the root user, you can reconfigure the webserver to use a
different directory, one that is owned by yourself (such as a
sub-directory placed inside /var/www/html.

 2 Am I safe from outside intrusion when running the Web Server bound to port 
 80

No.  Whether you're safe, or not, depends on other factors.  Is there a
firewall on your ISP or your modem router, between the outside world and
your computer?  Are you running a firewall on your computer?  Those are
the things that will stop outsiders from reaching it.

NB:  Don't top post on this list.  Write your replies below the bits of
someone's messages that you're replying to, as I've done.

Also, I see you've got your own address in the reply-to header, this
means that you will be sent a reply, directly, as well as a reply that
has come through the list.  If you want that, fine.  Otherwise, remove
your address from the reply-to headers.

-- 
[tim@localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.



-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: How to install Apache web server in Fedora 14? Can yum be used for installing?

2011-04-13 Thread Tim
On Wed, 2011-04-13 at 08:48 +0530, Varuna Seneviratna wrote:
 When the command service httpd start is given the output is
  
 Starting httpd: httpd: Could not reliably determine the server's fully
 qualified domain name, using ::1 for ServerName

Sounds like your networking wasn't up, at the time.  Or you don't have
working DNS.

If you have a DNS server, then your computer's IP address and hostname
should be programmed into it.

Otherwise, you can enter the information into your /etc/hosts file.
Have a look at the file, and man hosts, for how it's used.

 (13)Permission denied: make_sock: could not bind to address [::]:80
 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
 no listening sockets available, shutting down
 Unable to open logs
[FAILED]

Which does sound like, either something else is already running on port
80, or perhaps you have a SELinux restriction on web serving, or you
weren't the root user (which I see is the case, by your subsequent
post).

For future reference, running the following command line will show if
something's already  running.  Look for an address followed by :80 in
the local address column.

  netstat -antvp

And the end column would name the program.

-- 
[tim@localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.



-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: How to install Apache web server in Fedora 14? Can yum be used for installing?

2011-04-13 Thread Varuna Seneviratna
On 13 April 2011 12:01, Tim ignored_mail...@yahoo.com.au wrote:
 Varuna Seneviratna wrote:

 I started the service But I had to log on as root.

 Um, not really.  Well, that rather depends on what *you* mean by
 logging on.

 You only need to do su - (in the command line of your normal login) to
 be allowed to start the webserver, then a service httpd start command,
 and then you can go back to being yourself, once it's started.

  [tim@gonzales ~]$ su -
  Password:
  [root@gonzales ~]# service httpd start
  Starting httpd:                                            [  OK  ]
  [root@gonzales ~]# exit
  logout

This is exactly what I did Tim and it is to the above procedure that I
referred to have had to login as root

 If you start it up from one of the configuration GUIs, it'll ask you to
 enter the root password, just to use that GUI.  Again, you only need to
 be logged in as yourself.

What is the or are the configuration GUis that are included with
fedora 14 or can be installed?

 If you plan to do a lot of web development work, you might configure the
 service to it always starts itself each time you boot up.

 1 How to Do web Development, I am not able to(not allowed) save any
 .html or any other file in the directory /var/www/html Do I have to
 logged in as root to Do web Development?

 No, you don't.  However, you're going to have to change some things,
 first.

 While still the root user, you change the ownership of /var/www/html to
 yourself.


How Am I able to change the ownership of the /var/www/html through the
terminal when logged in as root?

 While still the root user, you can reconfigure the webserver to use a
 different directory, one that is owned by yourself (such as a
 sub-directory placed inside /var/www/html.

While I am the root user How is it possible to configure the webserver
to use a different directory through the terminal?

 2 Am I safe from outside intrusion when running the Web Server bound to port 
 80

 No.  Whether you're safe, or not, depends on other factors.  Is there a
 firewall on your ISP or your modem router, between the outside world and
 your computer?  Are you running a firewall on your computer?  Those are
 the things that will stop outsiders from reaching it.

As usual the Firewall that comes with fedora is enabled.But what I am
not aware of is that when an webserver is listinig on port 80 is it
accessible to outside parties?

 NB:  Don't top post on this list.  Write your replies below the bits of
 someone's messages that you're replying to, as I've done.

I am sorry If I inconvenienced you guys by doing top posting.I typed
where the curer appeared when the reply link was clicked on the Gmail
inbox.I hope i have now corrected that error

 Also, I see you've got your own address in the reply-to header, this
 means that you will be sent a reply, directly, as well as a reply that
 has come through the list.  If you want that, fine.  Otherwise, remove
 your address from the reply-to headers.

What you say is True But I don't get two copies I don't know why?
 --
 [tim@localhost ~]$ uname -r
 2.6.27.25-78.2.56.fc9.i686

 Don't send private replies to my address, the mailbox is ignored.  I
 read messages from the public lists.




-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: How to install Apache web server in Fedora 14? Can yum be used for installing?

2011-04-13 Thread Tim
Tim:
 If you start it up from one of the configuration GUIs, it'll ask you to
 enter the root password, just to use that GUI.  Again, you only need to
 be logged in as yourself.

Varuna Seneviratna:
 What is the or are the configuration GUis that are included with
 fedora 14 or can be installed?

I'm not up to date with the latest version of Fedora, but the older
Fedora has a services GUI in the System/Administration menu.  This has
stop/start functions for all services currently installed on the
computer.  KDE has something similar.

 While still the root user, you change the ownership of /var/www/html to
 yourself.

 How Am I able to change the ownership of the /var/www/html through the
 terminal when logged in as root?

See the man page for chown (change ownership).  You can apply it to
directories and files.  Be aware that there *may* be a problem with
changing the ownership of /var/www/html/ as it's a standard directory,
that might be expected to be root owned, though I can't think of
anything that actually does care.

  e.g. chown varuna /var/www/html

You might also want to learn about the apropos command, to search for
man pages on some keyword that springs to mind.

apropos owner

Would return a list of man pages, and packages, that match the query of
owner.  Then it's a case of trying to think of the keyword that's likely
to be used to describe what you want to learn about.  That'll probably
help you with the next thing you need to find out about.

Another hint about file ownership and permissions:  Web serveable files
should not be owned by the username that runs the webserver (apache),
likewise they should not be writable by all users, else files can be
written to through someone using the webserver, otherwise known as
hacking.

i.e. /var/www/html/important-page.html Should be owned by you, or root,
or some other username, but not apache.  Likewise for groups.  And only
the first group of permissions should be writable.

e.g. -rw-r--r--  1 tim  tim213 2007-11-11 19:15 testpage.html


 While still the root user, you can reconfigure the webserver to use a
 different directory, one that is owned by yourself (such as a
 sub-directory placed inside /var/www/html.

 While I am the root user How is it possible to configure the webserver
 to use a different directory through the terminal?

Apache's config is inside /etc/httpd, my main server configuration file
is /etc/httpd/conf/httpd.conf.  The DocumentRoot directive configures
where the website starts from.

Once you start Apache, you can read it's manual by browsing to 
http://localhost/manual/

Learning how to use the webserver is an important part of making
websites, especially if you're doing anything more than just serving out
prepared HTML and image files, such as dynamic pages, scripts, etc.

For that reason, it's very useful to either install the same server
software that your public website uses, or seek out a public server that
uses the same software that you already have.  Fortunately, Apache is
widely used.


 As usual the Firewall that comes with fedora is enabled.But what I am
 not aware of is that when an webserver is listinig on port 80 is it
 accessible to outside parties?

By default, the webserver listens to all network connections on port 80.
With a firewall in place, an outsider can't connect, even if the
webserver is ready and waiting.

You can configure the webserver to only listen to certain networks.  For
instance, if you only have one computer, you could set it to only listen
to 127.0.0.1 (itself).  This is configured by the (drum roll) Listen
directive in the Apache configuration file.

 NB:  Don't top post on this list.  Write your replies below the bits of
 someone's messages that you're replying to, as I've done.

 I am sorry If I inconvenienced you guys by doing top posting.I typed
 where the curer appeared when the reply link was clicked on the Gmail
 inbox.I hope i have now corrected that error

Yes, that's the way.  You'll get more help, this way.  It's what the
list expects, and plenty of people will just hit delete when they see
messages which don't comply.

Some will say, the cursor being somewhere in particular on the page
doesn't mean you're supposed to start typing them, just that you start
working on the reply from there, which might be snipping out parts that
don't need quoting.

 Also, I see you've got your own address in the reply-to header,

 What you say is True But I don't get two copies I don't know why?

That could be because you're using gmail, and perhaps it can filter out
duplicates.  It can hide your own posts coming back from a server, going
by what others have said about gmail.

-- 
[tim@localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.



-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:

How to install Apache web server in Fedora 14? Can yum be used for installing?

2011-04-12 Thread Varuna Seneviratna
How to install Apache web server in Fedora 14? Can yum be used for installing?
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: How to install Apache web server in Fedora 14? Can yum be used for installing?

2011-04-12 Thread Richard Shaw
On Tue, Apr 12, 2011 at 9:53 PM, Varuna Seneviratna
varunasenevira...@gmail.com wrote:
 How to install Apache web server in Fedora 14? Can yum be used for installing?

as root:
# yum install httpd

Richard
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


How to install Apache web server in Fedora 14? Can yum be used for installing?

2011-04-12 Thread Varuna Seneviratna
When I give the command

yum info httpd

The Output is:

Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_GB to language list
Installed Packages
Name        : httpd
Arch        : i686
Version     : 2.2.17
Release     : 1.fc14
Size        : 2.8 M
Repo        : installed
From repo   : updates
Summary     : Apache HTTP Server
URL         : http://httpd.apache.org/
License     : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
           : web server.


Does this mean that HTTP Server is already installed on my system and
if it is How do I start it and Access it as local host

Varuna

On 13 April 2011 08:26, Richard Shaw hobbes1...@gmail.com wrote:
 On Tue, Apr 12, 2011 at 9:53 PM, Varuna Seneviratna
 varunasenevira...@gmail.com wrote:
 How to install Apache web server in Fedora 14? Can yum be used for 
 installing?

 as root:
 # yum install httpd

 Richard

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: How to install Apache web server in Fedora 14? Can yum be used for installing?

2011-04-12 Thread Varuna Seneviratna
Richard

When the command service httpd start is given the output is

Starting httpd: httpd: Could not reliably determine the server's fully
qualified domain name, using ::1 for ServerName
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
   [FAILED]

Is there or can be a service be running on port 80 and if it is how do
I determine what it is and stop it.I am new to Fedora and Linux and I
do not know the way around much

Varuna


On 13 April 2011 08:41, Richard Shaw hobbes1...@gmail.com wrote:
 On Tue, Apr 12, 2011 at 10:06 PM, Varuna Seneviratna
 varunasenevira...@gmail.com wrote:
 When I give the command

 yum info httpd

 The Output is:

 Loaded plugins: langpacks, presto, refresh-packagekit
 Adding en_GB to language list
 Installed Packages
 Name        : httpd
 Arch        : i686
 Version     : 2.2.17
 Release     : 1.fc14
 Size        : 2.8 M
 Repo        : installed
 From repo   : updates
 Summary     : Apache HTTP Server
 URL         : http://httpd.apache.org/
 License     : ASL 2.0
 Description : The Apache HTTP Server is a powerful, efficient, and extensible
            : web server.


 Does this mean that HTTP Server is already installed on my system and
 if it is How do I start it and Access it as local host

 Yup, it's installed already. It won't do much out of the box but you
 can do the following:

 To start the service:
 # service httpd start

 To make it start on boot:
 # chkconfig httpd on

 If you browse to localhost you should see the default apache page.

 Richard

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


How to install Apache web server in Fedora 14? Can yum be used for installing?

2011-04-12 Thread Varuna Seneviratna
Richard
When I logged in as root and issued the command it started
working, the output was

Starting httpd: httpd: Could not reliably determine the server's fully
qualified domain name, using ::1 for ServerName

Since it is listning on port 80 am I safe from outside intrusions

Varuna


-- Forwarded message --
From: Varuna Seneviratna varunasenevira...@gmail.com
Date: 13 April 2011 08:48
Subject: Re: How to install Apache web server in Fedora 14? Can yum be
used for installing?
To: Richard Shaw hobbes1...@gmail.com
Cc: Community support for Fedora users users@lists.fedoraproject.org


Richard

When the command service httpd start is given the output is

Starting httpd: httpd: Could not reliably determine the server's fully
qualified domain name, using ::1 for ServerName
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                          [FAILED]

Is there or can be a service be running on port 80 and if it is how do
I determine what it is and stop it.I am new to Fedora and Linux and I
do not know the way around much

Varuna


On 13 April 2011 08:41, Richard Shaw hobbes1...@gmail.com wrote:
 On Tue, Apr 12, 2011 at 10:06 PM, Varuna Seneviratna
 varunasenevira...@gmail.com wrote:
 When I give the command

 yum info httpd

 The Output is:

 Loaded plugins: langpacks, presto, refresh-packagekit
 Adding en_GB to language list
 Installed Packages
 Name        : httpd
 Arch        : i686
 Version     : 2.2.17
 Release     : 1.fc14
 Size        : 2.8 M
 Repo        : installed
 From repo   : updates
 Summary     : Apache HTTP Server
 URL         : http://httpd.apache.org/
 License     : ASL 2.0
 Description : The Apache HTTP Server is a powerful, efficient, and extensible
            : web server.


 Does this mean that HTTP Server is already installed on my system and
 if it is How do I start it and Access it as local host

 Yup, it's installed already. It won't do much out of the box but you
 can do the following:

 To start the service:
 # service httpd start

 To make it start on boot:
 # chkconfig httpd on

 If you browse to localhost you should see the default apache page.

 Richard

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: How to install Apache web server in Fedora 14? Can yum be used for installing?

2011-04-12 Thread Joshua Andrews






From: Varuna Seneviratna varunasenevira...@gmail.com
To: Richard Shaw hobbes1...@gmail.com
Cc: Community support for Fedora users users@lists.fedoraproject.org
Sent: Tue, April 12, 2011 8:08:53 PM
Subject: How to install Apache web server in Fedora 14? Can yum be used for 
installing?

When I give the command

yum info httpd

The Output is:

Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_GB to language list
Installed Packages
Name: httpd
Arch: i686
Version : 2.2.17
Release : 1.fc14
Size: 2.8 M
Repo: installed
From repo   : updates
Summary : Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
   : web server.


Does this mean that HTTP Server is already installed on my system and
if it is How do I start it and Access it as local host

Varuna

You can start the service - 'service httpd start' 
You'll need to edit the config file. 
Check it's running with firefox or whatever browser you choose at 
'http://localhost' you should see a test page with some information on it.

-J


  -- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: How to install Apache web server in Fedora 14? Can yum be used for installing?

2011-04-12 Thread Varuna Seneviratna
Joshua
 I started the service But I had to log on as root.The problem
I have now is How to Do web development.The Test page is displayed
when accessed through localhost.In the left part of the Test page the
below is displayed

If you are the website administrator:

You may now add content to the directory /var/www/html/. Note that
until you do so, people visiting your website will see this page, and
not your content. To prevent this page from ever being used, follow
the instructions in the file /etc/httpd/conf.d/welcome.conf.

You are free to use the images below on Apache and Fedora powered HTTP
servers. Thanks for using Apache and Fedora!

My problems are
1 How to Do web Development, I am not able to(not allowed) save any
.html or any other file in the directory /var/www/html Do I have to
logged in as root to Do web Development?
2 Am I safe from outside intrusion when running the Web Server bound to port 80

On 13 April 2011 10:00, Joshua Andrews woodguy552...@yahoo.com wrote:


 
 From: Varuna Seneviratna varunasenevira...@gmail.com
 To: Richard Shaw hobbes1...@gmail.com
 Cc: Community support for Fedora users users@lists.fedoraproject.org
 Sent: Tue, April 12, 2011 8:08:53 PM
 Subject: How to install Apache web server in Fedora 14? Can yum be used for
 installing?

 When I give the command

 yum info httpd

 The Output is:

 Loaded plugins: langpacks, presto, refresh-packagekit
 Adding en_GB to language list
 Installed Packages
 Name        : httpd
 Arch        : i686
 Version     : 2.2.17
 Release     : 1.fc14
 Size        : 2.8 M
 Repo        : installed
 From repo   : updates
 Summary     : Apache HTTP Server
 URL         : http://httpd.apache.org/
 License     : ASL 2.0
 Description : The Apache HTTP Server is a powerful, efficient, and
 extensible
            : web server.


 Does this mean that HTTP Server is already installed on my system and
 if it is How do I start it and Access it as local host

 Varuna

 You can start the service - 'service httpd start'
 You'll need to edit the config file.
 Check it's running with firefox or whatever browser you choose at
 'http://localhost' you should see a test page with some information on it.

 -J




-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines