Re: [PHP] help installing php

2002-01-18 Thread Miles Thompson


If I remember correctly, when you install MySQL and Apache from rpm you get 
the binary version and no source is installed on your system.

It's been a while since I've looked for them, but there used to be a source 
rpm for MySQL at the MySQL site, and it took some digging to find it. Ditto 
for Apache.

Take this opportunity to install al three from source -- because you've 
decided where to put the files you won't be trying to guess where an rpm 
packager decided they should go. (I've had the same problem with .deb pkgs, 
but maybe that's because I don't know enough about dselect.)

For the Apache source file look for ABOUT_APACHE; for MySQL look for 
mit-pthreads. I believe those t wo will be relatively unique, certainly 
better than looking for README.

Regards - Miles Thompson

At 02:09 PM 1/18/2002 -0500, Juni Adi wrote:
On Thu, 17 Jan 2002, Anas Mughal wrote:

|I haven't seen any RPMs for PHP.
Yes there are RPMs for PHP (ftp.mirror.ac.uk)

|However, I have installed using the source. It works
|fine.
|Try to install the CGI version first. That is easier.
|Than, you could dive into the apache module stuff.

Ok, I'm now in the middle of installing it from
source code. But I'm not sure where the path to
apache and mysql source code to fill in :
./configure --with
apache=/path/to/apache_source_code --with
mysql=/path/to/mysql_source_code

I 'm even not I have the source code for the
two of them as I was instaling both apache and
mysql from rpms.

So, can you tell me to define the path for those
apache and mysql  so I can make the PHP work along
with apache and mysql as well? Or at least tell me
what indicate a source code directory (what files
are in). Maybe I can search it manually.


Regards
Juni Adi

|
|--- Juni Adi [EMAIL PROTECTED] wrote:
| Hello,
|
| I'm new to PHP (actually I'm just about to
| begin) and have problem with installing.
|
| I'm looking for version of PHP that will be
| suit to RH 6.2 and MySQL 3.23.47? (my RH package
| didn't include any php rpms).
| I've tried some version 4 rpms but always have
| error on dependency stuffs.
|
| So, can anybody point me sites where I can
| download the right rpms to work along with my
| stuffs? (I'd prefer RPMS because I've always been
| having trouble installing from source code).
|
| Cheers
| --
| +
| ||   Juni Adi  ||
| ||   Volunteers Alliance for Saving the Nature ||
| ||   www.arupa.or.id   ||
| +
|
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail:
| [EMAIL PROTECTED]
| For additional commands, e-mail:
| [EMAIL PROTECTED]
| To contact the list administrators, e-mail:
| [EMAIL PROTECTED]
|
|
|
|=
|Anas Mughal
|[EMAIL PROTECTED]
|[EMAIL PROTECTED]
|Tel: 973-249-6665
|
|__
|Do You Yahoo!?
|Send FREE video emails in Yahoo! Mail!
|http://promo.yahoo.com/videomail/
|

--
+
||   Juni Adi  ||
||   Volunteers Alliance for Saving the Nature ||
||   www.arupa.or.id   ||
+


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] help installing php

2002-01-18 Thread R'twick Niceorgaw

I just installed Apache and PHP 4.1.1 on my home computer ( Red hat Linux
7.2) from source and they are isntalled without any problem.

If you have already installed apache, then find out the installation
directory ( probably /usr/local/apache) and then see if its bin directory is
in your path. If not add it.

then goto the bin directory and run ./httpd -l.
If you see a line called mod_so.c then you can install PHP as a DSO module
without the source code for Apache. Follow the steps below and it will work.

run configure in your PHP source dir as
./configure --with-apxs [ and rest of the modules you want to enable]
make
make install

If you are using PHP 4.1.1, it comes with builtin support for mysql and is
installed by default or you can run

./configure --with-apxs --with-mysql [ and rest of the modules you want to
enable]
if it says can not find path to apxs, then change the configuration to
./configure --with-apxs=path to apache/bin/apxs [ and rest of the modules
you want to enable]

