WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: 'Lighty' (lighttpd)  (Read 9207 times)

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: 'Lighty' (lighttpd)
« Reply #15 on: February 12, 2019, 08:36:17 AM »
I don't know about lighttpd and php as I only use it for static files, but I do know that nginx and php-fpm works well. Lighttpd and nginx extensions are both less than 1 meg and have the same dependencies, if size is your concern.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: 'Lighty' (lighttpd)
« Reply #16 on: February 12, 2019, 10:07:29 AM »
TomyTurbos,  please...

The point here..  If you have to use sudo to launch the application with desired options, fine!  There's no problem with that at all.  As I've said earlier I know nothing about lighttpd and at present have no need for it,  but if I did I'm fairly sure I could figure out how to do it right without all the fuss just like most folks..   
Most linux applications have similar usage and lighttpd is clearly not that difficult to figure out.  Heck, https://linux.die.net/man/8/lighttpd tells us almost everything we need to know barring a few TinyCore specifics.   

This!
Quote
One of the mistakes was probably making a Dir as root when I should not have.  That said, I am using spacefm to navigate and editing with leafpad.  Neither of these are 'playing nice' with '/etc' or its subdirs.  Troubleshooting that is beyond the scope of this thread, however.
This is infuriating, this attitude doesn't help us help you at all.    I feel for you and everyone else new to TC, because I've been there;  Understanding the file system and permissions is of utmost importance and should be your primary focus, not shrugging it off as" beyond this thread's scope",  on the contrary IMO it's probably the only topic you should be discussing.    The Core Concepts will help.  Either way figure it out..


I'm obviously biased regarding spaceFM and while it's not 100% perfect IMO spaceFM is the best user friendly File Manager available for any operating system.     I strongly recommend putting in the effort learning how to navigate the file system, manipulate files (incl. symlinks) and even basic file editing with VI from the terminal.  Because there are often times especially managing a web/file server (which doesn't need a desktop gui) when this is the only way..      Used in combination, SpaceFM and the Terminal are extremely powerful tools and typically is all you'll ever need. 

Quote
Neither of these are 'playing nice' with '/etc' or its subdirs
Really?   please explain...
What command did you use, with what options?
What was the desired result?
What was the actual result?
What was the error message?

I demonstrated in my previous post how to create a file and edit it without every needing sudo.   
You can use SpaceFM to navigate, then "F4" to open a terminal and enter a command.

Or simply open a terminal from the wbar and enter
mkdir /etc/mydir
touch /etc/mydir/myfile.conf

When you understand the file system you'll know that /usr/local/etc/lighttpd might not be directly edited even with sudo, meanwhile:
Use the editor of choice to copy and save the contents of /usr/local/etc/lighttpd  to your new /etc/mydir/configFile (or /etc/configFile) and edit that file as necessary
SpaceFM with it's multi-Tab feature is great for this.
When the file permissions are such that a user is not given read permisions, then and only then try from a terminal
Code: [Select]
sudo editor /usr/local/etc/lighttpdcopy the contents to a file you can edit (eg: /etc/configFile), or SaveAs /etc/configFile

then launch the application with the -f option specifying where the new config file is
Don't forget to make a backup which includes the new config file before rebooting

There's no fuss, no having to find a workaround, just learn why you can't accomplish the task as expected.
Is there really anything else?

good luck
« Last Edit: February 12, 2019, 10:28:35 AM by coreplayer2 »

Offline TomyTurbos

  • Jr. Member
  • **
  • Posts: 95
Re: 'Lighty' (lighttpd)
« Reply #17 on: February 12, 2019, 09:24:12 PM »
When I previously said "Troubleshooting that is beyond the scope of this thread", it was in keeping with "Do not go from one question to a completely different question in the same thread. Start a different topic." http://forum.tinycorelinux.net/index.php/topic,7738.0.html

This is why I am not discussing spacefm here.