[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Installing apache and php4 on a raq3



I have been researching how to install PHP4 on the RAQ3.  I have installed the RPMS from the cobalt site.  I ran phpinfo() and it told me the following about the build:
 
    Configure command: ./configure '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' '--with-config-file-path=/etc/httpd/conf' '--enable-safe-mode' '--with-exec-dir=/usr/bin' '--with-system-regex' '--disable-debug' '--with-zlib' '--with-gdbm' '--with-db2' '--enable-debugger' '--enable-magic-quotes' '--enable-track-vars' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--with-ftp'
php3.ini file path is set to: /etc/httpd/conf
This became useful because it told me where the 'apxs' is located.  I got the following message from Rasmus of PHP:
 
#       That's the purpose of the --with-apxs build option.  As #long as your
#installed Apache has the mod_so.c module included, you
# can do this.  Check
#with a 'httpd -l'

This is all in the INSTALL file, by the way.

-Rasmus

On Sat, 24 Jun 2000, Brett C. wrote:

> Is there a way to do the same kind of configure described below to add a php module into an existing apache build?  I want to add php as a module on a cobalt raq3, but the apache httpd file on the raq3 contains some info pertaining to the machine that my linux redhat at home does not.  So I am weary of recompiling apache. Any suggestions?
>   ----- Original Message -----
>   From: Rasmus Lerdorf
>   To: Boaz Yahav
>   Cc: PHP General (E-mail)
>   Sent: Friday, June 23, 2000 12:57 PM
>   Subject: Re: [PHP-GENERAL] Compiling
>
>
>   > I often see people get to a situation where they are missing a module and
>   > have to recompile PHP.
>
>   Well, doing something like:
>
>   ./configure --with-mysql=shared
>   make
>
>   does actually work.  It creates modules/mysql.so (along with a standalone
>   PHP binary, but you can ignore that)
>
>   This mysql.so can be loaded into PHP using dl() or via the extension
>   directive in the php.ini file, so you don't actually have to recompile PHP
>   to add a module.  This is true for both the static and the DSO version of
>   PHP.
>
>   > Is there a reason not to compile it all always? I mean, simply compile all
>   > of the options like
>   > LDAP, PDF,FTP, GD, ODBC etc... and the rest of the things most of us use or
>   > maybe will use
>   > sometime.
>
>   The reason being that most of these things require third-party library
>   support and trying to compile it all will be difficult since we would have
>   to go hunting all over the file system looking for the needed stuff and
>   most of it won't be available.
>
>   -Rasmus
 
 
I have at this time not tried to install php like this so if anyone has success let me know.  I will be trying as soon as  time permits.
 
Brett
    
----- Original Message -----
Sent: Sunday, June 25, 2000 1:37 AM
Subject: RE: [cobalt-users] Installing apache and php4 on a raq3

Do you know what the name of the patch is



> To avoid stuffing up your config the best way to do it is compile
> php4 into
> apache and then make it but don't make install it.
> Then copythe binary into /usr/sbin/
> Of course you have to compile php4 into apache as a static module.
>
> There is a patch you'll need to apply to the apache source so you
> don't break
> the cobalt admin. This should be available on the cobaltnet.com ftp.
>
> - Si
>
> > Can somebody tell me where I can find information or how to do
> Installing
> > Apache 1.3.12 and php4.0
> > on a Raq3 without using rpm. I know how to compile the software
> on a Linux
> > box but the rag3 directory structure seems lade out strange. I
> am afraid if
> > I do this it will mess up my server configuration so that I can't set up
> > sits from the interface. Could somebody please help.
> >
> >
> > Richard Kurth
> > northwesthost.com
> > rkurth@xxxxxxxxxxxxxxxxx
> >
> >
> > _______________________________________________
> > cobalt-users mailing list
> > cobalt-users@xxxxxxxxxxxxxxx
> > To Subscribe or Unsubscribe, please go to:
> > http://list.cobalt.com/mailman/listinfo/cobalt-users
> >
>
>
>
> ----
> Simon Weller
> NZ Servers
> Professional Hosting Services into the new millennium
> Specialising in Web and Database Development
> http://www.nzservers.com
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>


_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users