upgrade http

1 view
Skip to first unread message

Rahul patel

unread,
Dec 16, 2009, 6:38:23 AM12/16/09
to VGLUG
Hi,

I have install RHEL5.1 and want to upgrade the following packages.

1. Apache HTTP Server 2.2.14
2. PHP 5.3.1
3. MySQL 5.1


Right now following version is already installed.

1. httpd-2.2.3-6.el5
2. php-5.1.6-5.el5
3. mysql-5.0.22-2.1


Do I need to uninstall the old rpms and then i need to install new
rpms? and what is a best way to install the above rpms?

Regards,
Rahul Patel

Kaushal Patel

unread,
Dec 16, 2009, 7:34:46 AM12/16/09
to vg...@googlegroups.com
You can update it without loosing your configuration. Just use "yum update apache php mysql" to update.

Regards,
Kaushal Patel
--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG-un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG

Rahul patel

unread,
Dec 16, 2009, 9:34:52 AM12/16/09
to VGLUG
Hi,

But we have no redhat support so we have not configured the yum. If it
is possible without redhat RHN then can you tell me how to configure
the yum on RHEL5.1?

Regards,
Rahul

On Dec 16, 5:34 pm, Kaushal Patel <kaushalpatel1...@gmail.com> wrote:
> You can update it without loosing your configuration. Just use "yum update apache php mysql" to update.
>
> Regards,
> Kaushal Patel
>
>
>
> ----- Original Message -----
> From: "Rahul patel" <rahul.patel2...@gmail.com>
> To: "VGLUG" <vg...@googlegroups.com>
> Sent: Wednesday, December 16, 2009 5:08:23 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi
> Subject: [VGLUG] upgrade http
>
> Hi,
>
> I have install RHEL5.1 and want to upgrade the following packages.
>
> 1. Apache HTTP Server 2.2.14
> 2. PHP 5.3.1
> 3. MySQL 5.1
>
> Right now following version is already installed.
>
> 1. httpd-2.2.3-6.el5
> 2. php-5.1.6-5.el5
> 3. mysql-5.0.22-2.1
>
> Do I need to uninstall the old rpms and then i need to install new
> rpms? and what is a best way to install the above rpms?
>
> Regards,
> Rahul Patel
>
> --
> Please readhttp://www.catb.org/~esr/faqs/smart-questions.htmlbefore posting.
> You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
> To stop receiving emails from this group, mail to VGLUG-un...@googlegroups.com
> To post to this group, send email to VG...@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/VGLUG- Hide quoted text -
>
> - Show quoted text -

Dhaval Soni

unread,
Dec 16, 2009, 9:36:59 AM12/16/09
to vg...@googlegroups.com
On Wed, Dec 16, 2009 at 8:04 PM, Rahul patel <rahul.p...@gmail.com> wrote:
Hi,

But we have no redhat support so we have not configured the yum. If it
is possible without redhat RHN then can you tell me how to configure
the yum on RHEL5.1?

You can configure Centos repos in your RHEL. So find centos repo information on google and configure it. It will work for you.  You will able to get all updates for RHEL 5.1.


You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG-un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG



--
Kind regards,
Dhaval Soni

Cell: +91-966 20 29 620
*****************************

Wiki: https://fedoraproject.org/wiki/User:Sonidhaval

Ekiga sip:sonid...@ekiga.net

Dhaval Soni

unread,
Dec 16, 2009, 9:41:04 AM12/16/09
to vg...@googlegroups.com
On Wed, Dec 16, 2009 at 8:06 PM, Dhaval Soni <sonid...@gmail.com> wrote:


On Wed, Dec 16, 2009 at 8:04 PM, Rahul patel <rahul.p...@gmail.com> wrote:
Hi,

But we have no redhat support so we have not configured the yum. If it
is possible without redhat RHN then can you tell me how to configure
the yum on RHEL5.1?

You can configure Centos repos in your RHEL. So find centos repo information on google and configure it. It will work for you.  You will able to get all updates for RHEL 5.1.

Dhaval Soni

unread,
Dec 16, 2009, 9:45:00 AM12/16/09
to vg...@googlegroups.com
On Wed, Dec 16, 2009 at 8:11 PM, Dhaval Soni <sonid...@gmail.com> wrote:


On Wed, Dec 16, 2009 at 8:06 PM, Dhaval Soni <sonid...@gmail.com> wrote:


