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

Re: [cobalt-users] How do I install PHP 4x on a RAQ3



Will this procedure work on a Raq2 also ?

Bill
----- Original Message -----
From: "James Bond" <jamesbond@xxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Thursday, August 16, 2001 4:45 AM
Subject: Re: [cobalt-users] How do I install PHP 4x on a RAQ3


> telnet/SSH in as root :
>
> vi /usr/sbin/apxs
> replace    my $CFG_SBINDIR       = '/usr/bin';
> with             my $CFG_SBINDIR       = '/usr/sbin';
>
>
> tar xzf php-4.0.4pl1.tar.gz;
> cd php-4.0.4pl1
> ./configure  --disable-posix --enable-bcmath --enable-calendar
> --enable-memory-limit --enable-safe-mode --enable-ftp --enable-sockets
> --with-apxs
> make
> make install
> cp php.ini-dist /usr/local/lib/php.ini
>
>
> This gives you a very basic PHP installation, without the
> imap functions, any imaging functions, no MySQL functions.
>
> In order to get these up and running as well.
> * install the 4 MySQL packages available at http://www.mysql.com
>     ROOT
>     rpm -ivh MySQL*
>     ADMIN
>     mysqladmin -u root -p password "new_password" (old pass = empty)
>
> *  Install the following graphic libraries
>
>     rpm -ivh libpng*
>     rpm -ivh freetype*
>     rpm -ivh gd-*
>     rpm -ivh gd-d*
>
> * install the libc-client as followed
>
>     gzip -d c-client*
>     tar xvf c-client*
>     cd imap*
>     make slx
>     cd c-client*
>     cp c-client.a /usr/lib/libc-client.a
>     cp rfc822.h /usr/include/
>     cp mail.h /usr/include/
>     cp /linkage.h /usr/include/
>
> and now you can compile with the additional flags
> --with-mysql
> --with-gd
> --with-imap
>
> Some people also like to compile with PostgreSQL, but I do not recommend
> this unless your customers really need a better database then MySQL. But
> MySQL is already such a good database.
>
>
> In order to secure you're PHP installation,
> add the following line to each of your virtualsite in the httpd.conf file
> php_admin_value open_basedir /home/sites/sitex:/tmp
>
> This makes it impossible for customers to visit files outside of their
> directory.
> The /tmp is to allow your customers to perform uploads without any
problem.
>
> You can do this automatically for the next ones by
> adding one line to the Vsite.pm perl module,
> But I'll let you figure out this one by yourself :-))
>
>
> le 16.8.2001 2:07, Jason Brashear à jason@xxxxxxxxxxxxx a écrit :
>
> > Someone please advise.
> > -Jason
> >
> > _______________________________________________
> > cobalt-users mailing list
> > cobalt-users@xxxxxxxxxxxxxxx
> > To Subscribe or Unsubscribe, please go to:
> > http://list.cobalt.com/mailman/listinfo/cobalt-users
>
> =======================================================================
>
> James Bond
> Secret agent 007
> Her Majesty's secret service
>
> =======================================================================
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>