Simple hello world php not running in my local Apache

Discussion in 'Apache' started by raiderremo, Sep 27, 2011.

  1. #1
    Attached is the simple hello world php which is running fine in my host-Apache but not running in local Apache. Activated and installed PHP mode

    View attachment Hello.php
     
    raiderremo, Sep 27, 2011 IP
  2. chtdatweb

    chtdatweb Well-Known Member

    Messages:
    1,473
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    160
    #2
    Can you give a direct link to the site rather than an attachement?
     
    chtdatweb, Oct 6, 2011 IP
  3. sparek

    sparek Peon

    Messages:
    68
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What error is being returned?

    Have you tried using echo instead of Echo? I'm not sure if capital letters matter or not, I've never used caps for any PHP functions.
     
    sparek, Oct 6, 2011 IP
  4. bvraghav

    bvraghav Member

    Messages:
    123
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    33
    #4
    1. Fish into the apache error logs, available generally at
    /var/log/apache2
    Code (markup):
    2. Enable PHP Error Display
    http://forums.digitalpoint.com/showthread.php?t=1483351
    (Yes, it is a sticky from another sub-forum. Please do read. It is a good start with php, if intended)

    And then run your script again. It should help.

    Plus, do respect case-sensitivity. It is safer.
     
    bvraghav, Oct 6, 2011 IP
  5. Nick_Hostinizer

    Nick_Hostinizer Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    When you say "local apache", do you mean that you have WAMP etc installed on your own computer where you're trying to run that script?
     
    Nick_Hostinizer, Oct 10, 2011 IP