On Wed, Dec 16, 2009 at 8:04 PM, Rahul patel <rahul.p...@gmail.com> wrote:
Hi,

But we have no redhat support so we have not configured the yum. If it
is possible without redhat RHN then can you tell me how to configure
the yum on RHEL5.1?

You can configure Centos repos in your RHEL. So find centos repo information on google and configure it. It will work for you.  You will able to get all updates for RHEL 5.1.

If you do not want to configure repo in your server, than you can download required packages from online repo - http://rpm.pbone.net/  and install or upgrade using # rpm -Uvh package* or # rpm -ivh package*

ElectroMech

unread,
Dec 16, 2009, 12:52:28 PM12/16/09
to vg...@googlegroups.com
Hi,

On Wed, Dec 16, 2009 at 8:04 PM, Rahul patel <rahul.p...@gmail.com> wrote:
Hi,

But we have no redhat support so we have not configured the yum. If it
is possible without redhat RHN then can you tell me how to configure
the yum on RHEL5.1?

Even though you have RHEL support the latest Mysql version available is \
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/mysql-5.0.77-3.el5.src.rpm

You can download the rpm and build it and install it.

Same is for php

ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/php-5.1.6-23.2.el5_3.src.rpm

is the latest version.

So mostly you will not find it with Centos even as Centos rpms are built from RHEL source only.


 
Regards,
Rahul--

Thanks and regards.
--
Nilesh Vaghela
ElectroMech
Redhat Channel Partner and Training Partner
404, Maulik arcade, Above Karnavati Pagarakha Bazar,
Nr. Mansi cross Road,
Satellite Rd, Ahmedabad
25, The Emperor, Fatehgunj, Baroda.
www.electromech.info

Rahul patel

unread,
Dec 17, 2009, 7:21:50 AM12/17/09
to VGLUG
Hello,

I have install the apache2.2.14(http://mirror.candidhosting.com/pub/
apache/httpd/httpd-2.2.14.tar.gz) from source code. Now I want to
start the apache during the boot time. How can I start it? Right now I
am starting the apache from command line which is like "/usr/local/
apache2/bin/httpd -k start".

Regards,
Rahul

On Dec 16, 10:52 pm, ElectroMech <electrom...@electromech.info> wrote:
> Hi,
>

> On Wed, Dec 16, 2009 at 8:04 PM, Rahul patel <rahul.patel2...@gmail.com>wrote:
>
> > Hi,
>
> > But we have no redhat support so we have not configured the yum. If it
> > is possible without redhat RHN then can you tell me how to configure
> > the yum on RHEL5.1?
>
> > Even though you have RHEL support the latest Mysql version available is \
>

> ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/...


>
> You can download the rpm and build it and install it.
>
> Same is for php
>

> ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/...

Alok Thaker

unread,
Dec 17, 2009, 7:25:25 AM12/17/09
to vg...@googlegroups.com
You need to make a service for it in xinetd or you can add the line of starting into any of the bootable services of Linux like bootable etc as it is not default apache package you are using.

Thanks,
Alok
Inferno Solutions !
Go with the best !
www.inferno.co.in !
All Linux-Java Solutions-Training under one Roof 1
M:-9925519798




Nirmal Pathak

unread,
Dec 17, 2009, 7:38:40 AM12/17/09
to vg...@googlegroups.com
2009/12/17 Alok Thaker <alok...@gmail.com>:

> You need to make a service for it in xinetd or you can add the line of
> starting into any of the bootable services of Linux like bootable etc as it
> is not default apache package you are using.
>
> Thanks,
> Alok
> Inferno Solutions !
> Go with the best !
> www.inferno.co.in !
> All Linux-Java Solutions-Training under one Roof 1
> M:-9925519798
>
>
>
>
> On Thu, Dec 17, 2009 at 7:21 AM, Rahul patel <rahul.p...@gmail.com>
> wrote:
>>
>> Hello,
>>
>> I have install the apache2.2.14(http://mirror.candidhosting.com/pub/
>> apache/httpd/httpd-2.2.14.tar.gz) from source code. Now I want to
>> start the apache during the boot time. How can I start it? Right now I
>> am starting the apache from command line which is like "/usr/local/
>> apache2/bin/httpd -k start".
>>
>> Regards,
>> Rahul
>>

