Web Hosting Talk







View Full Version : RaQ3 - I installed php 4.03 and mysql 3.2232 !!


eva2000
12-24-2000, 09:37 PM
Cool, i installed it and it seems to be working :)

The thing is i followed Felix's instructions he sent me only half way (couldn't do the rest :( ) and then followed another set of instructions for the rest. I am not sure if i will have any problems. So i'll list

1. what felix sent me
2. what steps in felix's instructions i didn't do
3. what steps i did from there
4. how i installed php 4.03pl

[Note]: All done in root
============================================================
1. what felix sent me
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/experimental/raq3/MySQL-3.22.32-1.i386.rpm
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/experimental/raq3/MySQL-client-3.22.32-1.i386.rp
m
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/experimental/raq3/MySQL-devel-3.22.32-1.i386.rpm
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/experimental/raq3/MySQL-shared-3.22.32-1.i386.rp
m
rpm -Uvh ftp://ftp.cobaltnet.com/pub/contrib/i386/perl-DBI-1.14-1.i386.rpm
rpm -Uvh
ftp://ftp.cobaltnet.com/pub/contrib/i386/perl-Msql-Mysql-modules-1.2214-1.i3
86.rpm

tar -zxf freetype*
tar -zxf imap*
tar -zxf gd*
tar -zxf libpng*
tar -zxf jpeg*
tar -zxf php*
tar -zxf zlib*
tar -zxf Zend*
rm *

mv freetype* freetype
mv imap* imap
mv gd* gd
mv libpng* libpng
mv jpeg* jpeg
mv php* php
mv zlib* zlib
mv Zend* zend

# ZLIB (php mod + needed for gd)
cd zlib
./configure
make
make test
mkdir /usr/local/include
make install

# Graphic installation (gd+jpeg+png+freetype)
cd ../freetype
make
make
make install

cd ../jpeg
./configure
make
make install
mkdir lib
cp libjpeg.a lib

cd ../libpng
cp scripts/makefile.linux makefile
# cp scripts/makefile.gcmmx makefile
make
make test
make install

cd ../gd
pico -w Makefile
###### changes ##########
COMPILER=gcc
AR=ar
CFLAGS=-O -DHAVE_JPEG -DHAVE_LIBTTF
LIBS=-lm -lgd -lpng -lz -ljpeg -lttf
INCLUDEDIRS=-I. -I/usr/local/include -I/usr/include -I../jpeg -I../png -I../
zlib -I../freetype/lib
LIBDIRS=-L. -L/usr/local/include -L/usr/include -L../jpeg -L../png -L../zlib
-L../freetype/lib -L/usr/local/lib/.libs
INSTALL_LIB=/usr/local/lib
INSTALL_INCLUDE=/usr/local/include
INSTALL_BIN=/usr/local/bin
###### changes ##########
make
make install
cp ../libpng/libpng* ./
cp ../libpng/libpng.so.2 /usr/lib

/usr/lib/libpng.so.2
/usr/local/lib/libpng.a
/usr/local/lib/libpng.so.2.1.0.7
/usr/local/lib/libpng.so.2
/usr/local/lib/libpng.so

cd ../imap
make lnp

pico -w /usr/sbin/apxs
######### CHANGE ##########
chage:
my $CFG_SBINDIR = '/usr/bin'; # substituted via APACI install
to
my $CFG_SBINDIR = '/usr/sbin'; # substituted via APACI install
###################

pico /etc/ld.so.conf
######## ADD ##########
/usr/local/lib/mysql
/usr/local/lib/
############

cd ../php
'./configure' '--with-imap=../imap' '--enable-xml' '--with-mysql'
'--with-apxs=/usr/sbin/apxs' '--with-zlib-dir=../imap' '--with-gd=../gd'
'--with-png-dir=../usr/local/lib/' '--with-jpeg-dir=../jpeg'
'--enable-track-vars'
make
make install
cp php.ini-optimized /usr/local/lib/php.ini

####### Zend optimizer installation
cd ../zend
mkdir /usr/local/Zend
mkdir /usr/local/Zend/lib
cp ZendOptimizer.so /usr/local/Zend/lib

pico -w /usr/local/lib/php.ini
####### CHANGE ###########
engine = Off
register_globals = On
register_argc_argv = On
magic_quotes_gpc = On
####### ADD ###########
zend_optimizer.optimization_level=15
zend_extension="/usr/local/Zend/lib/ZendOptimizer.so"
#######################

pico -w /etc/httpd/conf/httpd.conf
####### CHANGE ############
LoadModule php4_module /usr/lib/apache/libphp4.so

####### ADD before NameVirtualHost 123.123.123.123 (include the ### PHP
stuff)

ExtendedStatus On
<Location /status>
order allow,deny
allow from all
require user admin
Authname ServerStatus
Authtype Basic
SetHandler server-status
</Location>
#################################PHP SAFE MODE############################
<Directory /home/sites/home>
php_admin_flag engine On
php_admin_value doc_root /home/sites/home
php_admin_value safe_mode_exec_dir .:/home/sites/home
php_admin_value open_basedir .:/tmp:/home/sites/home
php_admin_value include_path .:/home/sites/home
</Directory>
###############################EO PHP SAFE MODE###########################

############################

pico -w /etc/httpd/conf/srm.conf
######### CHANGE ############
DirectoryIndex index.html index.htm index.shtml home.html home.htm index.php
index.php3 index.phtml index.phps index.cgi index.pl

####### CHANGED /ADD ########
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps

#################

###### Clean-up! ########
cd ..
rm -R *
============================================================
2. what steps in felix's instructions i didn't do
i couldn't do anything from
tar -zxf freetype* onwards through to the clean up.. just kept on saying directory and file not found when i tried to tar -zvf all those files...?
============================================================
3. what steps i did from there
so from there i followed other instructions
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/freetype-1.2-7.i386.rpm
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/freetype-devel-1.2-7.i386.rpm
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/freetype-utils-1.2-7.i386.rpm
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/gd-1.3-5.i386.rpm
rpm -Uvh ftp://ftp.cobaltnet.com/pub/experimental/raq3/gd-devel-1.3-5.i386.rpm

then went to installed php 4.03pl
============================================================
4. how i installed php 4.03pl

php 4.04 has some bugs according some who has installed it so i went with the source 4.03pl

at http://www.php.net/do_download.php?download_file=php-4.0.3pl1.tar.gz&source_site=www.php.net


## installation php4.0.3pl1 for raq3
cd /root
tar zxvf php4.0.3pl1.tar.gz
cd php-4.0.3pl1
./configure --with-mysql --with-apxs
make
make install
cd /etc/httpd/conf
pico srm.conf
## add to srm.conf:
DirectoryIndex index.html index.htm index.shtml home.html home.htm index.php
^^^^^^^^^^^^
## you can also add index.php4 and index.phtml there if you want..
AddType application/x-httpd-php .php .php4 .phtml
## save file
pico httpd.conf
## change the php4 LoadModule, thats allready added to httpd.conf:
LoadModule php4_module /usr/lib/apache/libphp4.so
## save file
/etc/rc.d/init.d/httpd restart
echo "<? phpinfo(); ?>">/home/sites/home/web/test.php
## test if it works in your browser

============================================================

i installed phpMyAdmin and a php/mysql script and it worked... but not sure if there is any problems from not doing the steps felix outlined ?

eva2000
12-24-2000, 09:39 PM
Thanks Felix C.Courtemanche :D

Merry Christmas

Félix C.Courtemanche
12-25-2000, 12:41 AM
Clarification :)

The tar -zxf whatever.tar.gz lines are only used if you downloaded the latest version of those modules. For example, visit http://www.php.net/manual and check for a specific module (graphic function for example) They will tell you to download certains modules. Those are the one I am unzipping & installing before installing PHP itself.

With the configuration I gave you, you have our own default installation:
PHP4.0.x with Zlib (.gz compression), GDlib (creation of .wbmp, .png and .jpg with lib_jpeg and lib_png) as well as the IMAP functions to connect to imap & pop3 mail servers.

