Installing FEMP Stack

Status
Not open for further replies.

sdgenxr

Contributor
Joined
Sep 4, 2014
Messages
131
I've been reading around on how to install a FEMP Stack on my FreeNAS and it seems like the DigitalOcean.com article is the best and most current source. However, after completing the directions, I cannot serve up php pages. Everything seems to work up until the very last step when I try and serve up the info.php page and receive a 404 error. It serves up the .html page perfectly, just not the .php page.

Can anyone guide me on how to trouble shoot this? It would be really nice if there was a FEMP Stack plugin with phpMyAdmin going forward.

Thanks,
 
Last edited:

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
I've been reading around on how to install a FEMP Stack on my FreeNAS and it seems like this article is the bets and most current source. However, after completing the directions, I cannot serve up php pages. Everything seems to work up until the very last step when I try and serve up the info.php page and receive a 404 error. It serves up the .html page perfectly, just not the .php page.

Can anyone guide me on how to trouble shoot this? It would be really nice if there was a FEMP Stack plugin with phpMyAdmin going forward.

Thanks,

I do hope you installed this in a jail.
 

sdgenxr

Contributor
Joined
Sep 4, 2014
Messages
131
Yes, I have it installed in a jail.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
404 is a not found error. Are you sure your created the info.php correctly and in the right location? Have you tried restarting the service?

Code:
service php-fpm restart
service nginx restart
 

sdgenxr

Contributor
Joined
Sep 4, 2014
Messages
131
I checked to ensure that info.php is in fact in the same directory as inex.html (/usr/local/www/nginx/).

After a restart of the php and nginx services, I still get a 404 error.

Code:
root@webserver:/usr/local/www/nginx # service php-fpm restart
Stopping php_fpm.
Waiting for PIDS: 15572.
Starting php_fpm.
root@webserver:/usr/local/www/nginx # service nginx restart
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Stopping nginx.
Waiting for PIDS: 15579.
Performing sanity check on nginx configuration:
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
Starting nginx.
root@webserver:/usr/local/www/nginx
 

sdgenxr

Contributor
Joined
Sep 4, 2014
Messages
131
Nothing in the error.log stands out as an error. However, when I checked the access.log, I get this.
Code:
192.168.1.132 - - [10/Aug/2015:14:51:10 -0700] "GET / HTTP/1.1" 304 0 "-" "Mozil
192.168.1.132 - - [10/Aug/2015:14:51:10 -0700] "GET /favicon.ico HTTP/1.1" 404 1
192.168.1.132 - - [10/Aug/2015:14:51:10 -0700] "GET /favicon.ico HTTP/1.1" 404 1
192.168.1.132 - - [10/Aug/2015:14:51:16 -0700] "GET /info.php HTTP/1.1" 404 168 

Code:
2015/08/09 17:35:40 [notice] 75574#0: using the "kqueue" event method   
2015/08/09 17:35:40 [notice] 75574#0: nginx/1.8.0   
2015/08/09 17:35:40 [notice] 75574#0: OS: FreeBSD 9.3-RELEASE-p16   
2015/08/09 17:35:40 [notice] 75574#0: kern.osreldate: 903000, built on 903000   
2015/08/09 17:35:40 [notice] 75574#0: hw.ncpu: 8   
2015/08/09 17:35:40 [notice] 75574#0: net.inet.tcp.sendspace: 32768   
2015/08/09 17:35:40 [notice] 75574#0: kern.ipc.somaxconn: 128   
2015/08/09 17:35:40 [notice] 75574#0: getrlimit(RLIMIT_NOFILE): 1024:1024   
2015/08/09 17:35:40 [notice] 75575#0: start worker processes   
2015/08/09 17:35:40 [notice] 75575#0: start worker process 75576   
2015/08/09 17:35:58 [error] 75576#0: *1 open() "/usr/local/www/nginx/favicon.ico
2015/08/09 17:35:58 [error] 75576#0: *1 open() "/usr/local/www/nginx/favicon.ico
2015/08/09 17:45:09 [notice] 75575#0: signal 15 (SIGTERM) received, exiting   
2015/08/09 17:45:09 [notice] 75576#0: exiting   
2015/08/09 17:45:09 [notice] 75575#0: signal 23 (SIGIO) received   
2015/08/09 17:45:09 [notice] 75576#0: exit   
2015/08/09 17:45:09 [notice] 75575#0: signal 20 (SIGCHLD) received   
2015/08/09 17:45:09 [notice] 75575#0: worker process 75576 exited with code 0   
2015/08/09 17:45:09 [notice] 75575#0: exit   
2015/08/09 17:45:09 [notice] 76229#0: using the "kqueue" event method   
2015/08/09 17:45:09 [notice] 76229#0: nginx/1.8.0   
2015/08/09 17:45:09 [notice] 76229#0: OS: FreeBSD 9.3-RELEASE-p16   
2015/08/09 17:45:09 [notice] 76229#0: kern.osreldate: 903000, built on 903000   
2015/08/09 17:45:09 [notice] 76229#0: hw.ncpu: 8   
2015/08/09 17:45:09 [notice] 76229#0: net.inet.tcp.sendspace: 32768   
2015/08/09 17:45:09 [notice] 76229#0: kern.ipc.somaxconn: 128   
2015/08/09 17:45:09 [notice] 76229#0: getrlimit(RLIMIT_NOFILE): 1024:1024   
2015/08/09 17:45:09 [notice] 76230#0: start worker processes   
2015/08/09 17:45:09 [notice] 76230#0: start worker process 76231   
2015/08/09 17:57:20 [notice] 76230#0: signal 15 (SIGTERM) received, exiting   
2015/08/09 17:57:20 [notice] 76231#0: exiting   
2015/08/09 17:57:20 [notice] 76230#0: signal 23 (SIGIO) received   
2015/08/09 17:57:20 [notice] 76231#0: exit   
2015/08/09 17:57:20 [notice] 76230#0: signal 20 (SIGCHLD) received   
2015/08/09 17:57:20 [notice] 76230#0: worker process 76231 exited with code 0   
2015/08/09 17:57:20 [notice] 76230#0: exit   
2015/08/09 17:57:21 [notice] 77066#0: using the "kqueue" event method   
2015/08/09 17:57:21 [notice] 77066#0: nginx/1.8.0   
2015/08/09 17:57:21 [notice] 77066#0: OS: FreeBSD 9.3-RELEASE-p16   
2015/08/09 17:57:21 [notice] 77066#0: kern.osreldate: 903000, built on 903000   
2015/08/09 17:57:21 [notice] 77066#0: hw.ncpu: 8   
2015/08/09 17:57:21 [notice] 77066#0: net.inet.tcp.sendspace: 32768   
2015/08/09 17:57:21 [notice] 77066#0: kern.ipc.somaxconn: 128 
 
Last edited:

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
You need to increase the log level, also look at the error log. Check out/enable the php-fpm log. I just set up Nginx and PHP-FPM in a jail in my box, I copied it from the exact same tutorial.

Sent from my Nexus 6 using Tapatalk
 

sdgenxr

Contributor
Joined
Sep 4, 2014
Messages
131
It looks like my trouble shooting efforts are on hold. I decided to start over and deleted my previous jail install and start fresh only to find out that I can't create a new jail. It is throwing an "Unable to find template!" error when trying to set up a new jail.
New Thread
 

sdgenxr

Contributor
Joined
Sep 4, 2014
Messages
131
OK, I got my jails working and figured out what I was doing wrong. There are two locations for the "location" section of the config file. Everything is sorted out and working according to the tutorial.
 
Status
Not open for further replies.
Top