Portal Home > Knowledgebase > Articles Database > php file displaying source
php file displaying source
Posted by streetmedia, 08-29-2007, 06:39 AM |
hey wht
we're trying to set up a php bugtrack helpdesk in my workplace.
im limited to information on the system, however i am aware it's on a windows server with iis (iss?)...
the index.php works fine, but when you log in with the admin credentials the login page displays all the source code rather than executing.
im hoping there may be any obvious or glaring errors for me to check out with the IT guy. can anyone help?
many thanks
|
Posted by Steve_Arm, 08-29-2007, 06:45 AM |
It's on Windows Server with Apache.
Open httpd.conf, scroll to line and add this:
AddType application/x-httpd-php .php
Do you have this line in the file already?
|
Posted by kieransimkin, 08-29-2007, 08:16 PM |
Are you sure the index.php works fine? Are you sure it's not an index.html? I suggest you upload a simple PHP test program to verify whether PHP is working at all on your server - if it is, verify if it works from within the admin directory. If it doesn't, ask your IT guy what the difference between the admin directory and the main directory is.
|
Posted by streetmedia, 08-30-2007, 05:35 AM |
thanks for your help guys!
AddType application/x-httpd-php .php is in already, i just checked.
we created a test php file to display all the php info and it;s working fine.
the index.php works ok, but when we go to log in with the admin password the php file seems to display half the php in the browserr window.
im gonna test it on my linux setup tonight.
it's frustrating cause it's just an additional project for myself - im the web admin and im trying to set up a web helpdesk. i normally work with linux in my spare time, so im not clued up on the windows differences. i was hoping the it guy would be knowledgful, but as it's not a priority it's not getting much attention.
back to google for me!
|
Posted by streetmedia, 08-30-2007, 05:38 AM |
could it be that some of the php files have
rather than
at the tops of the files?
|
Posted by streetmedia, 08-30-2007, 05:47 AM |
looks like this may be the problem!
hello mr IT guys job!
|
Posted by digirave, 09-02-2007, 12:51 AM |
most php installations by default allow or |
Posted by Ks Jeppe, 09-02-2007, 05:42 AM |
how can you be use that he has a default php installation? :? Dont really see the point of your post, especially when he replied that it was indeed the problem..
|
Posted by Mxhub, 09-02-2007, 06:46 AM |
I suggest recompile PHP again.
|
Add to Favourites Print this Article
Also Read
IPMI security (Views: 658)