0

i was setup my server, unfortunately the php page not loaded in the browser. Looking at the view source pages, i see my php codes. I using centos and install cpanel. What usually reason for the problem?

4
  • 1
    PHP is not running on your server. Commented Oct 10, 2014 at 15:24
  • 1
    or not properly configured, or you're doing something silly like putting your php code into a .html file and didn't associate .html with the php interpreter. Commented Oct 10, 2014 at 15:25
  • yes, someone in the street say to LoadModule in httpd.conf. But my php modules (libphp5.so) is not exists in the location. Commented Oct 10, 2014 at 15:26
  • 1
    did you confirm if the modules actually did load? Commented Oct 10, 2014 at 15:29

1 Answer 1

1

It means PHP is not running. Have you tried reaching localhost in your browser? Generally you should see the PHP index file, which tells you if the server works or not.

A few possibilities :

  • Is your file in the proper root folder? Is is accessed via localhost (not file system!)
  • is your file in .php (ex. NOT .html)?
  • Are you using full <?php ?> tags? Some server configs won't recognise <? ?>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.