PhatSOB Posted November 10, 2006 Share Posted November 10, 2006 OK guys I am sorry for posting probably a very simple problem but I have no experience with php. I am trying to get HLStatsX or PsychoStats running on my Apache 2.2.3 webserver. When I go to any of the pages all they do is load as codeex: http://phatsob.servebeer.com/psstatsDoes anyone here have experience running either HLstatsX or psychostats that may be able to help me get these running? I have been trying for almost a week now without any luck. PHP 5.2ActivePerl-5.8.8.819Apache 2.2.3MySQL 5HLStatsX 1.01orPsychostats 2.3.3Thanks for your help Link to comment https://forums.phpfreaks.com/topic/26851-php-pages-only-displaying-as-code/ Share on other sites More sharing options...
onlyican Posted November 10, 2006 Share Posted November 10, 2006 Try a simple PHP script<?phpphpinfo();?>I think that PHP is not installed correctly Link to comment https://forums.phpfreaks.com/topic/26851-php-pages-only-displaying-as-code/#findComment-122807 Share on other sites More sharing options...
PhatSOB Posted November 11, 2006 Author Share Posted November 11, 2006 sorry again but how do I run that script Link to comment https://forums.phpfreaks.com/topic/26851-php-pages-only-displaying-as-code/#findComment-123013 Share on other sites More sharing options...
marcus Posted November 11, 2006 Share Posted November 11, 2006 Make a new file and make the contents<?phpphpinfo();?>If not, you may not have the MIME Types set up correctly. Link to comment https://forums.phpfreaks.com/topic/26851-php-pages-only-displaying-as-code/#findComment-123014 Share on other sites More sharing options...
marcus Posted November 11, 2006 Share Posted November 11, 2006 If you do not have MIME Types set up, go into your cPanel (i assume you have one)go down to MIME Typesin the first text box (MIME Type) type: application/x-httpd-phpthen in the second box type: php,php3,phtml,php4 and hit add Link to comment https://forums.phpfreaks.com/topic/26851-php-pages-only-displaying-as-code/#findComment-123016 Share on other sites More sharing options...
heckenschutze Posted November 11, 2006 Share Posted November 11, 2006 Thats not going to work if PHP isnt correctly configured.,He does have the MIME types correctly set, because we're seeing the output as text not binary,Ensure PHP is installed on the server, and is running under the server... Link to comment https://forums.phpfreaks.com/topic/26851-php-pages-only-displaying-as-code/#findComment-123017 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.