LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 02-26-2011, 11:18 AM   #1
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Rep: Reputation: 49
Some questions about making my desktop into a functioning web server


Hello:

I would like to try making my desktop into a functioning web server on the web, if this is possible.

The plan is to have web pages attached to a database where data provided by the users will be stored and to have programs that will process this data to generate new pages or PDF reports.

I plan to user FireBird as the database manager and build the front
end with Lazarus, if possible.

My desktop is a small Acer with a 1TB hard disk. At the moment it has 1 partition containing Windows 7 which I would like to keep, for now.

My internet connection is a phone company supplied standard residential high speed.

Here are my questions, if this idea is actually possible:
  1. How should I partition the disk or is a root and home partition OK?
  2. When I install Slackware, is there anything special that I must do?
  3. How do I actually let the web know that this server exists?
  4. Are there any Slackware specific sites where I can learn how to do this type of stuff?

Thanks for direction in this,
 
Old 02-26-2011, 11:39 AM   #2
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,278

Rep: Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587
Okay you need to install the apache web server (httpd) if you did not install that. Then you need to start the web server :

# /etc/rc.d/rc.httpd start

If your web server is wide open to the Internet I would install a software firewall. Eric's firewall generation script is excellent.

http://connie.slackware.com/~alien/efg/
 
1 members found this post helpful.
Old 02-26-2011, 11:58 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
How should I partition the disk or is a root and home partition OK?
I should use a separate /var
Quote:
How do I actually let the web know that this server exists?
You need a domain name and DNS setup to point to your IP
If you have a static IP, you can use dyndns
http://www.dyndns.com/
Make sure your provider doesn't block port 80
Quote:
Are there any Slackware specific sites where I can learn how to do this type of stuff?
http://www.google.be/search?q=slackw...ient=firefox-a
You need to forward port 80 on your router to the server
And as hitest suggested, you could install a firewall

Kind regards
 
1 members found this post helpful.
Old 02-27-2011, 06:49 PM   #4
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 49
Thank you.

For me, being a newbie and all, would it be better to install the 32 bit version instead of the 64 bit version on my 64 bit Acer with 6GB of memory or, does it matter?

Thanks,
 
Old 02-27-2011, 07:11 PM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
For me, being a newbie and all, would it be better to install the 32 bit version instead of the 64 bit version on my 64 bit Acer with 6GB of memory or, does it matter?
Well if you run the standard kernel in the 32bit version you'll loose a lot of that memory. See this thread for an explanation. The Slackware64 version is really no harder than the standard Slackware release. If you really want to run Slackware 32 bit then you'll have to recompile the kernel with the CONFIG_HIGHMEM64G=Y set. The thread I linked to has the details.
 
1 members found this post helpful.
Old 02-27-2011, 07:11 PM   #6
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
64 bit o/s and 64 bit web server

repo said that you can use dyndns if you have a static public IP address. You can also use dyndns.com if your ISP changes the public address of your gateway. Dyndns.com has a client that you can run on Linux. Many gateway/routers also have support for dyndns.com. built into them.

Last edited by stress_junkie; 02-27-2011 at 07:14 PM.
 
1 members found this post helpful.
Old 02-27-2011, 07:47 PM   #7
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by stress_junkie View Post
64 bit o/s and 64 bit web server

repo said that you can use dyndns if you have a static public IP address. You can also use dyndns.com if your ISP changes the public address of your gateway. Dyndns.com has a client that you can run on Linux. Many gateway/routers also have support for dyndns.com. built into them.
Thanks stress_junkie, we used to use dyndns where I worked (until they closed down and turned me into a 'consultant'!!!) and it did the job well.
 
Old 02-27-2011, 07:50 PM   #8
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by bgeddy View Post
Well if you run the standard kernel in the 32bit version you'll loose a lot of that memory. See this thread for an explanation. The Slackware64 version is really no harder than the standard Slackware release. If you really want to run Slackware 32 bit then you'll have to recompile the kernel with the CONFIG_HIGHMEM64G=Y set. The thread I linked to has the details.
Hi bgeddy:

Thanks for the guidance and the link.
 
Old 02-27-2011, 07:51 PM   #9
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by hitest View Post
Okay you need to install the apache web server (httpd) if you did not install that. Then you need to start the web server :

# /etc/rc.d/rc.httpd start

If your web server is wide open to the Internet I would install a software firewall. Eric's firewall generation script is excellent.

http://connie.slackware.com/~alien/efg/
Thanks for the help, hitest!
 
Old 02-27-2011, 07:53 PM   #10
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by repo View Post
I should use a separate /var

You need a domain name and DNS setup to point to your IP
If you have a static IP, you can use dyndns
http://www.dyndns.com/
Make sure your provider doesn't block port 80

http://www.google.be/search?q=slackw...ient=firefox-a
You need to forward port 80 on your router to the server
And as hitest suggested, you could install a firewall

Kind regards
Thanks repo, I appreciate your time and links.
 
Old 02-28-2011, 03:49 PM   #11
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 13.37 -32 Bit
Posts: 578

Original Poster
Rep: Reputation: 49
Hello:

I hate being a 'pest' but could someone suggest a partitioning scheme for my 1GB disk to be used as a web server. I just don't know what size each should be:

/
/home
/var

Any further suggestions or input would be appreciated.
 
Old 03-01-2011, 09:03 AM   #12
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, Portugal
Distribution: Slackware
Posts: 273

Rep: Reputation: 74
You can also check out my how-to (just ignore the installation part, if you did a full install of slackware)
 
1 members found this post helpful.
Old 03-01-2011, 10:41 AM   #13
Martinezio
Member
 
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191

Rep: Reputation: 32
I would suggest to consider another partition for database storage.

Ideal solution will be to have 2 or more HD configured in RAID (at least in mirroring mode).

The sizes of each partition You must consider by Your needs. It depends, how much data You'll be storing.
The size of very advanced web application could take up to feaw gigs (I'm talking just about PHP scripts and graphics, I ommits db content), so the size of /var doesn't matter.
If the desktop is heavily used by You in your daily work, so do big /home partition.
System root partition You can make at 20GB - should be good for very long time. All the rest for db partition.

(don't forget about swap partition )
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Non-functioning touchpad........making me upset! johnzdrummer Linux - Newbie 2 06-15-2008 05:53 AM
Making my Apache server (web page) available on the internet Rufus T. Firefly Linux - Networking 3 01-31-2007 03:20 PM
Making a file server - questions: multi-port NICs, switches, etc BrianK Linux - Hardware 0 05-22-2006 09:01 PM
Making a web server jaakkop Linux - Networking 2 05-18-2005 11:46 PM
Making a Web server... zaphanol Linux - Networking 6 08-04-2003 12:09 AM


All times are GMT -5. The time now is 01:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration