<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Hi</div><div class="gmail_default" style="font-family:tahoma,sans-serif">I am following a document but something seems to be a typo and I want to be sure about that.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">1) It says:</div><div class="gmail_default" style="font-family:tahoma,sans-serif">
<span class="gmail-fontstyle0" style="font-family:TimesNewRomanPSMT;font-size:12pt;font-style:normal;font-weight:normal;color:rgb(0,0,0)">In the webserver root directory, we will install the Olio PHP application, we will call this directory $APP_DIR:<br></span><span class="gmail-fontstyle2" style="font-family:CourierNewPSMT;font-size:10pt;font-style:normal;font-weight:normal;color:rgb(0,0,0)">o </span><span class="gmail-fontstyle0" style="font-family:TimesNewRomanPSMT;font-size:12pt;font-style:normal;font-weight:normal;color:rgb(0,0,0)">cd /webserver/root/dir (e.g. /home/username/htdocs/ created when we<br>installed Nginx).</span> <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">So, I set <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> location / {<br> root /home/ub/htdocs;<br> index index.html index.htm;<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"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">2) It says:<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">
<span class="gmail-fontstyle0" style="font-family:TimesNewRomanPSMT;font-size:12pt;font-style:normal;font-weight:normal;color:rgb(0,0,0)">The nginx.conf configuration file must be set with the correct port number to access PHP-FPM. Open the file nginx.conf and make sure the following lines exist:<br>location ~ \.php$ {<br>root /path/to/root (e.g /home/username/htdocs/public_html );<br>fastcgi_pass </span><span class="gmail-fontstyle0" style="color:rgb(0,0,255);font-family:TimesNewRomanPSMT;font-size:12pt;font-style:normal;font-weight:normal"><a href="http://127.0.0.1:9000">127.0.0.1:9000</a></span><span class="gmail-fontstyle0" style="font-family:TimesNewRomanPSMT;font-size:12pt;font-style:normal;font-weight:normal;color:rgb(0,0,0)">;<br>fastcgi_index index.php;<br>fastcgi_param SCRIPT_FILENAME $APP_DIR/$fastcgi_script_name; (e.g., /home/username/htdocs/public_html/$fastcgi_script_name)<br>include fastcgi_params; }</span> <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"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Currently, I have this 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/index*<br>/home/ub/htdocs/public_html/index.php</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">If I open browser and enter localhost, I can see the content of ~/htdocs/index.html. So, the first step is fine.</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">
The
fastcgi_param says $APP_DIR. So, I should write
/home/ub/htdocs but the "e.g." part says
/home/ub/htdocs/public_html <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 am not sure if the root in the second step is /home/ub/htdocs or /home/ub/htdocs/public_html</div><div class="gmail_default" style="font-family:tahoma,sans-serif">?</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">Can someone help. Thanks.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"></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 style="font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
</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></div>