1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Php Problems with fedora core 4

Discussion in 'Linux & Open Source' started by AtomicBanana, 18 Jan 2006.

  1. AtomicBanana

    Wise Guy

    Joined: 28 Sep 2003

    Posts: 1,724

    Location: Leamington Spa

    Hi, I'm having problems getting php installed on my friends fedora core 4 box - I just can't seem to get it working.

    I've used yum to install php, and it seems to be installed, however, using a php info page doesn't work - it comes out blank, and most php scripts are just displayed as plain text so obviously it's not working. I'll be honest - I don't have any experince with how fedora handles things so it's left me quite confused... getting php working on other distrobutions I'm more friendly with has always been really easy.

    Any help greatly appreciated :D
     
  2. m_cozzy

    Hitman

    Joined: 13 Nov 2005

    Posts: 695

    Location: Havant

    if you are getting plain text then it sounds like the php is not switched on, you should have a line similar to below in your php.conf file in /etc/httpd/conf.d directory

    AddType application/x-httpd-php .php
     
  3. AtomicBanana

    Wise Guy

    Joined: 28 Sep 2003

    Posts: 1,724

    Location: Leamington Spa

    Thanks very much, that was it >.<