Those were modules requested by our customers. Finally, I set up zend optimizer which can be found & http://www.zend.com and speeds up the PHP process by almost 50% in certain cases.

And well, I'm glad it worked :)

eva2000
12-25-2000, 03:27 AM
darn it... i just tried to install the zend optimiser and followed your instructions above and it killed my php alltogether



pico -w /etc/httpd/conf/httpd.conf
####### CHANGE ############
LoadModule php4_module /usr/lib/apache/libphp4.so

####### ADD before NameVirtualHost 123.123.123.123 (include the ### PHP
stuff)

ExtendedStatus On
<Location /status>
order allow,deny
allow from all
require user admin
Authname ServerStatus
Authtype Basic
SetHandler server-status
</Location>
#################################PHP SAFE MODE############################
<Directory /home/sites/home>
php_admin_flag engine On
php_admin_value doc_root /home/sites/home
php_admin_value safe_mode_exec_dir .:/home/sites/home
php_admin_value open_basedir .:/tmp:/home/sites/home
php_admin_value include_path .:/home/sites/home
</Directory>
###############################EO PHP SAFE MODE###########################

############################

pico -w /etc/httpd/conf/srm.conf
######### CHANGE ############
DirectoryIndex index.html index.htm index.shtml home.html home.htm index.php
index.php3 index.phtml index.phps index.cgi index.pl

####### CHANGED /ADD ########
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps

#################

[Edited by eva2000.com on 01-10-2001 at 03:38 PM]

eva2000
12-25-2000, 05:03 AM
hmm... uninstalling zend.. allowed php on my virtual sites ?

how can i get zend to work on virtual sites as well as primary domain ?

-Edward-
12-25-2000, 08:56 AM
Hi,

grab this line - php_admin_flag engine On

and place anywhere after the phpsafe mode thing. restart yout http.conf file and do the phpinfo.php on another domain and it should work fine.

Karl from kdawebservices taught me that (=. Thanks Karl.

eva2000
12-25-2000, 09:19 AM
Originally posted by Technics
Hi,

grab this line - php_admin_flag engine On

and place anywhere after the phpsafe mode thing. restart yout http.conf file and do the phpinfo.php on another domain and it should work fine.

Karl from kdawebservices taught me that (=. Thanks Karl. YAHOOOOOO!!

Thanks Technic/Karl .. that fixed it !!!

-Edward-
12-25-2000, 11:00 AM
No Problemo.

Félix C.Courtemanche
12-25-2000, 06:17 PM
The point of having the PHP safe stuff is to prevent any of your sites to read any public readable files on the system, write anywhere, etc.

It is very VERY usefull and you should consider using it. You have to copy the model of PHP safe that I gave, but modify it that way for your other sites:

<Directory /home/sites/site1>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site1
php_admin_value safe_mode_exec_dir .:/home/sites/site1
php_admin_value open_basedir .:/tmp:/home/sites/site1
php_admin_value include_path .:/home/sites/site1
</Directory>

, site2, site3... and so on.

It is as safe as allowing telnet on it when these commands are not used. But harder to trace when it happens :)

-Edward-
12-25-2000, 06:35 PM
I probably will switch to that mode when other things are taken care off. Just wanted to make life easier doing it this way.

(SH)Saeed
12-25-2000, 06:57 PM
Hi there Technics,
Merry Christmas buddy.

I just ordered my first RaQ3 and I was wondering how things are working out for you?

Saeed

teck
12-25-2000, 10:03 PM
i think there should be a forum created just for new raq3's and all the installation tips/guidelines. that would leave one forum with all the important info as to how to install stuff and how to trouble shoot them. this way, no one has to go searching deeply for posts.

eva2000
12-25-2000, 10:05 PM
Originally posted by Félix C.Courtemanche
The point of having the PHP safe stuff is to prevent any of your sites to read any public readable files on the system, write anywhere, etc.

It is as safe as allowing telnet on it when these commands are not used. But harder to trace when it happens :) i see, so do i put


<Directory /home/sites/site1>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site1
php_admin_value safe_mode_exec_dir .:/home/sites/site1
php_admin_value open_basedir .:/tmp:/home/sites/site1
php_admin_value include_path .:/home/sites/site1
</Directory>

each time before the virtual site listed ?

so i would have

<Directory /home/sites/site1>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site1
php_admin_value safe_mode_exec_dir .:/home/sites/site1
php_admin_value open_basedir .:/tmp:/home/sites/site1
php_admin_value include_path .:/home/sites/site1
</Directory>

NAME VIRTUAL SITE FOR site1

<Directory /home/sites/site2>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site2
php_admin_value safe_mode_exec_dir .:/home/sites/site2
php_admin_value open_basedir .:/tmp:/home/sites/site2
php_admin_value include_path .:/home/sites/site2
</Directory>

NAME VIRTUAL SITE FOR site 2

and so on ?

Or do i put one after the other but before the Name Virtual site listings i.e.

<Directory /home/sites/site1>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site1
php_admin_value safe_mode_exec_dir .:/home/sites/site1
php_admin_value open_basedir .:/tmp:/home/sites/site1
php_admin_value include_path .:/home/sites/site1
</Directory>

<Directory /home/sites/site2>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site2
php_admin_value safe_mode_exec_dir .:/home/sites/site2
php_admin_value open_basedir .:/tmp:/home/sites/site2
php_admin_value include_path .:/home/sites/site2
</Directory>

Thanks :)

(SH)Saeed
12-26-2000, 06:52 AM
I just installed MySQL and PHP4.. It was pretty easy.

For MySQL I just put the .pkg url from cobalt in and pressed install.

For PHP I used Lynx to go to php.net and download it. Then i just gzip and tar:ed it. Then I edited the "INSTALL" file and it had the instructions..

gunzip -c php-4.0.x.tar.gz | tar xf -
cd php-4.0.x
./configure --with-mysql --with-apxs
make
make install

and then add the mime type.

Saeed

syanet
12-26-2000, 12:06 PM
That's the way I did it and it didn't work.

-Edward-
12-26-2000, 12:18 PM
I just tryed the way felix suggested todo things and it didnt work. So guess i'll stick with the other way till i know the way todo it correctly :).

eva2000
12-26-2000, 12:41 PM
Originally posted by Technics
I just tryed the way felix suggested todo things and it didnt work. So guess i'll stick with the other way till i know the way todo it correctly :). well, maybe you should follow my way above.. do the first part skipp what i skipped and do the rest of what i did :)

worked for me :D

now only if i can get the last post i made in this thread answered :D

-Edward-
12-26-2000, 01:28 PM
Thats the part i'm stuck with :P. I've already got php,zend & mysql installed :).

(SH)Saeed
12-26-2000, 06:58 PM
This sucks!

I installed PHP 4.0.4 and went to zend.com and it says it only supports to PHP 4.0.3!!

Should I just wait till maybe they release a zend for PHP 4.0.4 or should I uninstall and then install PHP 4.0.3?

Or maybe you guys have a better suggestion?

Thanks,
Saeed

BC
12-26-2000, 07:01 PM
The latest version of Zend Optimizer comes out usually a week or so after the latest version of PHP comes out, so just be patient.

If you really, really must do with PHP/Zend Optimizer *now* then go right ahead and uninstall 4.0.4, and wack 4.0.3pl1 in... Then re-install 4.0.4 and ZO when it does come out in a few days :D

(SH)Saeed
12-26-2000, 07:12 PM
That´s OK! I think I can wait a few days (I'm just saying this cause I don't know how to uninstall, hehehe.. j/k) ;)

Saeed

teck
12-27-2000, 01:02 AM
damn, those instructions on installing php/mysql seem hard. why dont you guys just follow the directions on cobalt's knowledge base for installing mysql. it seems easy enough..

eva2000
12-30-2000, 08:32 AM
<Directory /home/sites/site1>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site1
php_admin_value safe_mode_exec_dir .:/home/sites/site1
php_admin_value open_basedir .:/tmp:/home/sites/site1
php_admin_value include_path .:/home/sites/site1
</Directory>

