Results 1 to 10 of 10

Thread: Lil help here php and apache

  1. #1
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Lil help here php and apache

    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

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Redhat is a binary distribution... use its package manager, and it will happily setup up the config and so on for you.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    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

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I haven't used official RedHat, but in Fedora one would do:
    Code:
    $ su
    Password: <enter root password>
    # yum install apache php
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Okay u lost me.... sorry about this...

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

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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:
    Code:
    # service httpd start
    to fire up Apache.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ah okay.... found out that enterprise doesnt come with yum...fedora does... any other suggestions or how i can setup yum on enterprise

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Jun 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •