Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

best practice for a LAMP environment

Featured Replies

Hi!
 

I'm fairly new to the unraid community, I built my first unraid machine and purchased a license just about two weeks ago. Since then I'm wondering what's the best practice to set up a LAMP enviroment with Unraid.

 

My first guess was to set up an Ubuntu VM and install apache, php and mysql. This worked well but I'm struggeling to find a good way to set up the webserver root (htdocs-directory). What I would like to to is to use a Unraid share inside the VM so I don't have to set up and manage another samba configuration inside the VM. First I tried to set up a mount tag and mount a 9p file system inside the VM. By raising the msize in the fstab mount I'm getting a reasonable performance (it was quite bad with the default msize). But I noticed that Apache doesn't update a file until I read the file inside the VM over the console (e.g. with the midnight commander editor). Until that Apache always seems to get a cached version of the file. I found two apache settings:

 

EnableSendfile Off

EnableMMAP Off

 

After adding this into apache.conf I need to reload twice to get the latest version of a file. So still not perfect.

 

I tried to mount the htdocs-directory over smb but I just got very weird results (Apache offering random files for download instead of serving them, files appearing and dissapearing randomly for Apache etc.).

 

I finally set up another samba service inside the VM, but I don't like to manage two different samba configurations, creating another backup etc.

 

What's your solution for your LAMP environment?

 

Cheers

 

MJFox

  • 3 months later...

Hey man, I recently added a debian VM and intalled a LAMP stack. There's a way to add a Unraid share that you mount in Debian.

I have a "Webhosting" folder in unraid that goes to my webservers www, kinda.

See this thread, it helped me:


However, i'm kinda looking at the apache/php container and the mariadb. I have them installed but havent paried them together. Havent had time to look into it.


Hope it helps

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.