each time before the virtual site listed ?

so i would have

<Directory /home/sites/site1>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site1
php_admin_value safe_mode_exec_dir .:/home/sites/site1
php_admin_value open_basedir .:/tmp:/home/sites/site1
php_admin_value include_path .:/home/sites/site1
</Directory>

NAME VIRTUAL SITE FOR site1

<Directory /home/sites/site2>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site2
php_admin_value safe_mode_exec_dir .:/home/sites/site2
php_admin_value open_basedir .:/tmp:/home/sites/site2
php_admin_value include_path .:/home/sites/site2
</Directory>

NAME VIRTUAL SITE FOR site 2

and so on ?

Or do i put one after the other but before the Name Virtual site listings i.e.

<Directory /home/sites/site1>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site1
php_admin_value safe_mode_exec_dir .:/home/sites/site1
php_admin_value open_basedir .:/tmp:/home/sites/site1
php_admin_value include_path .:/home/sites/site1
</Directory>

<Directory /home/sites/site2>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site2
php_admin_value safe_mode_exec_dir .:/home/sites/site2
php_admin_value open_basedir .:/tmp:/home/sites/site2
php_admin_value include_path .:/home/sites/site2
</Directory>

hmmmmm, still have no idea how to enable php safe for each virtual site ?

eva2000
12-30-2000, 09:08 AM
well i tried it anyway and it works when i put them between the end of php safe mode part and the beginning of the first namevirtual host entry

i.e. for site1 to site27


<Directory /home/sites/site1>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site1
php_admin_value safe_mode_exec_dir .:/home/sites/site1
php_admin_value open_basedir .:/tmp:/home/sites/site1
php_admin_value include_path .:/home/sites/site1
</Directory>

<Directory /home/sites/site2>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site2
php_admin_value safe_mode_exec_dir .:/home/sites/site2
php_admin_value open_basedir .:/tmp:/home/sites/site2
php_admin_value include_path .:/home/sites/site2
</Directory>

<Directory /home/sites/site3>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site3
php_admin_value safe_mode_exec_dir .:/home/sites/site3
php_admin_value open_basedir .:/tmp:/home/sites/site3
php_admin_value include_path .:/home/sites/site3
</Directory>

(SH)Saeed
12-30-2000, 12:46 PM
What's this PHP Safe thing? I don't have all those lines and my PHP scripts work just fine!?

Saeed

eva2000
12-30-2000, 02:39 PM
Originally posted by Félix C.Courtemanche
The point of having the PHP safe stuff is to prevent any of your sites to read any public readable files on the system, write anywhere, etc.

It is very VERY usefull and you should consider using it. You have to copy the model of PHP safe that I gave, but modify it that way for your other sites:

<Directory /home/sites/site1>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site1
php_admin_value safe_mode_exec_dir .:/home/sites/site1
php_admin_value open_basedir .:/tmp:/home/sites/site1
php_admin_value include_path .:/home/sites/site1
</Directory>

, site2, site3... and so on.

It is as safe as allowing telnet on it when these commands are not used. But harder to trace when it happens :)

(SH)Saeed
12-30-2000, 07:03 PM
So is this needed even if I'm the only one having access to the server?

Btw, do you put that code in .htaceess or httpd.conf?

Saeed

Félix C.Courtemanche
12-30-2000, 07:13 PM
sorry, I was not arround this forum for a while ;)

eva: I suggest that you put it all before the name servers directives of your httpd.conf file. You could in fact ditch the <Directory ... > stuff and put the lines I wrote directly in your <virtual ...> tags. But since every time you make a change to any site on your cobalt, those changes will be erased, I had to find another solution.

Our httpd.conf file look like this:

... misc beginning stuff ...

#### PHP SAFE ######
<directory ...>
.. ... ...
#### EO PHP SAFE ####

name server 123.123.123.123
<virtual... >
etc

And finally, if you are the only one using the server or if you trust all your users, don't waste your time with these lines.

But since the majority of people here were going to host other sites, I included it in my directives.

Any other questions? :D

-Edward-
12-30-2000, 07:36 PM
Can u explain that again in easier terms for the thick ones * i.e me lol *.