Check out this links to create init.d scripts for RHEL or Fedora.
https://boxpanel.blueboxgrp.com/public/the_vault/index.php/Configuring_Apache_for_chkconfig_(Legacy)

http://www.zrinity.com/developers/apache/apache2src.cfm

>> On Dec 16, 10:52 pm, ElectroMech <electrom...@electromech.info> wrote:
>> > Hi,
>> >
>> > On Wed, Dec 16, 2009 at 8:04 PM, Rahul patel
>> > <rahul.patel2...@gmail.com>wrote:
>> >
>> > > Hi,
>> >
>> > > But we have no redhat support so we have not configured the yum. If it
>> > > is possible without redhat RHN then can you tell me how to configure
>> > > the yum on RHEL5.1?
>> >
>> > > Even though you have RHEL support the latest Mysql version available
>> > > is \
>> >
>> > ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/...
>> >
>> > You can download the rpm and build it and install it.
>> >
>> > Same is for php
>> >
>> > ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/...
>> >
>> > is the latest version.
>> >
>> > So mostly you will not find it with Centos even as Centos rpms are built
>> > from RHEL source only.
>> >
>> > > Regards,
>> > > Rahul--
>> >
>> > Thanks and regards.
>> > --
>> > Nilesh Vaghela

Have FuN!
--
Nirmal D Pathak.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
What I want is freedom, not life, nor pleasure, nor good!
FLOSS gives that.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Rahul patel

unread,
Dec 17, 2009, 8:07:45 AM12/17/09
to VGLUG
Hi,

I have configured it on my server and its working fine Thanks.

Now I have create one virtual host on server. But when I access it
from browser I am getting an error like " 403 Forbidden - You don't
have permission to access / on this server."

Below is some of configuration which I have taken from httpd.conf
file.

______________________________________________________________________________________________________________________________
ServerRoot "/usr/local/apache2"
#DocumentRoot "/usr/local/apache2/htdocs" - I have comment this line
and add below line
DocumentRoot "/var/www/html"
<VirtualHost 192.168.100.9>
ServerAdmin rah...@google.com
DocumentRoot /var/www/html/
ServerName www.sdu1.com
ErrorLog /usr/local/apache2/logs/sdu1.error_log
TransferLog /usr/local/apache2/logs/sdu1.access_log
</VirtualHost>

______________________________________________________________________________________________________________________________

Regards,
Rahul

On Dec 17, 5:38 pm, Nirmal Pathak <nirmal.pat...@gmail.com> wrote:
> 2009/12/17 Alok Thaker <alok.a...@gmail.com>:


>
>
>
>
>
> > You need to make a service for it in xinetd or you can add the line of
> > starting into any of the bootable services of Linux like bootable etc as it
> > is not default apache package you are using.
>
> > Thanks,
> > Alok
> > Inferno Solutions !
> > Go with the best !
> >www.inferno.co.in!
> > All Linux-Java Solutions-Training under one Roof 1
> > M:-9925519798
>

> > On Thu, Dec 17, 2009 at 7:21 AM, Rahul patel <rahul.patel2...@gmail.com>


> > wrote:
>
> >> Hello,
>
> >> I have install the apache2.2.14(http://mirror.candidhosting.com/pub/
> >> apache/httpd/httpd-2.2.14.tar.gz) from source code. Now I want to
> >> start the apache during the boot time. How can I start it? Right now I
> >> am starting the apache from command line which is like "/usr/local/
> >> apache2/bin/httpd -k start".
>
> >> Regards,
> >> Rahul
>

> Check out this links to create init.d scripts for RHEL or Fedora.https://boxpanel.blueboxgrp.com/public/the_vault/index.php/Configurin...)

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- Hide quoted text -
>
> - Show quoted text -- Hide quoted text -

Alok Thaker

unread,
Dec 17, 2009, 8:13:10 AM12/17/09
to vg...@googlegroups.com
If you are creating a virtual host have you added 192.168.100.9 ip on eth0 interface. One more thing make sure you have appropriate permission for the path too.

Thanks,
Alok
Inferno Solutions !
Go with the best !
www.inferno.co.in !
All Linux-Java Solutions-Training under one Roof !
M:-9925519798

Rahul patel

unread,
Dec 17, 2009, 8:24:05 AM12/17/09
to VGLUG
Hi,

Yes I have already added the IP. After creation of virtual host i have
create the html directory with below command.

#mkdir -p /var/www/html

Directory permission is as below.

