Site displays raw PHP code, not installation screen

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
phillthump
Forum Members
Forum Members
Posts: 12
Joined: Tue Sep 16, 2008 10:32 am

Site displays raw PHP code, not installation screen

Post by phillthump »

Hi guys,

I've used CMSMS heavily for the past year and am currently attempting to install it on a new server based in South Africa for a client.

I'm having trouble in that, although the client assures me the web-hosting supports PHP5, the CMS throws up a page of raw PHP code when I attempt to start into the installation process, almost as if the server didnt know how to translate it?

Does anyone have any recommendations? ???

Rgds,

Phill
irish
Forum Members
Forum Members
Posts: 101
Joined: Tue Jun 03, 2008 2:31 pm

Re: Site displays raw PHP code, not installation screen

Post by irish »

try putting up a test page with the following:

echo phpinfo();


Then view it in a browser. If it is still showing raw php, then send the page to the hosting company, let them know that there php installation went awry.
alby

Re: Site displays raw PHP code, not installation screen

Post by alby »

is sufficient:




maybe your hosting has php disabled or it's not set for .php files

Alby
phillthump
Forum Members
Forum Members
Posts: 12
Joined: Tue Sep 16, 2008 10:32 am

Re: Site displays raw PHP code, not installation screen

Post by phillthump »

alby wrote: is sufficient:




maybe your hosting has php disabled or it's not set for .php files

Alby
Hi guys, thanks for this...

Apologies for being a total cretin, but is that the only code I need to embed in the page?

Something like this?

"





"

Sorry for the daft questions but I'm no PHP expert so don't really know what I'm doing with this bit!
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Site displays raw PHP code, not installation screen

Post by jmcgin51 »

you don't need any of the , etc.

just
Pierre M.

Re: Site displays raw PHP code, not installation screen

Post by Pierre M. »

phillthump wrote: ..I'm no PHP expert so don't really know what I'm doing with this bit!
Beware. PHP expert level is not required to make sites with CMSms. But basic PHP knowledge like phpinfo to get information about hosting (issue investigation...) is required. As you can see it is required to select a capable hosting provider.

Pierre M.
phillthump
Forum Members
Forum Members
Posts: 12
Joined: Tue Sep 16, 2008 10:32 am

Re: Site displays raw PHP code, not installation screen

Post by phillthump »

OK thanks guys,

To be honest, I usually use Namesco and they are adequate for this system. Unfortunately the client decided upon this hosting provider and, as they are in South Africa, it is proving a bit of a headache!

I've uploaded an "index.html" file with "" embedded in the code and am currently seeing nothing but a blank page.

Would this indicate that the hosting does not support PHP? Also, would the hoster need to be supporting Linux rather than Windows? I'm not sure which is being used in this case but thought that may be an issue?
Last edited by phillthump on Wed Jul 22, 2009 10:19 am, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Site displays raw PHP code, not installation screen

Post by Jos »

You better upload a index.php in stead of a index.html

Or a test.php to not overwrite the CMSms-file

And CMSms works well on both Linux and Windows
Last edited by Jos on Wed Jul 22, 2009 10:39 am, edited 1 time in total.
Locked

Return to “[locked] Installation, Setup and Upgrade”