php-install Digest 17 Oct 2001 08:44:05 -0000 Issue 509
Topics (messages 4633 through 4640):
Re: help with --with-apxs please!
4633 by: Shaun
Solaris install info - HELP please?
4634 by: Uncle Buck
PHP4 add module to apache problem.
4635 by: root
4638 by: Kevin Haughton
problem include_path under linus debian
4636 by: arnaud B
PHP and Apache not interacting
4637 by: amacar01.uoguelph.ca
Re: --with-xslt-sablot vs --with-sablot [WAS: trouble building php-4.0.7RC3]
4639 by: Yasuo Ohgaki
PHP 4.0.6 + Cobalt Raq3i + Trouble with APXS Install
4640 by: Kacey A. Murphy
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 ---
The first error line should read /usr/local not /usr.local.
My typo.
Shaun
"Shaun" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am building PHP with the --with-apxs=/usr/local/apache/bin/apxs option.
> When I try to configure, I get:
>
> ./configure: /usr.local/apache/bin/apxs: bad interpreter: No such file or
> directory
> Sorry, I was not able to successfully run APXS. Possible reasons:
> 1. Perl is not installed;
> 2. Apache was not compiled with DSO support (--enable-module=so);
> 3. 'apxs' is not in your path.
> configure: error: ;
>
> 1. perl is definitely installed
> 2. running httpd -l results in:
> Compiled-in modules:
> http_core.c
> mod_so.
> 3. as you can see from my config option above 'apxs' is in the path
>
> I have also read the Chapter 31 Build Problems question 11 and verified
that
> the /usr/local/apache/bin/apxs script is correct.
>
> Can someone shed some light on this for me please?
>
> Shaun
>
>
--- End Message ---
--- Begin Message ---
I need to install PHP on a Sun Netra server running the latest Solaris
release. I have no compiler installed. How do I install PHP (with MySQL
support) onto that box? I have been reading everyhting I can, but it all
reads like stereo instructions. (I've been a computer geek for 20+ years,
but this stuff seems nearly impossible to understand).
Is there someone out there that can pass along some instructions?
1) What version of PHP?
2) Where (what link) can I get it?
3) How to install?
Thanks a million....
Dennis Olson
--- End Message ---
--- Begin Message ---
Hey everyone,
I am contemplating pulling out my remaining hairs on my head over this
one. It i just driving me nuts. I am kinda new to this, so please bear
with me. I have successfully installed mysql and apache on my linux box,
red hat 7.1. I am using the instructions at e-gineer.com, and when i
"add the php module to apache" i run into all sorts of trouble. I used
these instructions as follows:
1.Now we have to setup Apache to include the PHP module:
cd ../httpd
2.Re-configure Apache to use the PHP module. You should use your
previous Apache configure command along with the PHP activate module
directive. You can see your previous Apache configure command by doing:
cat config.status
You can configure Apache using the previous command with the
added PHP module by doing:
./config.status --activate-module=src/modules/php4/libphp4.a
If you used the simple Apache install from my instructions this
will effectively perform this:
./configure --prefix=/usr/local/etc/httpd
--sysconfdir=/www/conf \
--activate-module=src/modules/php4/libphp4.a
--enable-module=status \
--enable-module=rewrite --enable-module=status
3.Make Apache with PHP enabled:
make
When i get to the make, the following error is issued:
make[4]: Nothing to be done for `all'.
<=== src/lib/expat-lite
<=== src/lib
===> src/modules
===> src/modules/standard
make[4]: Nothing to be done for `all'.
<=== src/modules/standard
===> src/modules/php4
make[4]: *** No rule to make target `all'. Stop.
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/usr/local/etc/apache_1.3.20/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/etc/apache_1.3.20'
make: *** [build] Error 2
What does this mean? How can i fix it? Thanks for any help
--- End Message ---
--- Begin Message ---
Eek those instructions look hard to follow... I (literally today) just got
my PHP/MySQL/Apache server with RH7.1 running.
- followed these instructions :
http://hotwired.lycos.com/webmonkey/00/44/index4a_page4.html?tw=programming
had a couple of errors where I hadn't installed all the libraries and some
of my directories weren't where I expected but its smooth as silk now ;)
At 15:49 16/10/01 -0500, you wrote:
>Hey everyone,
>
>I am contemplating pulling out my remaining hairs on my head over this
>one. It i just driving me nuts. I am kinda new to this, so please bear
>with me. I have successfully installed mysql and apache on my linux box,
>red hat 7.1. I am using the instructions at e-gineer.com, and when i
>"add the php module to apache" i run into all sorts of trouble. I used
>these instructions as follows:
>
>
>
>1.Now we have to setup Apache to include the PHP module:
>
> cd ../httpd
>
> 2.Re-configure Apache to use the PHP module. You should use your
>previous Apache configure command along with the PHP activate module
>directive. You can see your previous Apache configure command by doing:
>
> cat config.status
>
> You can configure Apache using the previous command with the
>added PHP module by doing:
>
> ./config.status --activate-module=src/modules/php4/libphp4.a
>
> If you used the simple Apache install from my instructions this
>will effectively perform this:
>
> ./configure --prefix=/usr/local/etc/httpd
>--sysconfdir=/www/conf \
> --activate-module=src/modules/php4/libphp4.a
>--enable-module=status \
> --enable-module=rewrite --enable-module=status
>
> 3.Make Apache with PHP enabled:
>
> make
>
>
>When i get to the make, the following error is issued:
>
>make[4]: Nothing to be done for `all'.
><=== src/lib/expat-lite
><=== src/lib
>===> src/modules
>===> src/modules/standard
>make[4]: Nothing to be done for `all'.
><=== src/modules/standard
>===> src/modules/php4
>make[4]: *** No rule to make target `all'. Stop.
>make[3]: *** [all] Error 1
>make[2]: *** [subdirs] Error 1
>make[2]: Leaving directory `/usr/local/etc/apache_1.3.20/src'
>make[1]: *** [build-std] Error 2
>make[1]: Leaving directory `/usr/local/etc/apache_1.3.20'
>make: *** [build] Error 2
>
>
>What does this mean? How can i fix it? Thanks for any help
>
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--- End Message ---
--- Begin Message ---
I ve got a problem with my installation of php apache under linux debian,
when I launch my test page "essai.php3" which contains <? echo "test"; ?>
the result gives
Warning: Failed opening '/usr/local/apache/htdocs/essai.php3' for inclusion
(include_path='.:/usr/local/lib/php') in Unknown on line 0
but php is in its place i.e /usr/local/lib/php...
What's the problem?
--- End Message ---
--- Begin Message ---
Hello,
Recently PHP 4.04 was statically installed with Apache ver 1.3.20 on HP-Unix.
The complied was succesful, but when I loaded up a hello world program nothing
outputs to the screen. I am figuring that I am missing a configuration change
because when you go and view the source you see PHP code, which isen't right.
Basically, it is a blank screen. For some reason the php isen't being
Interpreted.
If you could offer any help for this problem it would greatly be appreciated. I
have tried alot of things.
Thanks
--- End Message ---
--- Begin Message ---
Jens Ansorg wrote:
> after reading the doc in /ext/xslt/README.XSLT-BACKENDS I understand that
>"--enable-xslt
> --with-xslt-sablot" ist the better way for the future so I will use this.
> Just have to work on some scripts that use "xslt_transform()" ...
I see. It was dependency problem. There are some dependency problems for
building PHP. It was one of them :)
--
Yasuo Ohgaki
--- End Message ---
--- Begin Message ---
Hi, I hope someone can help..
Check out the stared line I am running into a problem like this
Not sure what he is meaning by SYMLINK
--
I'm trying to get PHP 4.0.6 to work on a Cobalt RaQ3i server with Java
support like so:
./configure --with-apxs=/usr/sbin/apxs --with-mysql --with-java=/usr/jdk1.2.
2 --enable-track-vars
********************************************
I THINK THE BELOW IS MY PROBLEM ???? HOW DO I DO THE FOLLOWING LINE
*****************************************************
Cobalt chose to put the httpd daemon in /usr/sbin as oppose to /usr/bin so I
had to create a symlink in /usr/bin for the make install to work properly
(otherwise you get a nasty apxs:Warning: /usr/bin/httpd not found or not
executable Continuing anyway...No shared object support for Apache available
under your platform. Make sure the Apache module mod_so is compiled into
your server binary `/usr/bin/httpd'. Continuing anyway...)
************************************************************
Once the ./configure, make, make install was done I moved the libphp_java.so
and php_java.jar to the extensions directory, copied php.ini-dist to
/usr/local/lib/php.ini and edited the [Java] section as so:
[Java]
java.home=/usr/jdk1.2.2
java.class.path=/usr/jdk1.2.2/jre/lib/i386/rt.jar:/usr/jdk1.2.2/jre/lib/:/us
r/jdk1.2.2/jre/lib/i386:/usr/local/lib/php/extensions/php_java.jar
java.library.path=/usr/local/lib:/usr/jdk1.2.2/jre/lib/i386:/usr/jdk1.2.2/jr
e/lib/i386/classic:/usr/jdk1.2.2/jre/lib/i386/native_threads
java.library=/usr/jdk1.2.2/jre/lib/i386/libjava.so
extension=/usr/local/lib/php/extensions/libphp_java.so
I'm confident PHP4 is working as phpinfo gives me some useful output but
there is definately something not right with the DSO/PHPJava side of things.
I tried various different setups in this section to no avail... when I try
and call up jver.php or anything that tries to call an instance of JVM the
browser gives me a 'Website found..waiting reply..' and eventually times
out. I've turned Apache logging up to debug which tells me nothing useful
and PHP logging doesn't even seem to be working so not many clues as to why
its toiling so much.
I've checked for the correct entries in the httpd.conf and restarted Apache
after every php.ini tweak.
I have noticed that unless I specify the LD_LIBRARY_PATH from the shell and
stop and start Apache I get the error message:
Fatal error: Unable to load Java Library
/usr/jdk1.2.2/jre/lib/i386/libjava.so, error: libhpi.so: cannot open shared
object file: No such file or directory in /webroot/jver.php on line 4
Incidentally, I did try to use the shipped JRE (Blackdown Java-Linux port of
the Java 2 SDK to Linux) but when I tried to compile PHP using
just --with-java=/usr it could not find the required libraries.. if I
tried --with-java=/usr/jre1.2 it always tried to append /include to the path
and could not find what it was looking for. So I ended up using the Sun JDK
1.2.2 and configuring with --with-java=/usr/jdk1.2.2 gives no problems at
all.
I'd appreciate any input/suggestions y'all might have, I'm still working
away at it and I'm sure its going to be a simple fix in the end, it usually
works out that way!
Many thanks in advance
Paul Milne
ICT Consultant
Digit Limited
----- Original Message -----
From: "Rasmus Lerdorf" <[EMAIL PROTECTED]>
To: "Kacey A. Murphy" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 17, 2001 3:23 AM
Subject: Re: [PHP] Error starting Apache 1.3.22 with PHP 4.0.6.
> Your Apache install is a mess. How did you install it?
>
> > Just out of curiousity when I run MAKE INSTALL
> > Laste couple lines says
> >
> > /home/packages/php-4.0.6/build/shtool mkdir -p "/usr/lib/apache" &&
> > /usr/sbin/ao
> > apxs:Warning: /usr/bin/httpd not found or not executable
> > apxs:Warning: Continuing anyway...
> > apxs:Warning: No shared object support for Apache
> > apxs:Warning: available under your platform. Make sure
> > apxs:Warning: the Apache module mod_so is compiled into
> > apxs:Warning: your server binary `/usr/bin/httpd'.
> > apsx:Warning: Continuing anyway...
> > apxs:Error: Unknown option: S
> > Usage: apxs -g -n <modname>
> > apxs -q <query> ...
> > apxs -c [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>]
> > [-L <libdir>] [-l <libname>] [-Wc,<flags>] [-Wl,<flags>]
> > <files> ...
> > apxs -i [-a] [-A] [-n <modname>] <dsofile> ...
> > make[1]: *** [install-sapi] Error 1
> > make[1]: Leaving directory `/home/packages/php-4.0.6'
> > make: *** [install-recursive] Error 1
> > [root@ns php-4.0.6]#
> >
> > Is this a problem
>
>
"Stefen Lars" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hello all
>
> I have just compiled and installed Apache 1.3.22 (with module support)
onto
> a freshly installed Red Hat 7.1. I have also compiled and installed PHP
> 4.0.6.
>
> I have edited the httpd.conf script so that PHP parses .php files and also
> loads the PHP module like this:
>
> # Example:
> # LoadModule foo_module libexec/mod_foo.so
> LoadModule php4_module libexec/libphp4.so
>
> However, when I check the configuration file with
>
> /usr/local/apache/bin/apachectl configtest
>
> I get the following error message:
>
> Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
> Cannot load /usr/local/apache/libexec/libphp4.so into server:
> /usr/local/apache/libexec/libphp4.so: undefined symbol: uncompress
>
> Likewise, when I try to start Apache, I get the same error message. This
> message does not make sense to me :-(
>
> Line 205 is the LoadModule line above.
>
> I have installed this combination of web server and PHP many times on many
> different servers, but have never come across that particular error
message.
>
> Would someone be able to explain to me what is going on and how I can
> successfully load the libphp4.so module?
>
> Thank you very much in advance
>
> Stefen Lars
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
--- End Message ---