Having trouble with my VPS, nginx, opening php's
===

I've a trouble opening some php's on my VPS. I use NGINX as web server and the trouble comes when I try to open a some php's on my browser.

I'm gonna put here a source shortcut where you could found the problem. 

    <?php
    require('cifirstlog.php'); // This cheks if the user is logged and if is the first log.
    include("Resources/functions.php"); // Some functions...
    $userid = $_GET['id']; // Get de ID from the url
    $myId = $_SESSION['userid']; // JUST IN CASE

     // Getting the user data
    $query = mysql_query("SELECT * FROM users WHERE ID_USR=$userid");
    $userRows=mysql_fetch_array($query);
    $lastname = $userRows['lastname'];
    $username = $userRows['username'];
    $country = $userRows['nacionality'];
    
    
    $arrayFollowers = cargarTablaFollowers($userid); // Loading the followers table
    $age = calculaEdad($userRows['dob']);    // user age
    $esMiPerfil = detectarMiPerfil($userid); // Detecting if the profile is the user's profile
    // Comments
    if (@isset($_POST["send"]))
    {
    	// Campos tabla COMMENTS_PROFILE
            $idUsr = $userid;
            $idRem = $_SESSION["userid"];
            $dateTime = date('Y-m-d H:i:s');
            $commentStatus = "READ"; // Gotta work here
            $description = $_POST["comment"];
      	
    	if($description == NULL)
    	{
    		echo "Please, enter the requested comment";
    	}
    	else
    	{
    		mysql_query("INSERT INTO COMMENTS_PROFILE (ID_USR, ID_REM, DATETIME, COMMENT_STATUS, INT_UPS, INT_DOWNS, INT_FAVS, DESCRIPTION) VALUES ($idUsr,$idRem,'$dateTime','$commentStatus',0,0,0,'$description')");
    
    	}
    }
    
    // Follow 
    if (@isset($_POST["folUser"]))
    {
        mysql_query("INSERT INTO FOLLOWERS_USR (ID_USR, FOLLOWEDBY) VALUES ($userid,$myId)"); 
        $arrayFollowers = cargarTablaFollowers($userid); 
    }
    
    // Unfollow
    if (@isset($_POST["unFolUser"]))
    {
        mysql_query("DELETE FROM FOLLOWERS_USR WHERE ID_USR=$userid AND FOLLOWEDBY=$myId");
        $arrayFollowers = cargarTablaFollowers($userid);
    }
    
    
    ?>


**The browser returns "Access Denied" or "Internal server error...."**

I've some html code after this, a couple of forms and the web template so I leave it out. I realize the source is not well programmed but **it works in another server with Apache** as web server. Don't know what I've to do, could be my nginx configuration or something. I hope we find it out.

Sorry for my english. See you

