Re: [phplib] How to install on shared server? From: Fadi Chakik (chakik <email protected>)
Date: 08/15/00

Hi,

You'll find following the response that I've got 2 weeks ago from James in
response on a previous mail of mine. It answer all your questions about the
instructions on how to install phplib in a shared server...
.
Regards,
-Fadi
http://www.hekmeh.com

---BEGIN James Mail------

On Thu, 27 Jul 2000, Fadi Chakik wrote:
> Hi, does this all we need to install phplib on a web server?
> I thought that I should have my own dedicated server to do, because when
> reading installing phplib tutorial, I found that I need to add things to
> files where only root has access to them.
>
> In the documentation there is for example:
> ---------
> Step 3
> Get to the php3.ini file for your web servers PHP interpreter and update
the
> include_path statement so that it points to that php directory. Update the
> auto_prepend_file statement so that it points to the prepend.php3 file in
> that include directory.
> ---------
>
>
> Thus if I cannot have access to modify these files, I can use .htaccess to
> setup the include_path and auto_prepend_file as it shown below...Does?
>
> Sorry to be so long, to install phplib, I should download phplib-7.2c for
> example, decompress it and install it under any directory in my web
account.
> After that, just I might be able to put the following lines
> in an .htaccess file in my document root:
> ---snip---
> php_value include_path .:/path/to/phplib/php/
> php_value auto_prepend_file prepend.php3
> ---snip---

These lines should work. (replace /path/to/phplib with the absolute path to
the directory where you installed phplib. For security reasons, this should
be outside of you document root). If they don't, you can try putting a file
called php.ini in the same location with the proper settings.

also, run phpinfo() and check the magic_quotes_* settings. if any of them
are
turned on, you'll probably need to turn them off. To do so, add the
following
line to .htaccess (or the equivalent in php.ini) for each one that is on:

php_flag magic_quotes_<type> off

where <type> is the suffix of the flag that's on by default.

>
> Should this be all required steps to install PhpLib? What about the MySQL
> database, I have acess to create a such database but further infos about
> this will be very welcome.

You need to create a database for phplib, and then do the following command
from the phplib7.2c/stuff directory:
mysql -u<dbusername> -p <dbname> < create_database.mysql

where <dbusername> is the username you use to connect to the database and
<dbname> is the name of the database.

and enter the your db password when prompted

> Thanks, I'm very interested in getting it working...
>
> -Fadi
>
> ---------
> http://www.hekmeh.com
> "hekmeh" is the
> Asia's Basketball Champion,
> Lebanese Basketball Champion &
> Arab Basketball Champion.
>

Glad to be of assistance. I hope it helps.
James Potts
(webmaster <email protected>)

---END James Mail------

----- Original Message -----
From: Michael D. Eschner <mde <email protected>>
To: <phplib <email protected>>
Sent: Tuesday, August 15, 2000 8:11 PM
Subject: Re: [phplib] How to install on shared server?

> > I would like to see the instructions too, I am also wondering how to
> install
> > phplib in a shared server...
>
> Excuse my bad english, but I'll try it.
>
> 1. You need track_vars = on, look in phpinfo()
> 2. If you don't have track_vars on you have to begin your script with
> php_track_vars? (this is a Lexer-token and has to be exactly written as
> in the example)
>
> <?php_track_vars?><?php
> // include()
> page_open(...)
> ?>
>
> 3. If you can't set include_path you must include in prepend.php3 the
> variable $_PHPLIB["libdir"] and include prepend.php3 in all your pages
> which use PHPLIB
>
> Pages which use PHPLIB looks so:
>
> <?
> include ("/home/www/include/prepend.php3");
> page_open(...);
> ?>
>
> In prepend.php3 is written:
>
> if(!is_array($_PHPLIB)) {
> $_PHPLIB["libdir"] = "/home/www/include";
>
> All the other installation is the same as with an own server. I have the
> PHPLIB installed on a shared server and it runs without problems.
>
> mde
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>