where path to apache is where apache is installed ( probably
/usr/local/apache)

HTH
R'twick
- Original Message -
From: Juni Adi [EMAIL PROTECTED]
To: Anas Mughal [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, January 18, 2002 2:09 PM
Subject: Re: [PHP] help installing php


 On Thu, 17 Jan 2002, Anas Mughal wrote:

 |I haven't seen any RPMs for PHP.
 Yes there are RPMs for PHP (ftp.mirror.ac.uk)

 |However, I have installed using the source. It works
 |fine.
 |Try to install the CGI version first. That is easier.
 |Than, you could dive into the apache module stuff.

 Ok, I'm now in the middle of installing it from
 source code. But I'm not sure where the path to
 apache and mysql source code to fill in :
 ./configure --with
 apache=/path/to/apache_source_code --with
 mysql=/path/to/mysql_source_code

 I 'm even not I have the source code for the
 two of them as I was instaling both apache and
 mysql from rpms.

 So, can you tell me to define the path for those
 apache and mysql  so I can make the PHP work along
 with apache and mysql as well? Or at least tell me
 what indicate a source code directory (what files
 are in). Maybe I can search it manually.


 Regards
 Juni Adi

 |
 |--- Juni Adi [EMAIL PROTECTED] wrote:
 | Hello,
 |
 | I'm new to PHP (actually I'm just about to
 | begin) and have problem with installing.
 |
 | I'm looking for version of PHP that will be
 | suit to RH 6.2 and MySQL 3.23.47? (my RH package
 | didn't include any php rpms).
 | I've tried some version 4 rpms but always have
 | error on dependency stuffs.
 |
 | So, can anybody point me sites where I can
 | download the right rpms to work along with my
 | stuffs? (I'd prefer RPMS because I've always been
 | having trouble installing from source code).
 |
 | Cheers
 | --
 | +
 | ||   Juni Adi  ||
 | ||   Volunteers Alliance for Saving the Nature ||
 | ||   www.arupa.or.id   ||
 | +
 |
 |
 | --
 | PHP General Mailing List (http://www.php.net/)
 | To unsubscribe, e-mail:
 | [EMAIL PROTECTED]
 | For additional commands, e-mail:
 | [EMAIL PROTECTED]
 | To contact the list administrators, e-mail:
 | [EMAIL PROTECTED]
 |
 |
 |
 |=
 |Anas Mughal
 |[EMAIL PROTECTED]
 |[EMAIL PROTECTED]
 |Tel: 973-249-6665
 |
 |__
 |Do You Yahoo!?
 |Send FREE video emails in Yahoo! Mail!
 |http://promo.yahoo.com/videomail/
 |

 --
 +
 ||   Juni Adi  ||
 ||   Volunteers Alliance for Saving the Nature ||
 ||   www.arupa.or.id   ||
 +


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] help installing php

2002-01-18 Thread mike cullerton

hi juni,

 although i totally agree with the folks who recommended you compile php
from source, maybe it's time you sat down :)

 compiling apache, mysql and php from source can tax even the greatest
patience the first time it is tried. hopefully, here's a couple things to
think about.

 create a directory where you store _all_ your source for everything you
compile. lots of folks use /usr/src and i'll assume that here. now, download
all the source tarballs you need into that directory and expand them all in
there. this should create subdirectories for everything. ie,

 /usr/src/apache_1.3.22
 /usr/src/php-4.1.0
 /usr/src/mysql-3.23.40

 it's possible that you may need other packages. only you will now what is
used on your machine. do you use snmp with php? gd? do y'all also use perl
with apache?

 you'll want to read the documentation that comes with _each_ package you
are compiling. especially apache. they know about php. there is lots of good
info in there. there are also many sites out there with tutorials on getting
these all to compile together. you'll need to decide if you want to compile
php as a static or dynamic module. static seems to compile easier for some
folks, but dynamic means in the future you only need to recompile php to
upgrade it (as opposed to recompiling everything like you are about to do :)

 the first time you do this, it could take hours just getting it all squared
away, and that doesn't necessarily include compile time. after that, it
should only take you a few minutes each time.

 to answer the specific question about apache source, if we assume the
directories above, then you would use ../apache_1.3.22.

 i recommend writing down everything it took to get it all working so you
have it for next time. the configure string might look something like

 ./configure \
--enable-track-vars \
--with-mysql=/usr/local \
--with-apache=/usr/src/apache_1.3.22 \
--enable-trans-sid \
--with-snmp \
--with-ftp \
--with-gd 

depending on what all you need from php.

hope this all helps,
mike


on 1/18/02 12:09 PM, Juni Adi at [EMAIL PROTECTED] wrote:

 Ok, I'm now in the middle of installing it from
 source code. But I'm not sure where the path to
 apache and mysql source code to fill in :
 ./configure --with
 apache=/path/to/apache_source_code --with
 mysql=/path/to/mysql_source_code
 
 I 'm even not I have the source code for the
 two of them as I was instaling both apache and
 mysql from rpms.
 
 So, can you tell me to define the path for those
 apache and mysql  so I can make the PHP work along
 with apache and mysql as well? Or at least tell me
 what indicate a source code directory (what files
 are in). Maybe I can search it manually.


 -- mike cullerton   michaelc at cullerton dot com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] help installing php

