LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-01-2012, 12:09 PM   #1
JamesDodson
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Rep: Reputation: Disabled
Trying to bring up a LAMP server


I have downloaded the tar.gz files for apache 2.2.22 and php 5.2.17. I have extracted the apache tar.gz file and have created a Makefile containing the following command;
./configure --prefix=/usr/local/httpd-2.2.22 \
--enable-so \
--enable-cgi \
--enable-info \
--enable-rewrite \
--enable-speling \
--enable-usertrack \
--enable-deflate \
--enable-ssl \
--enable-mime-magic
I then chmod 755 on it and then typed make at the command line. The message I received was:
make: *** No targets. Stop.

My OS is: Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Can anyone help... Thanks

Also, I'm new at this forum and will respond promptly to email, I may need a little instruction initially concerning these threads...
 
Old 03-01-2012, 12:17 PM   #2
slugmax
Member
 
Registered: Nov 2008
Location: Northern CT
Distribution: Slackware, Debian, Ubuntu
Posts: 69

Rep: Reputation: 25
You don't want to put the configure command in a makefile, it is run separately on its own, this is the standard configure/make/make install process:

Code:
cd apache-2.2.22
./configure ...rest of config options here
make
make install
[At the top of your post, you can subscribe to a thread using the 'thread tools' menu, email alerts for subscribed posts can be configured under 'Subscribed threads' on the right-hand side of LQ].

Last edited by slugmax; 03-01-2012 at 12:18 PM.
 
Old 03-01-2012, 12:21 PM   #3
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hello JamesDodson

