Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suse 9.1 Console: PHP Installation 1

Status
Not open for further replies.

CodeDeficitDisorder

Technical User
Jul 18, 2002
66
US
I'm running Suse 9.1 with a bare minimum install, so all I have is a console. Apache2 has been installed.

I ran through all of the steps for the PHP installation, but PHP still doesn't appear to work. I have rebooted the computer.

My php.ini file and installation is located:
/usr/local/php/php-4.3.9/php.ini

I'm using the default configuration for php.ini and I have register_globals on.

My Apache2 httpd.conf file has the following line:

LoadModule php4_module /usr/local/apache2/modules/libphp4.so

I have a php page dedicated to testing PHP's functionality. Please feel free to visit, view the source, and tell me if my PHP code is screwed up, or if my installation is screwed up...


Does anyone know why PHP isn't running?

Thanks in advance!!

Jamie
 
Just out of curiousity, why didn't you use the packages instead of trying to install from scratch?

Try adding something like this to your config:

AddType application/x-httpd-php .php
 
Eric,

I know. I must be crazy. Somebody told me that the only way to learn Linux/Apache/PHP/MySQL is to do it from scratch. It could take me another year to get this darn site up and running, lol.

As many times as you've bailed me out, I'm going to owe you a beer. No, probably a case of beer.

As always, I thank you. I'll give it a try and let you know.

Jamie
 
Eric,

I added the line that you suggested to my httpd.conf file, and it worked.

Does adding "AddType application/x-httpd-php .php" explicitly tell Apache to look for "php" code? Or, is it doing something else?

THANK YOU SO MUCH!

Jamie
 
That's definitely a good way to do it. As long as you're understanding what you're doing. I guess I get a little jaded and I have to remind myself that I have actually been doing this for a *really* long time. I have to remember back to the first time I ever tried getting TCP/IP installed on a DOS PC and how utterly clueless I was.

Keep working at it and we'll keep helping you out. It's kinda like christianity, if I save one soul from the clutches of Microsoft, I ensure my place in penguin heaven.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top