PHP not working

Discussion in 'Site & Server Administration' started by martinvidic, Jan 27, 2012.

  1. #1
    Hi everybody.
    For some reason php is not working on my server.
    http://www.flashmavi.com/php_info.php

    A logged in to my server and when i type
    php -v
    i get: PHP 5.3.3

    I have Apache/2.2.15

    Does anybody know what i have to do to make it work?
    Will i have to add something to my httpd.conf file?

    Thanx
    m.
     
    martinvidic, Jan 27, 2012 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Hello there,

    Do you have a control panel with your server? What operating system do you use as well?

    Chris
     
    RHS-Chris, Jan 27, 2012 IP
  3. martinvidic

    martinvidic Guest

    Messages:
    182
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's on Cent OS and my only control panel is webmin.
    I make most changes through command line.
    But it's a new server and i've only set up DNS and FTP so far.
     
    martinvidic, Jan 28, 2012 IP
  4. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #4
    Hi there,

    How did you install php? I would check your /etc/httpd directory to ensure that you have PHP handlers loading into your Apache configuration.

    Chris
     
    RHS-Chris, Jan 28, 2012 IP
  5. ideamine

    ideamine Member

    Messages:
    83
    Likes Received:
    2
    Best Answers:
    2
    Trophy Points:
    28
    #5
    Hi,

    Check you php.ini file. The phpinfo function might be disabled or will be listed on the disable_fuctions line in your ini file.

    Take care
     
    ideamine, Jan 29, 2012 IP
  6. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #6
    ur phpinfo is working that means php is working
     
    Bohra, Jan 29, 2012 IP
  7. THESHAOLIN1

    THESHAOLIN1 Member

    Messages:
    84
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #7
    Which hosting provider are you with? see if they can enable the PHP if it has been disabled.
     
    THESHAOLIN1, Feb 18, 2012 IP