As you're running a RHEL OS, you have a nicer option to install the Apache package and PHP with your "yum" command.
i.e.
Code:
# yum install httpd php
example 1 (its CentOS which is the same as RHEL, except it's free OS)
you can also do the PHP install through webtatic repo (PHP version 5.2.17 or 5.3 if you want)
under section PHP 5.2.17
 
Old 03-01-2012, 12:27 PM   #4
JamesDodson
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Response to Slugmax

Ok, removed this Makefile and ran the ./configure command from the prompt here is the results;
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... yes
setting CC to "gcc"
setting CPP to "gcc -E"
setting CFLAGS to " -pthread"
setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE"
setting LDFLAGS to " "

Configuring Apache Portable Runtime Utility library...

checking for APR-util... reconfig
configure: error: Cannot use an external APR with the bundled APR-util

Progress! But I don't think I'm ready to make yet, would that be a fair statement?
 
Old 03-01-2012, 12:30 PM   #5
JamesDodson
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Response to Lithos

do I need to extract both the apache and php tar files first, or does yum even use the extracted files?

Lithos; I ran the yum command and this is the system response;
[root@web-pmtt-01 /]# yum install http php
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package http available.
Package php-5.1.6-27.el5.x86_64 already installed and latest version
Nothing to do

I'm sorry, I failed to mention that I already have apache 2.2.3 and php 5.1.6-27 installed. I'm trying to upgrade to apache 2.2.17 and php 5.2.17.

I have stopped the httpd pid and have extracted the apache-2.2.22.tar.gz file and was trying to compile it to upgrade my current version of apache that I'm running. Is this the right way to go about it?

Last edited by JamesDodson; 03-01-2012 at 12:43 PM.
 
Old 03-01-2012, 12:30 PM   #6
slugmax
Member
 
Registered: Nov 2008
Location: Northern CT
Distribution: Slackware, Debian, Ubuntu
Posts: 69

Rep: Reputation: 25
Correct, the configure step needs to finish without error. That particular one can be fixed by adding the configure option '--with-included-apr'. Lithos made a good point, however, is there a reason you are not using the packaged versions of apache and PHP? They will be much easier to maintain.
 
Old 03-01-2012, 12:50 PM   #7
JamesDodson
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by slugmax View Post
You don't want to put the configure command in a makefile, it is run separately on its own, this is the standard configure/make/make install process:

Code:
cd apache-2.2.22
./configure ...rest of config options here
make
make install
[At the top of your post, you can subscribe to a thread using the 'thread tools' menu, email alerts for subscribed posts can be configured under 'Subscribed threads' on the right-hand side of LQ].
I made a mistake in replying to your response... I went to the site and put my response there. Here is a copy of what I said on the site;
Ok, removed this Makefile and ran the ./configure command from the prompt here is the results;
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... yes
setting CC to "gcc"
setting CPP to "gcc -E"
setting CFLAGS to " -pthread"
setting CPPFLAGS to " -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE"
setting LDFLAGS to " "

Configuring Apache Portable Runtime Utility library...

checking for APR-util... reconfig
configure: error: Cannot use an external APR with the bundled APR-util

Progress! But I don't think I'm ready to make yet, would that be a fair statement?
 
Old 03-01-2012, 12:56 PM   #8
JamesDodson
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by slugmax View Post
Correct, the configure step needs to finish without error. That particular one can be fixed by adding the configure option '--with-included-apr'. Lithos made a good point, however, is there a reason you are not using the packaged versions of apache and PHP? They will be much easier to maintain.
good question... I developed the php app that I'm deploying using php 5.2.17. There is a lot of date manipulation/calc in the app. I used the updated datetime functions that were recommended to use in the php.org site. As for the apache version, it's my understanding that apache has secured some know vunerabilities with apache 2.2.22. The version that installed from yum had not been updated since Mar 2010.
 
Old 03-01-2012, 01:02 PM   #9
JamesDodson
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by slugmax View Post
Correct, the configure step needs to finish without error. That particular one can be fixed by adding the configure option '--with-included-apr'. Lithos made a good point, however, is there a reason you are not using the packaged versions of apache and PHP? They will be much easier to maintain.
Cool, It's working. I captured the messages in a text file, but it ended with this message;
config.status: error: cannot find input file: `Makefile.in'

but when I do an ls -l, I see Makefile.in in that directory, unless it's looking for it somewhere else?
 
Old 03-01-2012, 01:06 PM   #10
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by JamesDodson View Post
...

Lithos; I ran the yum command and this is the system response;
[root@web-pmtt-01 /]# yum install http php
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.

Setting up Install Process
No package http available.
Package php-5.1.6-27.el5.x86_64 already installed and latest version
Nothing to do

I'm sorry, I failed to mention that I already have apache 2.2.3 and php 5.1.6-27 installed. I'm trying to upgrade to apache 2.2.17 and php 5.2.17.

...
Yes of course it failed ^^^

But try Using CentOS Repositories on RHEL Machines
or Using CentOS 5 Repos in RHEL 5 Server
to get an update and get it installed properly.
 
Old 03-01-2012, 01:10 PM   #11
JamesDodson
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lithos View Post
Yes of course it failed ^^^

But try Using CentOS Repositories on RHEL Machines
or Using CentOS 5 Repos in RHEL 5 Server
to get an update and get it installed properly.
thanks for the info...
I'm looking at the instructions on how to use it now.
I'll let you know how it turns out --Thanks again!

Lithos,

I have been looking for centos-release-5-2.el5.centos.x86_64.rpm and centos-release-notes-5.2.2.x86_64.rpm files and can't find them. The link on step 3 at the location that you submitted won't work. I have tried to google to find where else it could be. I need to find it quick because I have already done steps 1 and 2 removing yum-rhm-plugin and redhat-release. Any suggestions?

Last edited by JamesDodson; 03-01-2012 at 01:52 PM. Reason: let them know the outcome
 
Old 03-01-2012, 04:14 PM   #12
JamesDodson
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Linux Daemon didn't work!!

I tried to do the steps that are in the Linux Daemon site link that you provided (http://jyrxs.blogspot.com/2008/02/us...l5-server.html). I was able to do steps 1 - Remove yum-rhn-plugin and step 2 - Remove redhat-release. When I tried to download the x86_64 rpm files, the files were not found. I've googled to try to find them but have not been able to. Now I'm really in a jam!! Does anyone have any suggestions
 
Old 03-01-2012, 04:25 PM   #13
JamesDodson
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Finally!! I was able to track down those two files that the Daemon site was talking about. I'm uploading them to my linux server although I'm not sure where to put them. I will try to continue with the remaining steps and see if I can get my server updated. At this point any good suggestions are greatly appreciated...
 
Old 03-02-2012, 12:31 AM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Seriously, although its theoretically do-able, I'd just make a decision as to whether you want to pay for support and use RHEL, or replace with Centos entirely.
Personally I 'd avoid creating a mixed system.
YMMV.
PS if you're just installing apache etc, it sounds like you haven't got much important stuff on there yet; I could be wrong.


http://www.linuxtopia.org/online_boo...ion/index.html
http://www.linuxtopia.org/online_boo..._6_deployment/ - RHEL/Centos v6.x is latest
 
Old 03-02-2012, 11:37 AM   #15
JamesDodson
LQ Newbie
 
Registered: Mar 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Chrism01 Reply;

Thanks for your comments. You are right, I don't want a mixed system. I need to let you know that this is not a personal server, it is a company server, so there are certain policies that I have to work within. Furthermore, it is a vm that is hosted by a IaaS. I wish that I seen this Red Hat Deployment Guide before I ripped into removing those files and installing the CentOS files. I will contact the IaaS to see if I can get the system restored from a backup. I will take a hard look at this guide. It is probably the best suggestion yet. Thank you

James

Last edited by JamesDodson; 03-02-2012 at 11:40 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos LAMP Server with unidentified script causing server to port scan ZS- Linux - Security 48 01-30-2011 08:27 AM
lamp server communication goes on and off (apache, sshd, nx-server, mysql) jonjon Linux - Server 2 06-07-2010 12:23 PM
Setting up Ubuntu LAMP Server for local web server sewmyheadon Linux - Newbie 5 02-11-2007 03:06 PM


All times are GMT -5. The time now is 04:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration