<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">OK with this configuration:</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">        location ~ \.php$ {<br>            root           /home/ubuntu/htdocs/public_html;<br>            fastcgi_pass   <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;<br>            fastcgi_index  index.php;<br>            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;<br>            include        fastcgi_params;<br>        }</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">and the following folder structure</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">$ ls ~/htdocs/<br>build.xml  classes  controllers  etc  includes  index.html  lib  public_html  views</div><div class="gmail_default" style="font-family:tahoma,sans-serif">$ ls ~/htdocs/public_html/<br>addAttendee.php        checkUser.php             fileService.php   logout.php            upcomingEvents.php<br>addDeleteFriend.php    css                       findUsers.php     phpinfo.php           users.php<br>addEvent.php           deleteAttendee.php        friends.php       postedEvents.php      xsl<br>addEventResult.php     deleteCommentsRating.php  getAppConfig.php  rateit.php            yourUpcomingEvents.php<br>addPerson.php          deleteEvent.php           images            rejectInvite.php<br>addPersonResult.php    events.php                index.php         requestCityState.php<br>approveFriendship.php  favicon.ico               js                revokeInvite.php<br>calendar.php           feedFromDB.php            login.php         taggedEvents.php</div><div class="gmail_default" style="font-family:tahoma,sans-serif">$ ls ~/htdocs/public_html/js/<br>controls.js  dragdrop.js  effects.js  httpobject.js  prototype.js  starrating.js  validateform.js</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">when I open "localhost/index.php", I can see the php page, however, in the logs/error.log I see these</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">2020/03/16 21:34:22 [error] 5821#0: *2 FastCGI sent in stderr: "PHP message: PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/tmp/http_sessions/sess_dd0e14b5b3f5aebcb53015b6bebc3bfa, O_RDWR) failed: No such file or directory (2) in /home/ubuntu/htdocs/public_html/index.php on line 26</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Also I see somethings like</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">2020/03/16 21:34:22 [error] 5821#0: *2 open() "/home/ubuntu/htdocs/js/dragdrop.js" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /js/dragdrop.js HTTP/1.1", host: "localhost", referrer: "<a href="http://localhost/index.php">http://localhost/index.php</a>"</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I don't know why it is using 
"/home/ubuntu/htdocs/js/dragdrop.js"?</div><div class="gmail_default" style="font-family:tahoma,sans-serif">According to the setting, it should look for it at 
"/home/ubuntu/htdocs/public_html/js/dragdrop.js" where the file actually exists.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I know that is not directly related to nginx, but I appreciate any feedback.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="tahoma,sans-serif">Regards,<br>Mahmood</font><br><br><br></div></div></div><br></div><br></div>