[root@public apache2]# ls -ld /var/www/
drwxr-xr-x 3 root root 4096 Dec 17 18:42 /var/www/
[root@public apache2]#

[root@public apache2]# ls -ld /var/www/html/
drwxr-xr-x 2 root root 4096 Dec 17 18:42 /var/www/html/
[root@public apache2]#


[root@public apache2]# ls -ld /var/www/html/index.html
-rw-r--r-- 1 root root 44 Dec 17 18:50 /var/www/html/index.html
[root@public apache2]#


If you need some more details then let me know.

Regards,
Rahul

On Dec 17, 6:07 pm, Rahul patel <rahul.patel2...@gmail.com> wrote:
> Hi,
>

> I have configured it on my server and its working fine Thanks.
>
> Now I have create one virtual host on server. But when I access it
> from browser I am getting an error like " 403 Forbidden - You don't
> have permission to access / on this server."
>
> Below is some of configuration which I have taken from httpd.conf
> file.
>

> ___________________________________________________________________________­___________________________________________________


> ServerRoot "/usr/local/apache2"
> #DocumentRoot "/usr/local/apache2/htdocs" - I have comment this line
> and add below line
> DocumentRoot "/var/www/html"
> <VirtualHost 192.168.100.9>
> ServerAdmin rah...@google.com
> DocumentRoot /var/www/html/
> ServerNamewww.sdu1.com
> ErrorLog /usr/local/apache2/logs/sdu1.error_log
> TransferLog /usr/local/apache2/logs/sdu1.access_log
> </VirtualHost>
>

> ___________________________________________________________________________­___________________________________________________

Alok Thaker

unread,
Dec 17, 2009, 8:47:09 AM12/17/09
to vg...@googlegroups.com
Change the ownership/permissions for /var/www/html for apache:apache and then test it.

Thanks,
Alok
Inferno Solutions !
Go with the best !
www.inferno.co.in !
All Linux-Java Solutions-Training under one Roof !
M:-9925519798

Rahul patel

unread,
Dec 17, 2009, 8:55:00 AM12/17/09
to VGLUG
Hi,

I have set the permission as you said but still not working, even
selinux is also disable on server.

Regarrds,
Rahul

On Dec 17, 6:47 pm, Alok Thaker <alok.a...@gmail.com> wrote:
> Change the ownership/permissions for /var/www/html for apache:apache and
> then test it.
>
> Thanks,
> Alok
> Inferno Solutions !
> Go with the best !www.inferno.co.in!
> All Linux-Java Solutions-Training under one Roof !
> M:-9925519798
>

> > Please readhttp://www.catb.org/~esr/faqs/smart-questions.html<http://www.catb.org/%7Eesr/faqs/smart-questions.html>before posting.


> > You received this message because you are subscribed to the "Vibrant
> > GNU/Linux User Group".
> > To stop receiving emails from this group, mail to
> > VGLUG-un...@googlegroups.com
> > To post to this group, send email to VG...@googlegroups.com

> > For more options, visit this group athttp://groups.google.com/group/VGLUG- Hide quoted text -

Alok Thaker

unread,
Dec 17, 2009, 10:42:21 AM12/17/09
to vg...@googlegroups.com
Make sure your default apache service is not running and also please also show the output of ifconfig -a and ls -l /var/www/ to us on on the mail.


Thanks,
Alok
Inferno Solutions !
www.inferno.co.in !

Go with the best !
All Linux-Java Solutions-Training under one Roof !
M:-9925519798

Bhatt Niraj

unread,
Dec 17, 2009, 3:52:20 PM12/17/09
to vg...@googlegroups.com


2009/12/17 Alok Thaker <alok...@gmail.com>

Hi,
 
try AllowOverride all option , it will solve problem

--
Niraj Bhatt
------------------------------------------------------------
Give me space to stand, I will move the earth

ElectroMech

unread,
Dec 17, 2009, 11:39:57 PM12/17/09
to vg...@googlegroups.com
Hi,

On Thu, Dec 17, 2009 at 6:37 PM, Rahul patel <rahul.p...@gmail.com> wrote:

______________________________________________________________________________________________________________________________
ServerRoot "/usr/local/apache2"
#DocumentRoot "/usr/local/apache2/htdocs" - I have comment this line
and add below line
DocumentRoot "/var/www/html"
<VirtualHost 192.168.100.9>
ServerAdmin rah...@google.com
DocumentRoot /var/www/html/
ServerName www.sdu1.com
ErrorLog /usr/local/apache2/logs/sdu1.error_log
TransferLog /usr/local/apache2/logs/sdu1.access_log
</VirtualHost>