(SH)Saeed
12-30-2000, 10:01 PM
Technics,

If I've understood it correctly this is how you do it:

1) su to root
2) do "pico /etc/httpd/conf/httpd.conf"
3) scroll down to the bottom where the <VirtualHost> tags are
4) put these lines for each and every virtual host (make sure that each sites <Directory> tag comes before its <VirtualHost> tag):


<Directory /home/sites/site1>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site1
php_admin_value safe_mode_exec_dir .:/home/sites/site1
php_admin_value open_basedir .:/tmp:/home/sites/site1
php_admin_value include_path .:/home/sites/site1
</Directory>


5) replace "site1" with the dir name (like server dir is "/home/sites/home/", then it goes "/home/sites/siteX/" where X is the number) of the site you want this on
6) save the httpd.conf file
7) restart apache


I hope this helps,
Saeed
:homer:

[Edited by zolbian on 12-30-2000 at 09:05 PM]

Félix C.Courtemanche
12-30-2000, 10:26 PM
Originally posted by zolbian

4) put these lines for each and every virtual host (make sure that each sites <Directory> tag comes before its <VirtualHost> tag):


I don't recommend you putting the <Directory> tags after the <Virtualhost> because Then the <Directory> tags are useless because the commands are affected by the <VirtualHost> already and you make any changes to that domain with the GUI, your httpd.conf file will become a totall mess.

I personally put them all on top, as Cobalt is only modifying and parsing the end of the file. When put on top, they dont move and stay ok. But since they are away from <VirtualHost>, they need the <Directory> tags as described.

Everything else is fine ;)

(SH)Saeed
12-30-2000, 10:36 PM
Yeah, I know.. I thought I try Microsofts tactics. Give out free buggy information and charge people to fix it :D

hehe,
Saeed

eva2000
12-30-2000, 11:57 PM
Originally posted by Félix C.Courtemanche
sorry, I was not arround this forum for a while ;)

eva: I suggest that you put it all before the name servers directives of your httpd.conf file. You could in fact ditch the <Directory ... > stuff and put the lines I wrote directly in your <virtual ...> tags. But since every time you make a change to any site on your cobalt, those changes will be erased, I had to find another solution.

Our httpd.conf file look like this:

... misc beginning stuff ...

#### PHP SAFE ######
<directory ...>
.. ... ...
#### EO PHP SAFE ####

name server 123.123.123.123
<virtual... >
etc

And finally, if you are the only one using the server or if you trust all your users, don't waste your time with these lines.

But since the majority of people here were going to host other sites, I included it in my directives.

Any other questions? :D

thanks :D i got it all working now on 27 virtual sites :eek:

is there any easier way to interface and edit files such as httpd.conf, php.ini on a raq3 other than telnet ?

on my previous linux server i had webmin and it's file manager java module and could do the editing web based :)

brandonk
01-06-2001, 03:23 AM
Eva2000:

Would you be so kind as to give me the instructions you used for just the PHP about the whole safe thing, because zolbian did an awesome job but then Felix said something was wrong and now I"m just REALLY CONFUSED! Can you put it all together for me? :) REALLY, REALLY CONFUSED!

Thanks,
Brandon
I'm an idiot, I know.

eva2000
01-06-2001, 06:20 AM
basically, after the #### EO PHP SAFE ##### line but before the Name Virtual site entries put

<Directory /home/sites/site1>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site1
php_admin_value safe_mode_exec_dir .:/home/sites/site1
php_admin_value open_basedir .:/tmp:/home/sites/site1
php_admin_value include_path .:/home/sites/site1
</Directory>

<Directory /home/sites/site2>
php_admin_flag engine On
php_admin_value doc_root /home/sites/site2
php_admin_value safe_mode_exec_dir .:/home/sites/site2
php_admin_value open_basedir .:/tmp:/home/sites/site2
php_admin_value include_path .:/home/sites/site2
</Directory>

etc changing the site# to which ever sites you want to enable PHP for.

brandonk
01-06-2001, 03:43 PM
Great thanks!