Friday, 15 June 2012

php - Linux Ubuntu 14.00 - Apache2 file not found error - where file exists -



php - Linux Ubuntu 14.00 - Apache2 file not found error - where file exists -

i using vps installed ubuntu 14 os. installed apache2 , php5, more info installed think can see here: http://www.crankpost.com/phpinfo.php

i have unusual problem. when transfered website old hosting vps started receive unusual error.

the problem says file post.php missing when it's not.

i've created phpinfo.php , can see can open it. file phpinfo.php right next post.php post.php can't opened.

try yourself: rankpost.com/post.php <- can't open it.

the file permission post.php same phpinfo.php 644.

i downloaded website filezilla , uploaded new hosting vps winscp if matters. maybe someting transfer method ?

can please help me resolve unusual problem ?

edit:

here .htaccess file:

options +followsymlinks rewriteengine on rewritecond %{http_host} ^crankpost.com [nc] rewriterule ^(.*)$ http://www.crankpost.com/$1 [l,r=301] rewriterule ^home mhome.php rewriterule ^checklogin clogin.php rewriterule ^login login.php rewriterule ^logout log-out.php rewriterule ^registration createacc.php rewriterule ^create-account register.php rewriterule ^confirm-email=([^/.]+)?$ activateacc.php?id=$1 [l] rewriterule ^profile=([^/.]+)?$ member.php?id=$1 [l]

here content of post.php

if(isset($_post['querystring'])) { $querystring = mysql_real_escape_string($_post['querystring']); if(strlen($querystring) >0) { $query = mysql_query("select * profiles name '%" .$querystring . "%' limit 10"); if(mysql_num_rows($query) >= 1) { while($row = mysql_fetch_array($query)) { $name = mysql_real_escape_string($row['name']); echo '<a href="# "onclick="fill(\''.$name.'\');">'.$name.'</a>'; } } else { ?> <div style="display:block;line-height:35px;color:black;"> <?php echo noresult;?> </div> <? } } else { // nil } } else { echo 'there should no direct access script!'; }

and when hold content file not opening if alter content more simple this:

if(1 == 1) {echo "hi";} else{ echo "bye"; }

with content it's opening normal. going on !?!?

i don't know hapening...

am missing library ?

thanks in advance!

you using mysql_ function deprecated since php 5.5. need alter this, file isn't usable installed version of php 5.5.

that's error comes from

have on mysqli_ or pdo

php linux apache ubuntu

No comments:

Post a Comment