The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Making PHP Work (Apache/Linux)

jotatejotate Registered User regular
edited September 2007 in Help / Advice Forum
Apache 2 works. PHP4 is loaded. Loading test.php gets me nothing.

I've got the LoadModule in the config file. Not asking anyone to jump into a deep amount of thought about this one, just if any of you have experienced this and know the one random flag I need to change to a 1, that'd be swell.

Otherwise, I'll just continue staring at it and thinking "God damn it, I really don't want to reinstall Apache."

jotate on

Posts

  • misbehavinmisbehavin Registered User regular
    edited September 2007
    Need more info...

    Is the test.php file returning NOTHING, or code?

    If it's returning NOTHING, then it's possible that it is working, but for some ungodly reason there is already an error on the page with error reporting turned off.

    If it's returning code, then it's not loaded.

    What PHP code did you enter into Apache configuration?

    misbehavin on
  • jotatejotate Registered User regular
    edited September 2007
    misbehavin wrote: »
    Need more info...

    Is the test.php file returning NOTHING, or code?

    If it's returning NOTHING, then it's possible that it is working, but for some ungodly reason there is already an error on the page with error reporting turned off.

    If it's returning code, then it's not loaded.

    What PHP code did you enter into Apache configuration?

    It's returning nothing. That's a good point though, it would just output the code if it were completely ignoring it. Hmm...

    To the Config I added:

    LoadModule php4_module modules/libphp4.so

    AddType application/x-httpd-php .php

    jotate on
  • misbehavinmisbehavin Registered User regular
    edited September 2007
    jotate wrote: »
    misbehavin wrote: »
    Need more info...

    Is the test.php file returning NOTHING, or code?

    If it's returning NOTHING, then it's possible that it is working, but for some ungodly reason there is already an error on the page with error reporting turned off.

    If it's returning code, then it's not loaded.

    What PHP code did you enter into Apache configuration?

    It's returning nothing. That's a good point though, it would just output the code if it were completely ignoring it. Hmm...

    To the Config I added:

    LoadModule php4_module modules/libphp4.so

    AddType application/x-httpd-php .php

    So, it's definitely recognizing the engine.

    Turn error reporting ON in the php.ini file and then make sure you are using PHP4. If you just downloaded the files from php.net, you are using 5, not 4.

    misbehavin on
Sign In or Register to comment.