> begini pak tuxtux...,
> pertama saya install redhat 6.2 dan saya pilih option install php3nya
(yang
> ini juga belum sempet dicoba jalan atau tidak)
> namun ternyata saya dapat php4 dan saya install menurut instruksi manual
> dibawah, semua sudah saya lakukan tapi belum berhasil juga malah saya
punya
> dua file httpd.conf di /usr/local/apache/conf/httpd.conf dan di
> /etc/httpd/conf/httpd.conf
> tolong bantuanya pak...please...
>
> Instruksi instalasi :
> 1. gunzip apache_1.3.x.tar.gz
> 2. tar xvf apache_1.3.x.tar
> 3. gunzip php-x.x.x.tar.gz
> 4. tar xvf php-x.x.x.tar
> 5. cd apache_1.3.x
> 6. ./configure --prefix=/www
nah ini dia masalahnya, anda mencoba mengcompile apache+php4 pada directory
/www ingat prefix=/www berarti anda akan menginstall pada directory
tersebut, berarti seharusnya di directory /www harus ada directory conf yang
berisi httpd.conf, yang harus anda setting adalah httpd.conf yang ada pada
directory /www/conf/httpd.conf. Jika anda sudah mensetting maka anda bisa
menjalankan webserver tersebut dengan perintah /www/bin/apachectl start.
Tapi coba cek dulu apakah ada webserver lain yang sudah berjalan, sebab anda
sudah menginstall webserver apache waktu anda menginstall distro anda, dan
biasanya webserver tsb dijalankan waktu startup.
untuk mengetahuinya coba jalankan ps aux | grep httpd jika ada httpd yang
sudah berjalan kill dulu dengan kill -9 pid.
> 7. cd ../php-x.x.x
> 8.
>
./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars
> 9. make
> 10. make install
> 11. cd ../apache_1.3.x
> 12. for PHP 3: ./configure --activate-module=src/modules/php3/libphp3.a
> for PHP 4: ./configure --activate-module=src/modules/php4/libphp4.a
> 13. make
> 14. make install
>
> Instead of this step you may prefer to simply copy the httpd binary
> overtop of your existing binary. Make sure you shut down your
> server first though.
>
> 15. cd ../php-x.x.x
> 16. for PHP 3: cp php3.ini-dist /usr/local/lib/php3.ini
> for PHP 4: cp php.ini-dist /usr/local/lib/php.ini
>
> You can edit your .ini file to set PHP options. If
> you prefer this file in another location, use
> --with-config-file-path=/path in step 8.
>
> 17. Edit your httpd.conf or srm.conf file and add:
>
> For PHP 3: AddType application/x-httpd-php3 .php3
> For PHP 4: AddType application/x-httpd-php .php
>
> You can choose any extension you wish here. .php is simply the one
> we suggest. You can even include .html .
>
>
> 18. Use your normal procedure for starting the Apache server. (You must
> stop and restart the server, not just cause the server to reload by
> use a HUP or USR1 signal.)
>
>
>
> ----- Original Message -----
> From: tuxtux <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 11, 2000 1:03 PM
> Subject: Re: [programming] PHP4
>
>
> > coba ceritakan bagaimana anda menginstall php4 tersebut, apakah
sebelumnya
> > sudah ada apache baru kemudian anda menginstall php4 tsb, atau anda
> > mencompile apache bersama-sama dengan php4 tsb. sebab banyak yang main
> > install php4 tanpa mempergunakan apxs (untuk dynamic install)
> > ----- Original Message -----
> > From: Indrijo <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, September 11, 2000 10:34 AM
> > Subject: [programming] PHP4
> >
> >
> > > Dear rekan-rekan,
> > >
> > > selamat pagi,
> > > kemarin saya telah menginstall PHP4 di komp linux redhat saya...
> > > semua instruksi instalasi sudah saya jalankan termasuk configurenya..
> > > dan instalasi berjalan sukses....
> > >
> > > tapi.....
> > >
> > > kenapa script php nya tidak jalan...
> > > tiap saya cobaa jalankan scriptnya dari broswer selalu di download
bukan
> > di
> > > running...
> > > kadang malah sourcenya yang muncul bukan hasilnya....
> > >
> > > sebagai contoh saya punya scrip sbb :
> > > <?php
> > > $YourName = "Leon";
> > > $Today = date("l F d, Y");
> > > $CostOfLunch = 3.50;
> > > $DaysBuyingLunch = 4;
> > > ?>
> > >
> > > <HTML>
> > > <HEAD>
> > > <TITLE>Figure 1-3</TITLE>
> > > </HEAD>
> > > <BODY>
> > > TOdays Date :
> > > <?php
> > > /*
> > > ** print todays date
> > > */
> > >
> > > print("<H3>$Today</H3>\n");
> > > echo ("test ");
> > > print($YourName);
> > > print("$CostOfLunch * $ DaysBuyingLunch);
> > > print(" dollars this2 week.<BR>\n");
> > > ?>
> > >
> > > </BODY>
> > > </HTML>
> > >
> > > tapi di browser munculnya sbb :
> > >
> > > TOdays Date : $Today
> > > \n"); echo ("test "); print($YourName); print("$CostOfLunch * $
> > > DaysBuyingLunch); print(" dollars this2 week.
> > > \n"); ?>
> > >
> > > mohon pencerahannya
> > > terima kasih sebelumnya
> > > Indrijo
> > >
> > >
> > >
> >
>
> --------------------------------------------------------------------------
> > ------
> > > Utk berhenti langganan, kirim email ke
> > [EMAIL PROTECTED]
> > > Informasi arsip di http://www.linux.or.id/milis.php3
> > > Pengelola dapat dihubungi lewat [EMAIL PROTECTED]
> > >
> >
> >
>
> --------------------------------------------------------------------------
> ------
> > Utk berhenti langganan, kirim email ke
> [EMAIL PROTECTED]
> > Informasi arsip di http://www.linux.or.id/milis.php3
> > Pengelola dapat dihubungi lewat [EMAIL PROTECTED]
> >
> >
>
>
> --------------------------------------------------------------------------
------
> Utk berhenti langganan, kirim email ke
[EMAIL PROTECTED]
> Informasi arsip di http://www.linux.or.id/milis.php3
> Pengelola dapat dihubungi lewat [EMAIL PROTECTED]
>
--------------------------------------------------------------------------------
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3
Pengelola dapat dihubungi lewat [EMAIL PROTECTED]