fl0x1
Posts: 2
Joined: Tue Jun 11, 2013 5:40 am

What do I need for a Web Server?

Tue Jun 11, 2013 5:44 am

Hello,

So, I am a web developer and just want to learn some basics of how things work, so I want to run my own little web server. I'll buy Raspberry Pi Type B from rs-components.com. What else do I need? Thank you very much.

Heater
Posts: 14750
Joined: Tue Jul 17, 2012 3:02 pm

Re: What do I need for a Web Server?

Tue Jun 11, 2013 6:59 am

Install the Raspian operating system on it as in the instructions you will find around here.
Install the apache on the Pi:

$ apt-get install apache2

or perhaps you prefer nginx or some other webserver, installation is probably just as simple.

Create web pages.

It's not clear to me how a web developer does not know how to install a web server.
Memory in C++ is a leaky abstraction .

User avatar
MattHawkinsUK
Posts: 538
Joined: Tue Jan 10, 2012 8:48 pm
Location: UK
Contact: Website

Re: What do I need for a Web Server?

Tue Jun 11, 2013 7:17 am

Yesterday I published an article on setting up a web server on the Raspberry Pi.

I tend to use Lighttpd as it is faster than Apache.
My Raspberry Pi blog and home of the BerryClip Add-on board : http://www.raspberrypi-spy.co.uk/
Follow me on Google+, Facebook, Pinterest and Twitter (@RPiSpy)

User avatar
duberry
Posts: 379
Joined: Mon Jan 28, 2013 10:44 pm
Location: standing on a planet that's evolving. And revolving at nine hundred miles an hour

Re: What do I need for a Web Server?

Tue Jun 11, 2013 9:17 am

httpd
lend me your arms, fast as thunderbolts, for a pillow on my journey.
If the environment was a bank, would it be too big to fail
so long; and thanks for all the pi

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: What do I need for a Web Server?

Tue Jun 11, 2013 11:03 am

fl0x1 wrote: I want to run my own little web server. I'll buy Raspberry Pi Type B from rs-components.com. What else do I need?
Install Raspbian. See http://www.raspberrypi.org/quick-start-guide for guidance.

Then see http://www.linuxjournal.com/content/tec ... ver-python

Yes, that's probably too simple for your needs as a web developer. But if you start with that and understand what it is doing, you can make an informed decision about what else you need to know and adapt it or move on to something more complex.
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

pi-tek
Posts: 3
Joined: Mon Jun 10, 2013 3:10 pm

Re: What do I need for a Web Server?

Tue Jun 11, 2013 5:16 pm

Heater wrote:
It's not clear to me how a web developer does not know how to install a web server.
Heater, He may use a hosted server or come from apple or windows, a bit harsh really.

fl0x1 Please update this post with your experience as I want to do the same. If your'e going to log in remotely it may be beneficial to look at a stripped down version of the operating system you choose.

Heater
Posts: 14750
Joined: Tue Jul 17, 2012 3:02 pm

Re: What do I need for a Web Server?

Tue Jun 11, 2013 5:52 pm

Sorry yes, that was a bit harsh.
I guess that's why we have the Pi, we have all got a lot to learn.
Memory in C++ is a leaky abstraction .

fl0x1
Posts: 2
Joined: Tue Jun 11, 2013 5:40 am

Re: What do I need for a Web Server?

Tue Jun 11, 2013 8:34 pm

Heater wrote:Install the Raspian operating system on it as in the instructions you will find around here.
Install the apache on the Pi:

$ apt-get install apache2

or perhaps you prefer nginx or some other webserver, installation is probably just as simple.

Create web pages.

It's not clear to me how a web developer does not know how to install a web server.
I come from Linux and I know how to install the Web Server. I just want to know what additional hardware I need for Raspberry Pi to do that (like SD Card etc.).

And thank you very much for your answers!

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: What do I need for a Web Server?

Tue Jun 11, 2013 9:13 pm

fl0x1 wrote: I just want to know what additional hardware I need for Raspberry Pi
http://www.raspberrypi.org/quick-start-guide
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

dgerman
Posts: 12
Joined: Sat May 04, 2013 7:27 pm

Re: What do I need for a Web Server?

Tue Jun 11, 2013 9:51 pm

A useful addition would be how to enable cgi under apache.

I thought I knew how, but at the moment it escapes me.

User avatar
duberry
Posts: 379
Joined: Mon Jan 28, 2013 10:44 pm
Location: standing on a planet that's evolving. And revolving at nine hundred miles an hour

Re: What do I need for a Web Server?

Wed Jun 12, 2013 11:35 am

dgerman wrote:A useful addition would be how to enable cgi under apache.

I thought I knew how, but at the moment it escapes me.
if you forget then rtm! ffs;}
lend me your arms, fast as thunderbolts, for a pillow on my journey.
If the environment was a bank, would it be too big to fail
so long; and thanks for all the pi

dgerman
Posts: 12
Joined: Sat May 04, 2013 7:27 pm

Re: What do I need for a Web Server?

Wed Jun 12, 2013 7:06 pm

duberry wrote:
dgerman wrote:A useful addition would be how to enable cgi under apache.

I thought I knew how, but at the moment it escapes me.
if you forget then rtm! ffs;}
And that would be located at ???

User avatar
duberry
Posts: 379
Joined: Mon Jan 28, 2013 10:44 pm
Location: standing on a planet that's evolving. And revolving at nine hundred miles an hour

Re: What do I need for a Web Server?

Wed Jun 12, 2013 9:00 pm

dgerman wrote:
duberry wrote:
dgerman wrote:A useful addition would be how to enable cgi under apache.

I thought I knew how, but at the moment it escapes me.
if you forget then rtm! ffs;}
And that would be located at ???
:twisted:

http://lmgtfy.com/?q=apache+cgi

seealso
http://www.raspberrypi.org/phpBB3/viewt ... 96#p300611
lend me your arms, fast as thunderbolts, for a pillow on my journey.
If the environment was a bank, would it be too big to fail
so long; and thanks for all the pi

Return to “General discussion”