Log in

View Full Version : Lil help here php and apache



king_x
06-07-2006, 02:29 PM
First off lemme say if this is the wrong forum to post this then i am very sorry.. with that said heres my dilemma

I have installed Apache 2.0 and PHP 5 via source for RedHat AS3. Everything seems to work just fine however zero php pages will open. I can open regular html pages just fine but NO php This is killing me... I have read nearly everywhere and done tons of research and had no luck... perhaps I have been staring at this thing way to long. Or am jsut retarded... that may be the case

When I try to open a php page in the browser (ie or firefox) it asks me to save or open, but if i do it on the local machine through mozilla is just shows me the raw code... any ideas???

I think im missing something in my /etc/httpd/conf/httpd.conf to be honest with u guys.... can anyone help me?


i will be happy to post my httpd.conf if u think it will help


disclaimer... im not the most linux savvy so please be gentle

Twey
06-07-2006, 03:52 PM
Redhat is a binary distribution... use its package manager, and it will happily setup up the config and so on for you.

king_x
06-07-2006, 03:58 PM
Redhat is a binary distribution... use its package manager, and it will happily setup up the config and so on for you.
You mean use rpms to do the install? I actually tried that in the beginning... and it didnt work...

can u recommend me a link to the php rpm for my version...apache seems to work correctly

Twey
06-07-2006, 04:07 PM
I haven't used official RedHat, but in Fedora one would do:
$ su
Password: <enter root password>
# yum install apache php

king_x
06-07-2006, 05:38 PM
Okay u lost me.... sorry about this...

do i replace the words apache and php with the directory of the install?

Twey
06-07-2006, 06:14 PM
No. Assuming your distro has yum installed, you simply type exactly the commands I used there, and Apache, PHP, et al, will be installed and configured for you. Then, use:
# service httpd startto fire up Apache.

king_x
06-07-2006, 06:22 PM
ah okay.... found out that enterprise doesnt come with yum...fedora does... any other suggestions or how i can setup yum on enterprise

Twey
06-07-2006, 06:47 PM
Ah -- according to Google you need to use up2date. From what I remember, that's mostly just a frontend to yum anyway. But it's got a pretty GUI interface, so you shouldn't have a problem. :)

king_x
06-07-2006, 06:51 PM
Ha... listen to this... since i already installed this stuff... it says the newest versions are install and up to date....well that sux i need it to work....instead of reinstalling any idea why the php pages dont open normally?

Twey
06-07-2006, 06:58 PM
Since you've been compiling it from source, you've probably messed something up somewhere. If I were you, I'd go back to the source directory, "make uninstall", remove and reinstall the RPMs, then we can begin from scratch.