Previous Thread
Next Thread
Print Thread
Rate Thread
#206340 11/24/2000 5:43 PM
Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
I'm currently looking at installing PHP 4.0.3pl1 on the server and looking through the documentation it says:

There are several ways to compile and configure PHP for the Unix platform.
- As an Apache module
- As an fhttpd module
- For use with AOLServer, NSAPI, phttpd, Pi3Web, Roxen, thttpd, or Zeus.
- As a CGI executable

Also in the install file distinguishes between static modules and dynamic modules, emphasising to only install either the static module or the dynamic one.

Webmonkey has a very good tutorial on installing PHP4 and I will be reading it now as it covers a lot of relevant points.
http://hotwired.lycos.com/webmonkey/00/44/index4a.html?tw=programming

Darren.
http://www.bullpen.com.au

Sponsored Links
Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
I need help from anyone who has installed PHP.

Installing the Apache Dynamic module has been unsucessful so far and I've exhausted all the help files I can find around the web.

The problem is with finding the apxs script after running
./configure --with-mysql --with-apxs

mod_so is enabled as the compiled-in modules contains http_core.c and mod_so.c

--with-apxs tells me that it can't find the apxs script. This seems to be common as it mentions to use the absolute path if this occurs. However it's not in /usr/local/apache/bin where it usually should be and doing find / -name apxs -ls returns no results.

There is a file called apxs.pl but this is located in /usr/local/etc/httpd/compile/src/support/apxs.pl
Also I had to make this file executable as well as change the path to perl at the top.

Running ./configure --with-mysql --with-apxs=/usr/local/etc/httpd/compile/src/support/apxs.pl returns the following

loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking host system type... i686-pc-linux-gnu
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.27 (ok)
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking whether ln -s works... yes
checking for flex... flex
checking for flex... (cached) flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking for pthreads_cflags... -pthread
checking for pthreads_lib...

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache module support via DSO through APXS...
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: Sorry, I cannot run apxs. Either you need to install Perl or you need to pass the absolute path of apxs by using --with-apxs=/absolute/path/to/apxs

I can't get past step 2a in the install file because this apxs script that I'm supposed to be enabling in the configuring of the PHP install is not doing the job properly. I'm not even sure it's the correct apxs file.

This is confusing to me as I thought that I could do the DSO (Dynamic) module install as I had the necessary compiled-in modules. However I think I need the --with-apxs included in order to run it as DSO.

Anyone who has installed PHP themselves would know what I'm talking about so if anyone can help me out that would be much appreciated as I really don't know where to go to from now.

I know Scream is running PHP/4.0.3pl1 which is the same version I'm trying to install, maybe you can help me out if you've already been through this.

Darren.
http://www.bullpen.com.au

Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
I contacted my server provider about this problem and they have recompiled Apache and installed it.
I just checked and the apxs script is now in /usr/local/apache/bin/apxs so everything should be go from here. No probs. []/w3timages/icons/smile.gif[/]

Darren.
http://www.bullpen.com.au

Joined: Jan 2000
Posts: 796
MTO Offline
Addict
Addict
Offline
Joined: Jan 2000
Posts: 796
Glad to hear you got it! []/w3timages/icons/smile.gif[/]

Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
Well not quite. I just went to start the install again and now they recompiled it, mod_so.c is no longer in the compiled-in modules as it was before. Arrrgh!

Darren.
http://www.bullpen.com.au

Sponsored Links
Anonymous #206345 11/28/2000 11:03 PM
Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
I have now installed PHP4 []/w3timages/icons/smile.gif[/]
Phew!

Darren.
http://www.bullpen.com.au

Joined: Aug 2000
Posts: 3,590
Likes: 1
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Likes: 1
Look at my comment to the thread in the PHP boards where ya said no one was helping you out here. I now notice that I must not have submited my post.

Doug
http://www.netherworldrpg.net


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2042
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 30
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)