WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Few newb questions  (Read 3028 times)

Offline infraRed

  • Newbie
  • *
  • Posts: 1
Few newb questions
« on: January 06, 2011, 05:28:03 PM »
Hey, just ran into TinyCore the other day, ran the LiveCD, read up on it. Some cool concepts. A few questions: Can/does anyone run a public web server/mail server on tinycore? Also, what does tinycore do with peristent, yet changing stuff, like log files, mail spools, and such like?

I come from a Gentoo background myself, if you're curious.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10962
Re: Few newb questions
« Reply #1 on: January 07, 2011, 12:51:26 AM »
Quote
Also, what does tinycore do with peristent, yet changing stuff, like log files, mail spools, and such like?

That's your decision ;)

By default they would be in ram and get wiped on a reboot. If you add them to your backup, they would be in ram during runtime, but saved on shutdown and restored on boot. You can also set up a partition there, so that they are persistent like in other distros. Or... many possibilities.
The only barriers that can stop you are the ones you create yourself.

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: Few newb questions
« Reply #2 on: January 07, 2011, 02:44:46 AM »
Hi:
I am working on TC3.41 to make it my "home sandbox to" test and "play" with my webpage offline on my computer at home.
So far I installed lighttpd (which automatically installs mysql with it) and PHP 5. Now I need this
beest to be loaded with my website. After that I would like to set up a dtaabase with my products and do
some form programming in PHP, CGI -Perl.
It is still a long way to go but I am interested to be in contact with some one who can and will help me.
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Few newb questions
« Reply #3 on: January 07, 2011, 07:36:06 AM »
Yikes!
mysql
openldap
perl

Not so 'light' is it?

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: Few newb questions
« Reply #4 on: January 08, 2011, 05:31:41 AM »
Yikes!
mysql
openldap
perl

Not so 'light' is it?
Hi thank you for this response - but sorry I am too dumb to understand
Please explain - Thank you so much :)
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Few newb questions
« Reply #5 on: January 08, 2011, 08:38:40 AM »
lighttpd is supposed to be light http server.
When the deps pull in mysql, perl, and openldap, it isn't light anymore.


Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: Few newb questions
« Reply #6 on: January 10, 2011, 02:32:08 AM »
thank you for that - I appreachiate it - soorry I was confused - but now I know
==========================================================

I would like to have a offline enviroment to test my dynamic html /php pages at home
on a laptop with TC 3.41. After my forms and other stuff are working I will transfer to
my provider.

But lighttpd is not enogh to test my stuff, I need a database (same as my provider) and PHP.

Do you know a better solution?

BTW: I found out, when I install a huge amount of extensions, TC does not work properly any more.
May be because I have only 256 MB of RAM. Am I right that in this case the estensions are not fitting
in my RAM any more?

Thank you so much for your help

t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Few newb questions
« Reply #7 on: January 10, 2011, 04:04:20 AM »
You can check with

Code: [Select]
df |grep tmpfs
Having some swap available might not be a bad idea.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: Few newb questions
« Reply #8 on: January 10, 2011, 12:17:31 PM »
lighttpd is supposed to be light http server.
When the deps pull in mysql, perl, and openldap, it isn't light anymore.

Which is why I didn't put them in the .dep file. They were added later. If you read lighttpd.info you'll see what I mean. Leaving them out leads to confusion when users try to use the mod_auth, mod_mysql_vhost, or mod_webdav plugins, and including them confuses users that just want the web server without the extra baggage.

Based on this and other discussions, I will create a new "lighttpd-full" meta-extension to address the issue, but for now you can simply remove mysql, libldap, libxml2, sqlite3, or any other extra dependencies from the .dep file on your system if you don't need them.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: Few newb questions
« Reply #9 on: May 20, 2011, 07:44:22 AM »
Which is why I didn't put them in the .dep file. They were added later. If you read lighttpd.info you'll see what I mean. Leaving them out leads to confusion when users try to use the mod_auth, mod_mysql_vhost, or mod_webdav plugins, and including them confuses users that just want the web server without the extra baggage.

Based on this and other discussions, I will create a new "lighttpd-full" meta-extension to address the issue, but for now you can simply remove mysql, libldap, libxml2, sqlite3, or any other extra dependencies from the .dep file on your system if you don't need them.

I finally determined the best solution was to split the "heavy" modules out as separate extensions: lighttpd-auth, lighttpd-mysql, and lighttpd-webdav. I also created a new extension, lighttpd-nodeps, with no dependencies for simple tasks.

Anyone who uses those functions and updates the lighttpd extension will find them missing. A quick look at the repository will indicate the change I made so the new extensions can be downloaded as needed.