PDA

View Full Version : Sessions, Modules and Apache2.0 oh my!


bcarl314
10-11-2002, 03:28 PM
I'm trying to set up a development environment on a compute and do NOT want to download phpDev. I want to do this a nd learn what I'm doing.

Having said that, I've got a few questions.

I would like to install Apache 2.0 with php as a module, but I read somewhere that the old 1.3.x modules don't work with apache 2.0 and that they will need to be rewritten.

Is there a php module for apache2.0???

Next, it is also my understanding that if you set up php as a cgi, you cannot use sessions. Is that true?

tia

mordred
10-11-2002, 05:00 PM
Originally posted by bcarl314
Is there a php module for apache2.0???


I think support for Apache2.0 is experimental yet, so it can be some hours of work to get PHP and Apache2.0 to run together. Until Apache2.0 support gets official, I would stay with 1.3.


Next, it is also my understanding that if you set up php as a cgi, you cannot use sessions. Is that true?


That would be new to me, AFAIK session support is enabled by default for CGI and module versions as well. So I answer: No.

ShriekForth
10-11-2002, 05:49 PM
I was thinking the same thing, I was running apache 1.3, and php4.1 but after a little bit of research, I found that you can get it running without much hastle actualy.

I downloaded and install apache_2.0.43-win32-x86-no_ssl.exe (http://www.apache.org/dist/httpd/binaries/win32/), and php-4.2.3-Win32.zip (http://www.php.net/get_download.php?df=php-4.2.3-Win32.zip)
Follow all the steps listed in the php install doc to make it work with apache 1.3, basicly add 3 lines and copy a dll.

Meanwhile, go to snaps (http://snaps.php.net/win32/) and get the latest version php4-win32-latest.zip. It contains 2 files you need. php4apache2.dll, and php4ts.dll.

Instead of using the 2 files that came in 4.23 replace them with the ones you get out of the lastest version code. I had only one problem after that, I had to comment out the line
AddModule mod_php4.c then apache started right up and everything seems to work just fine.

I don't know if I would use it in production, I just have it running locally, and it seems to server up everything I have written to this point just fine.

ShriekForth