2002-01-18 Thread Carl J Meyer


On Fri, 18 Jan 2002, Juni Adi wrote:
 
 Ok, I'm now in the middle of installing it from
 source code. But I'm not sure where the path to
 apache and mysql source code to fill in :
 ./configure --with
 apache=/path/to/apache_source_code --with
 mysql=/path/to/mysql_source_code
 
 I 'm even not I have the source code for the
 two of them as I was instaling both apache and
 mysql from rpms.

mysql should work fine with the bundled library.  
just use --with-mysql, no directory argument.

for apache, if you're not compiling the apache source you
should compile php as a shared apache module: use --with-apxs or
--with-apxs2 depending whether you're using Apache 1.x or 2.x.  

Carl

 
 |
 |--- Juni Adi [EMAIL PROTECTED] wrote:
 | Hello,
 | 
 | I'm new to PHP (actually I'm just about to
 | begin) and have problem with installing.  
 | 
 | I'm looking for version of PHP that will be
 | suit to RH 6.2 and MySQL 3.23.47? (my RH package
 | didn't include any php rpms).
 | I've tried some version 4 rpms but always have
 | error on dependency stuffs.
 | 
 | So, can anybody point me sites where I can
 | download the right rpms to work along with my
 | stuffs? (I'd prefer RPMS because I've always been
 | having trouble installing from source code).
 | 
 | Cheers
 | -- 
 | +
 | ||   Juni Adi  ||
 | ||   Volunteers Alliance for Saving the Nature ||   
 | ||   www.arupa.or.id   ||
 | +
 | 
 | 
 | -- 
 | PHP General Mailing List (http://www.php.net/)
 | To unsubscribe, e-mail:
 | [EMAIL PROTECTED]
 | For additional commands, e-mail:
 | [EMAIL PROTECTED]
 | To contact the list administrators, e-mail:
 | [EMAIL PROTECTED]
 | 
 |
 |
 |=
 |Anas Mughal
 |[EMAIL PROTECTED]
 |[EMAIL PROTECTED]
 |Tel: 973-249-6665
 |
 |__
 |Do You Yahoo!?
 |Send FREE video emails in Yahoo! Mail!
 |http://promo.yahoo.com/videomail/
 |
 
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] help installing php

2002-01-17 Thread Anas Mughal

I haven't seen any RPMs for PHP.
However, I have installed using the source. It works
fine.
Try to install the CGI version first. That is easier.
Than, you could dive into the apache module stuff.




--- Juni Adi [EMAIL PROTECTED] wrote:
 Hello,
 
 I'm new to PHP (actually I'm just about to
 begin) and have problem with installing.  
 
 I'm looking for version of PHP that will be
 suit to RH 6.2 and MySQL 3.23.47? (my RH package
 didn't include any php rpms).
 I've tried some version 4 rpms but always have
 error on dependency stuffs.
 
 So, can anybody point me sites where I can
 download the right rpms to work along with my
 stuffs? (I'd prefer RPMS because I've always been
 having trouble installing from source code).
 
 Cheers
 -- 
 +
 ||   Juni Adi  ||
 ||   Volunteers Alliance for Saving the Nature ||   
 ||   www.arupa.or.id   ||
 +
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 


=
Anas Mughal
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Tel: 973-249-6665

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] help installing php

