PHP on FreeNAS

Status
Not open for further replies.

SamTheMan

Cadet
Joined
May 27, 2015
Messages
4
//Begin new user greeting
Hello everyone! I'm new to FreeNAS and so far, I'm a bit of a fan.

My ultimate goal is as follows:
Setup a Windows Share that can be opened from a web browser.

So far this has been incredibly simple with FreeNAS. I setup my Windows share, I changed the FreeNAS port to 8000, and I changed the WebDAV port to 80.
I pointed them both to the same share, and now I'm incredibly pleased. User's can UNC, upload files, and view them anywhere in a web browser.

This has either not been possible, or been incredibly difficult with any other Linux Distro.
//end new user greeting

Now comes my current problem:
I want to install PHP on FreeNAS and link it to the default Apache.
I have read a couple articles on doing this with Jails, but I don't want to do this because my PHP/HTML scripts need to be placed in the same directory that the Windows Share is in. Long story short, I'm hoping to extend my current use of FreeNAS by making it somewhat of a Webserver. No need to be concerned here, FreeNAS is being used specifically for this (we want a browser available fileshare that can have files added locally via UNC).

Thank you in advance for any help.
- Sam
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
You should not modify the core appliance by installing software on it
 

SamTheMan

Cadet
Joined
May 27, 2015
Messages
4
Why not? I'm just asking about installing PHP on it.
Does FreeNAS not allow the installation of any software?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Why not? I'm just asking about installing PHP on it.
Does FreeNAS not allow the installation of any software?
No, it doesn't. You can only do so in Jails.
 

SamTheMan

Cadet
Joined
May 27, 2015
Messages
4
Thanks, but isn't a Jail specifically isolated from the rest of the machine? Will a Jail be able to access Windows Shares?
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Why not? I'm just asking about installing PHP on it.
Does FreeNAS not allow the installation of any software?
It's an appliance. Treat it as such.

You should not modify it. You should not install software on it. Any update will wipe that installed software out.

Use jails.
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Thanks, but isn't a Jail specifically isolated from the rest of the machine? Will a Jail be able to access Windows Shares?
Please read the documentation.

A jail can access whatever you point it to.
 

SamTheMan

Cadet
Joined
May 27, 2015
Messages
4
Thanks guys!
I think there must have been a misunderstanding of Jails on my part. I'll jump back into the books. :)
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Jails are amazing. Just dive in and play around. A jail is a full freebsd install and you can mount any directory you have on FreeNAS in the jail to access it.
 
Status
Not open for further replies.
Top