473,396 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

want to run PHP 5 on Apache 2, not easy to do - should I just run apache 1.3?

I have tried to install mod_PHP5 on freebsd where I had installed apache 2.
It throws as error indicating mod_php5 needs apache 1.3.

I am a newbie, shoudl I just run Apache 1.3 rather than trying to run the
latest Apache?
Dec 27 '05 #1
6 2373
NotGiven wrote:
I have tried to install mod_PHP5 on freebsd where I had installed apache
2. It throws as error indicating mod_php5 needs apache 1.3.

I am a newbie, shoudl I just run Apache 1.3 rather than trying to run the
latest Apache?


No.

How did you install PHP? Presumably not from source. Try installing from
source, or if you want a binary get one compiled for apache2.

C.
Dec 27 '05 #2
Make sure you're using the correct SAPI module. Apache 1.X and Apache
2.X use different ones.

Dec 28 '05 #3

"NotGiven" <no****@nonegiven.invalid> wrote in message
news:Bh*******************@bignews1.bellsouth.net. ..
I have tried to install mod_PHP5 on freebsd where I had
installed apache 2. It throws as error indicating mod_php5 needs
apache 1.3.

I am a newbie, shoudl I just run Apache 1.3 rather than trying
to run the latest Apache?

What you want to do is update your ports. Then cd to
/usr/ports/lang/php5

Now just install the port: make install && make distclean

There are certain attributes that should be added to the
httpd.conf file after the installation. You might try using this
installation method to get a better idea of what to do.

make && make install > ~/php5-install.log && make distclean

Now you can just read the log file created to get a better
picture of what you have to do.

By the way, I personally run PHP5 with Apache2 and have no
problems.

--
Gerard Seibert
ge****@seibercom.net

Dec 28 '05 #4
"Gerard Seibert" <ge************@suscom.net> wrote in message
news:Na********************@suscom.com...

"NotGiven" <no****@nonegiven.invalid> wrote in message
news:Bh*******************@bignews1.bellsouth.net. ..
I have tried to install mod_PHP5 on freebsd where I had installed apache
2. It throws as error indicating mod_php5 needs apache 1.3.

I am a newbie, shoudl I just run Apache 1.3 rather than trying to run the
latest Apache?

What you want to do is update your ports. Then cd to /usr/ports/lang/php5

Now just install the port: make install && make distclean

There are certain attributes that should be added to the httpd.conf file
after the installation. You might try using this installation method to
get a better idea of what to do.

make && make install > ~/php5-install.log && make distclean

Now you can just read the log file created to get a better picture of what
you have to do.

By the way, I personally run PHP5 with Apache2 and have no problems.

--
Gerard Seibert
ge****@seibercom.net


Gerard - thanks. I've read alittle about a prefork MPM and others. SOme
things say not to use MPM, on freebsd - like me - you should run prefork.

How the heck do I make that happen? (Feeling like I'm in over my head)
Dec 28 '05 #5

"NotGiven" <no****@nonegiven.invalid> wrote in message
news:CM***************@bignews5.bellsouth.net...
"Gerard Seibert" <ge************@suscom.net> wrote in message
news:Na********************@suscom.com...

"NotGiven" <no****@nonegiven.invalid> wrote in message
news:Bh*******************@bignews1.bellsouth.net. ..
I have tried to install mod_PHP5 on freebsd where I had
installed apache 2. It throws as error indicating mod_php5
needs apache 1.3.

I am a newbie, shoudl I just run Apache 1.3 rather than
trying to run the latest Apache?

What you want to do is update your ports. Then cd to
/usr/ports/lang/php5

Now just install the port: make install && make distclean

There are certain attributes that should be added to the
httpd.conf file after the installation. You might try using
this installation method to get a better idea of what to do.

make && make install > ~/php5-install.log && make distclean

Now you can just read the log file created to get a better
picture of what you have to do.

By the way, I personally run PHP5 with Apache2 and have no
problems.

--
Gerard Seibert
ge****@seibercom.net


Gerard - thanks. I've read alittle about a prefork MPM and
others. SOme things say not to use MPM, on freebsd - like me -
you should run prefork.

How the heck do I make that happen? (Feeling like I'm in over
my head)

I'll be quite honest and admit I know nothing about a 'prefork
MPM'.

I gave you the basic information you need to get PHP5 for Apache2
installed. If you need further information I would suggest you
contact the FreeBSD mailing list directly. I can supply you with
that information if you require it. I am a member there also.

--
Ciao

Dec 28 '05 #6
ok - thanks
Dec 28 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: ojorus | last post by:
Hi! Just wonder if there are any sites with a guide on how to set up apache and php on windows XP. Would like to test my php-pages locally. kind regards ojorus
20
by: White Wolf | last post by:
Hi, I am looking for some sort of easy-to-install binary package to get an environment ready for PHP development on XP. I am starting the development of a site, starting with learning PHP and...
3
by: michael [multnomah] | last post by:
We are trying to standardize on a solid, open, secure Web Server architecture. We are running Apache 2 on Windows 2003 Server. For static HTML, JSP and ColdFusion apps, this is running perfectly,...
6
by: dbyy | last post by:
hi Everyone, I hope (actually I'm sure) someone can help me to solve my problem. I installed Apache V 2.0.53 on Windows 2000 pro SP4 (including latest Windows patches). Installed PHP version...
3
by: jon free | last post by:
Hi, Is it possible to host ASP.NET web application using Apache as a web server? If so, what is the tool or steps? -Jon
5
by: mariosp | last post by:
Hello, Thanks to all for your answers to my previous topic. I decide to install and configure both services on the same 2003 Server. Is that possible or I will crash it? Thanks again. ...
6
by: unwiredbrain | last post by:
I just installed Apache 2.2.2 on my Windows 2000 (SP4) machine to test the new version. Everything works except PHP (version 5.1.4): when starting Apache, it pops out a message saying that it is...
5
by: writeson | last post by:
Hi all, I'm wondering if anyone has tried a scenario that I'm thinking of. At my job we've got a web based product provided by Apache running PHP that accesses MySQL. This web application is...
3
by: Prince of Code | last post by:
Hey all, I would like to build php within apache itself so that it makes my sysadmin life easy. Is there a way to acomplish that ? I would like to do it for windows and for linux. Thx...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.