Click to See Complete Forum and Search --> : PHP - MySQL - Apache...RPMS installed - is PHP working???


schu777
08-19-2001, 07:46 PM
Hi Everyone,

I'm new to linux and trying to get PHP working so I can get the phpBB up and going. I've downloaded quite a few of RPM's and installed them. I think I've gone through what I need to for the set up, but the little bit for the test files just doesn't work at all "<? phpinfo(); ?>" in a file called "test.php" When I access this file from the linux box it just returns the same line and that's it. I'm running Apache/1.3.19 and Red Hat 7.1 with the latest versions of mySQL and PHP. mySQL seems to be just fine, I'm not worried about that for now ;-)

Can anyone give me a direction or what to check? It would be great if I was able to get this problem worked out.

Thanks!!! Michael

PS: Why do I have the gut feeling that I'm going to have to download the source stuff and do the make/install bit??

Question: When I look in /etc/httpd/conf/httpd.conf file, I see a line of "<IfDefine HAVEPHP>" then it goes ahead and does the next line...I look at httpd -V and I see HAVE_MMAP and HAVE_SHMGET, but not HAVEPHP...

Thanks!

[ 19 August 2001: Message edited by: schu777 ]

schu777
08-19-2001, 09:12 PM
Okay - been over at phpbuilder.com site and seems like I found out that I have to do it the hard way...build from the source and such...bummer. Oh well, I'm learning.

New Question: The existing RPM's that I loaded, would it be best if I just uninstalled them and continue with the make/install bit or just leave them?

Thanks...again.

glowworm
08-20-2001, 07:31 AM
Search for apache toolbox on freshmeat..

Its awesome :) installs anything and everything you want..i have not had a bad install from it yet

schu777
08-27-2001, 11:39 PM
As a follow up on my solution...

1) Re-loaded RH 7.1 Linux (Didn't need to, just wanted a clean slate)
2) Downloaded the mySQL source and built it (./configure, make, make install bit)
3) Downloaded latest version of PHP & Apache
4) Went to this site for steps - http://www.weberdev.com/articles/ApachePHPandPostgreSQL.html I've got mySQL - just skipped those steps...
5) After I did the steps from step 4 - everything worked just fine - except port 80 is now shutdown by @home :-( but port 8080 isn't :-) At least for a while :-(
6) Installed phpBB (very easy BB to use!!) and getting that going...
7) Now looking for steps to route my domain name to my web server of port 8080...

Thanks, Michael

I hope this helps others that are having the same problems...

mulhern
08-28-2001, 02:56 PM
Michael,

I understand where your coming from. I started out downloading the source php4.06 and MySQL and an upgrade to the Apache webserver I was using.

I upgraded my webserver using the Apache distro off of RH7.1. This version conf file is already set up for PHP4. I compiled and installed php4 and MySQL from source I also installed perl and used CPAN for the modules I needed.

The solution I found true when setting up may workstation with PHP4 was:

USE the RPMS! it is much easier!

Make sure you install:

- DBI-MySQL RPM module
- DBD-MySQL RPM
- PERL 5.6
- MySQL -Perl module RPM
- MySQL client RPM
- MySQL RPM
- MySQL develop RPM ( it is nice but I think itis more necessary when compiling)
- PHP4.0.1 RPM
- Apache RPM off the RH7.1 disk
- Apache devel RPM off the RH7.1 disk

This should put you in the right direction. The RPM path was much shorter. But having to compile I learned a lot about how the packages work together, making it a logical machine and less a magic box.

Goodluck !

Mulhern :p