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
-
1PHP is not running on your server.Jay Blanchard– Jay Blanchard2014-10-10 15:24:11 +00:00Commented Oct 10, 2014 at 15:24
-
1or 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.Marc B– Marc B2014-10-10 15:25:57 +00:00Commented 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.smftr– smftr2014-10-10 15:26:10 +00:00Commented Oct 10, 2014 at 15:26
-
1did you confirm if the modules actually did load?Marc B– Marc B2014-10-10 15:29:00 +00:00Commented Oct 10, 2014 at 15:29
Add a comment
|
1 Answer
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<? ?>