php-install Digest 18 Jun 2002 11:03:02 -0000 Issue 889
Topics (messages 7360 through 7364):
PHP4 install as so dies if apache2 not compiled with default layout
7360 by: Norm Mackey
headers already sent!!!!!
7361 by: Viraj Kalinga Abayarathna
7364 by: Chris Hewitt
small PHP CGI server
7362 by: BB
How to config the httpd.conf on Apache2 server on Widnows XP?
7363 by: Didier Ma
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
I'm sorry if this has been answered; I've seen what purport to
be answers but none of them have actually worked so far.
After untarring apache 2.0.36 source,
cd httpd-2.0.36
./configure \
--enable-layout={Anything but "Apache"} \
--enable-file-cache=shared \
--enable-cache=shared \
--enable-mem-cache=shared \
--enable-example=shared \
--enable-ext-filter=shared \
--enable-deflate=shared \
--enable-mime-magic=shared \
--enable-cern-meta=shared \
--enable-expires=shared \
--enable-headers=shared \
--enable-usertrack=shared \
--enable-unique-id=shared \
--enable-proxy=shared \
--enable-proxy-connect=shared \
--enable-proxy-http=shared \
--enable-static-support \
--enable-asis=shared \
--enable-info=shared \
--enable-http \
--enable-vhost-alias=shared \
--enable-rewrite=shared \
--enable-ssl \
--enable-so \
--with-ssl=/usr/local/ssl
make
make install
cd ..
cd php-4.2.1
./configure --with-apxs2=/usr/local/apache2/sbin/apxs \
--enable-track-vars \
--enable-safe-mode \
--enable-debugger \
--enable-magic-quotes \
--enable-sysvsem \
--enable-sysvshm \
--with-ftp \
--enable-sigchild \
--enable-sockets \
--enable-memory-limit \
--enable-calendar \
--enable-dbase \
--without-mysql \
--without-msql
Result:
checking for Apache 2.0 module support via DSO through APXS...
Sorry, I cannot run apxs. Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)
The output of /usr/local/apache2/sbin/apxs follows:
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Aborting
well. Perl is installed. apxs was obviously found. Apache2 was built using
--enable-so, even though it should not have been needed - it was automatically
added with the first "=shared" module in the config.
The PHP install dies like a dog if anything but the absolute
standard "Apache" layout is used to compile apache2. I don't know if this is
the PHP, Apache, or apxs's fault, but something seems totally screwed up. Does
anyone know why this keeps biting me in the butt no matter what I try?
Unfortunately, compile and installing Apache2 in the "standsrd" place is
unacceptable because it will happily wipe out existing install, that will be
needed unless this *experimental* compile just happens to turn out perfect and
not need major reconfiguration. I *have* to configure Apache 2.0.36 with
other than that layout.
Please, please, can someone tell me what magickal trick I need to do to get this
to work?!? It's driving me totally insane with its stupid screwups!
--- End Message ---
--- Begin Message ---
Hello
what is the reson for the error "Headers already sent"?
please explain me if you know.
thank you
Vk.
www.CeyNet.net
--- End Message ---
--- Begin Message ---
Viraj,
It means that, after sending headers, you have sent some text to the
browser. You cannot then send more headers, as all headers must be sent
before anything else.
HTH
Chris
Viraj Kalinga Abayarathna wrote:
>Hello
> what is the reson for the error "Headers already sent"?
>please explain me if you know.
>
>thank you
>Vk.
>www.CeyNet.net
>
>
--- End Message ---
--- Begin Message ---
I am trying to write a small CGI webserver.
Having finally found out how to pass the Environment vars onto PHP, I am
stumpted to find that PHP wasn't reading them and putting them in their
place (GET vars).
I tried changing the exe from the php-cli to just php. This now brings up a
security error and I cannot find a solution
Can anyone help?
--- End Message ---
--- Begin Message ---
I have installed the Apache2 server and php4.2.1 and it runs sucessfully on
my IIS. But I don't know how to config the httpd.conf for Apache2. Please
help.
D.
--- End Message ---