Jump to content

Problem after server update


Recommended Posts

Hello, I am trying to update a program from apache 2.2 to apache 2.4 and php 5.2 to php 5.6.The server seems to be working properly but something is changing the html in a php file i have:

<?php//some code?><script type="text/javascript" src="/route/to/some.js" ></script><table width="100%" border="0" >... 

in the browser is changed to:

<!--?php<script type="text/javascript" src="/route/to/some.js"--><table width="100%" border="0" >...  

I don't know if apache is doing that or what else.

 

Thanks

Link to post
Share on other sites

Is the page saved with .php extension? Is/was php and apache updated with no problems/errors? If all is fine with those, then do you have anything running on the server like a security program working with apache that might cause that?

 

Checking logs/error logs could maybe help you see what's going on as well.

Edited by Don E
Link to post
Share on other sites
Hello, thank you for your answers.
Php is running, it gests some information from a database, etc.
but, for example, in the php code:
echo "<script> window.location='" . $_SERVER['PHP_SELF'] . "';</script>";exit;

then, the output in the browser is:

<!--?php<?php<script--><html><head></head><body>window.location='/index.php';</body></html>

I don't know if an Apache module can (and it is) doing that.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...