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]