LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-09-2009, 07:32 AM   #1
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Rep: Reputation: 15
Static Apache


Hi friends...

I hope I will get sooner reply for this thread...

I have php4 as cgi and php5 as module running on apache...Now I want to run static apache with php....can anyone guide me in this how I make static apache?

Thanks in advance
 
Old 08-10-2009, 12:00 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,274

Rep: Reputation: 148Reputation: 148
Do you mean compile php with apache statically ??
 
Old 08-10-2009, 02:07 AM   #3
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by kirukan View Post
Do you mean compile php with apache statically ??
I meant I want to link apache statically so what configure line should be use for it? and yes I want to run php statically on apache...plz guide me
 
Old 08-10-2009, 02:17 AM   #4
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
I don't know if you even CAN do that - this link suggests you can't, at least not with apache2.

Now, you have asked a lot of different questions in a lot of different threads related to this project of trying to get apache with two versions of php running, and as far as I've seen never explained what you are really trying to do and why you think this is the way to do it. If we knew what your real goal was, maybe we could show you an easier way to do it, but as it is I think you've got multiple members scratching their heads and wondering what the hell's going on here.
 
Old 08-10-2009, 02:31 AM   #5
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by karamarisan View Post
I don't know if you even CAN do that - this link suggests you can't, at least not with apache2.

Now, you have asked a lot of different questions in a lot of different threads related to this project of trying to get apache with two versions of php running, and as far as I've seen never explained what you are really trying to do and why you think this is the way to do it. If we knew what your real goal was, maybe we could show you an easier way to do it, but as it is I think you've got multiple members scratching their heads and wondering what the hell's going on here.

Thanks for your quick reply....

Actually I am in a learning process...I first wanted to run apache, then my task was run php on apache, after that I have to run php4 and php5 both running on apache one as cgi and one as module, and now my task is to run statically php on apache.....

I am new to linux my background is not from IT related things...and now I have to work in a Webhosting company in tech support department..I am in training phase and need your help thats why I asked these silly question..please guide me
 
Old 08-10-2009, 02:36 AM   #6
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
We don't mind the questions; if we did, we wouldn't come here to answer them.

I'm just trying to grasp what you're trying to do. Why do you want to run two versions of php?
 
Old 08-10-2009, 02:39 AM   #7
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by karamarisan View Post
We don't mind the questions; if we did, we wouldn't come here to answer them.

I'm just trying to grasp what you're trying to do. Why do you want to run two versions of php?
Running to version on same apache issue had solved...I have done it...Now my task is to run php statically on apache. I know there is only a difference of configuration line...like:

./configure ?????????

thats what I am asking that what configure line should be use for compiling/link it statically.

Thanks for the humble reply
 
Old 08-10-2009, 02:54 AM   #8
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
I honestly don't understand why this is so hard to communicate sometimes - please read carefully:
1) I understand that you are asking how to get PHP statically compiled into apache now. I already gave you some relevant information that you don't appear to have read.
2) I understand that you got past your 'one as cgi, one as a module' issue.
3) I am asking, now and in my last post, WHY are you doing these things? What is the overarching goal to which each of these things is a step?
Hopefully you get me on this one, because I'm getting to the end of my night and if not, someone else will have to take over.
 
Old 08-10-2009, 03:07 AM   #9
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by karamarisan View Post
I honestly don't understand why this is so hard to communicate sometimes - please read carefully:
1) I understand that you are asking how to get PHP statically compiled into apache now. I already gave you some relevant information that you don't appear to have read.
2) I understand that you got past your 'one as cgi, one as a module' issue.
3) I am asking, now and in my last post, WHY are you doing these things? What is the overarching goal to which each of these things is a step?
Hopefully you get me on this one, because I'm getting to the end of my night and if not, someone else will have to take over.
You're right sometimes it takes so much time to tell some one that what we exactly want to do...

1, I have read your given link but in that link I didnt find statically configuration....its normal apxs2 configuration in it..I told You that I want to run STATICALLY.
2, Thanks for understanding my past issue.
3, I told you in detail that I am working in a Web hosting company..I have just joined it a month ago...My past experience is not related to IT or WEB HOSTING..thats why I am facing many problems here and asking these questions because I am in learning phase. My seniors gave me this task that RUN PHP ON APACHE STATICALLY, and now I have to complete this task...

Hope you understand now...and I m really sorry for bothering you...

Thanks
 
Old 08-10-2009, 03:17 AM   #10
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
So these are arbitrary tasks from above. Very strange and my apologies. The relevant part of the link:
Quote:
In this article we are going to compile PHP as Apache 2 shared module because there is no option, in case of Apache 2, to compile PHP as Apache static module. It was possible with Apache versions prior to version 2.
So, which apache are you using? If it's 2, perhaps you should have a talk with your superiors about whether this is really what they want to be paying you to do - regardless of which version you're using, I cannot imagine what benefit they expect to see from making you do this. Almost every website in the world that runs apache and php does so through mod_php.
 
Old 08-10-2009, 03:23 AM   #11
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by karamarisan View Post
So these are arbitrary tasks from above. Very strange and my apologies. The relevant part of the link:

So, which apache are you using? If it's 2, perhaps you should have a talk with your superiors about whether this is really what they want to be paying you to do - regardless of which version you're using, I cannot imagine what benefit they expect to see from making you do this. Almost every website in the world that runs apache and php does so through mod_php.
Actually I am in Technical Support Department so my superiors want me to know every techniques related to clients problems...

If I install apache 1 then I will be able to do my task?
 
Old 08-10-2009, 03:42 AM   #12
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
It's possible, or so that same link implies. I don't know, but Google for 'php apache compile static' or something like that and you should be able to find it.

However, I am pretty sure no client is ever going to ask you how to do this, and if one does, the best advice you can give him is 'don't'. Your call as to whether to shut up and do as you're told or try to inform your superiors that they are wasting money.
 
Old 08-10-2009, 03:47 AM   #13
smaj84_1
Member
 
Registered: Jul 2009
Location: Pakistan
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Smile

Quote:
Originally Posted by karamarisan View Post
It's possible, or so that same link implies. I don't know, but Google for 'php apache compile static' or something like that and you should be able to find it.

However, I am pretty sure no client is ever going to ask you how to do this, and if one does, the best advice you can give him is 'don't'. Your call as to whether to shut up and do as you're told or try to inform your superiors that they are wasting money.
Thanks for helping and guiding me...Thanks alot..
 
Old 08-10-2009, 03:48 AM   #14
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
Best of luck. If you do find you have to do this, don't hesitate to come back; there may be other people here who did this back in the day and remember how or something.
 
  


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
Apache rewrite rule help - dynamic url to static page DukeLeto Linux - Software 3 11-12-2008 11:26 AM
Using Apache server with non-static IP address issue coldbeer Linux - Server 2 07-06-2007 08:09 AM
Make apache forward failed static requests to Tomcat newby101 Linux - Server 0 08-29-2006 10:34 PM
static IP, a router, getting apache working ok Lan-side flippantfig Linux - Networking 2 06-04-2004 12:02 PM
Questions about recompiling Apache and PHP (static) Maarten_Holland Linux - Newbie 0 05-09-2004 05:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:29 AM.

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