I do not see line something like

NameVirtualHost XXX.XXX.XXX.XXX:80

Please check.
 

--

Rahul patel

unread,
Dec 18, 2009, 5:58:44 AM12/18/09
to VGLUG
Hi,

I have also include the NameVirtualHost entry but still its not
working,

Regards,
Rahul


On Dec 18, 9:39 am, ElectroMech <electrom...@electromech.info> wrote:
> Hi,
>

> On Thu, Dec 17, 2009 at 6:37 PM, Rahul patel <rahul.patel2...@gmail.com>wrote:
>
>
>
>
>
>
>
> > ___________________________________________________________________________­___________________________________________________


> > ServerRoot "/usr/local/apache2"
> > #DocumentRoot "/usr/local/apache2/htdocs" - I have comment this line
> > and add below line
> > DocumentRoot "/var/www/html"
> > <VirtualHost 192.168.100.9>
> > ServerAdmin rah...@google.com
> > DocumentRoot /var/www/html/
> > ServerNamewww.sdu1.com
> > ErrorLog /usr/local/apache2/logs/sdu1.error_log
> > TransferLog /usr/local/apache2/logs/sdu1.access_log
> > </VirtualHost>
>
> I do not see line something like
>
> NameVirtualHost XXX.XXX.XXX.XXX:80
>
> Please check.
>
> --
> --
> Nilesh Vaghela
> ElectroMech
> Redhat Channel Partner and Training Partner
> 404, Maulik arcade, Above Karnavati Pagarakha Bazar,
> Nr. Mansi cross Road,
> Satellite Rd, Ahmedabad

> 25, The Emperor, Fatehgunj, Baroda.www.electromech.info- Hide quoted text -

Alok Thaker

unread,
Dec 18, 2009, 6:03:07 AM12/18/09
to vg...@googlegroups.com
Hi Rahul,

         VirtualHost means you are trying to host multiple websites with alias ip's on the server. Here I don't see any virtual IP given b y you. I don't think you need an virtual host entry just give the DocumentRoot as /var/www/html and it should run.

Thanks,
Alok
Inferno Solutions !
Go with the best !
www.inferno.co.in !
All Linux-Java Solutions-Training under one Roof !
M:-9925519798

Rahul patel

unread,
Dec 18, 2009, 6:17:39 AM12/18/09
to VGLUG
Hi Alok,

Thanks its working fine after removing the virtual host as said by
you.

Agin I wish to Thanks to VGLU. What a great people and what great
group.

Regards,
Rahul

On Dec 18, 4:03 pm, Alok Thaker <alok.a...@gmail.com> wrote:
> Hi Rahul,
>
>          VirtualHost means you are trying to host multiple websites with
> alias ip's on the server. Here I don't see any virtual IP given b y you. I
> don't think you need an virtual host entry just give the DocumentRoot as
> /var/www/html and it should run.
>
> Thanks,
> Alok
> Inferno Solutions !
> Go with the best !www.inferno.co.in!
> All Linux-Java Solutions-Training under one Roof !
> M:-9925519798
>

> > > 25, The Emperor, Fatehgunj, Baroda.www.electromech.info-Hide quoted text


> > -
>
> > > - Show quoted text -
>
> > --

> > Please readhttp://www.catb.org/~esr/faqs/smart-questions.html<http://www.catb.org/%7Eesr/faqs/smart-questions.html>before posting.


> > You received this message because you are subscribed to the "Vibrant
> > GNU/Linux User Group".
> > To stop receiving emails from this group, mail to
> > VGLUG-un...@googlegroups.com
> > To post to this group, send email to VG...@googlegroups.com

> > For more options, visit this group athttp://groups.google.com/group/VGLUG- Hide quoted text -

Alok Thaker

unread,
Dec 18, 2009, 6:27:09 AM12/18/09
to vg...@googlegroups.com
Anytime Rahul. Hard work,Determination,Diligence and Faith in God always pays off.


Thanks,
Alok
Inferno Solutions !
Go with the best !
www.inferno.co.in !
All Linux-Java Solutions-Training under one Roof !
M:-992551979



Reply all
Reply to author
Forward
0 new messages