2002-01-17 Thread Miles Thompson

Juni,

Apache, MySQL and PHP are really well debugged when it comes to 
installation, and I found installation from source easier than messing with 
.rpms on RH systems and with dselect on Debian. The following article at 
DevShed has really good instructions:
http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/page1.html

You can ignore the SSL stuff and certificates if you don't need them.

Regards - Miles Thompson

At 07:02 PM 1/17/2002 -0500, Juni Adi wrote:
Hello,

I'm new to PHP (actually I'm just about to
begin) and have problem with installing.

I'm looking for version of PHP that will be
suit to RH 6.2 and MySQL 3.23.47? (my RH package
didn't include any php rpms).
I've tried some version 4 rpms but always have
error on dependency stuffs.

So, can anybody point me sites where I can
download the right rpms to work along with my
stuffs? (I'd prefer RPMS because I've always been
having trouble installing from source code).

Cheers
--
+
||   Juni Adi  ||
||   Volunteers Alliance for Saving the Nature ||
||   www.arupa.or.id   ||
+


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] help installing php

2002-01-17 Thread Juni Adi

On Thu, 17 Jan 2002, Anas Mughal wrote:

|I haven't seen any RPMs for PHP.
Yes there are RPMs for PHP (ftp.mirror.ac.uk)

|However, I have installed using the source. It works
|fine.
|Try to install the CGI version first. That is easier.
|Than, you could dive into the apache module stuff.

Ok, I'm now in the middle of installing it from
source code. But I'm not sure where the path to
apache and mysql source code to fill in :
./configure --with
apache=/path/to/apache_source_code --with
mysql=/path/to/mysql_source_code

I 'm even not I have the source code for the
two of them as I was instaling both apache and
mysql from rpms.

So, can you tell me to define the path for those
apache and mysql  so I can make the PHP work along
with apache and mysql as well? Or at least tell me
what indicate a source code directory (what files
are in). Maybe I can search it manually.


Regards
Juni Adi

|
|--- Juni Adi [EMAIL PROTECTED] wrote:
| Hello,
| 
| I'm new to PHP (actually I'm just about to
| begin) and have problem with installing.  
| 
| I'm looking for version of PHP that will be
| suit to RH 6.2 and MySQL 3.23.47? (my RH package
| didn't include any php rpms).
| I've tried some version 4 rpms but always have
| error on dependency stuffs.
| 
| So, can anybody point me sites where I can
| download the right rpms to work along with my
| stuffs? (I'd prefer RPMS because I've always been
| having trouble installing from source code).
| 
| Cheers
| -- 
| +
| ||   Juni Adi  ||
| ||   Volunteers Alliance for Saving the Nature ||   
| ||   www.arupa.or.id   ||
| +
| 
| 
| -- 
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail:
| [EMAIL PROTECTED]
| For additional commands, e-mail:
| [EMAIL PROTECTED]
| To contact the list administrators, e-mail:
| [EMAIL PROTECTED]
| 
|
|
|=
|Anas Mughal
|[EMAIL PROTECTED]
|[EMAIL PROTECTED]
|Tel: 973-249-6665
|
|__
|Do You Yahoo!?
|Send FREE video emails in Yahoo! Mail!
|http://promo.yahoo.com/videomail/
|

-- 
+
||   Juni Adi  ||
||   Volunteers Alliance for Saving the Nature ||   
||   www.arupa.or.id   ||
+


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]