femindharamshi10
Posts: 102
Joined: Thu Jan 07, 2016 1:28 pm

Hosting a website

Tue Mar 22, 2016 9:14 am

i wanna host a website on my raspberry pi, but what i want to do is,
i wanna setup my tp link wlan card such that it creates a wifi hotspot and whoever connects to that wifi, can access the website hosted on the rpi on its address. How do i do it ? (basically i dont want to connect the rpi to router using ethernet or wifi, rather i want devices to be connected to rpi)

zealousd
Posts: 93
Joined: Sun Mar 20, 2016 10:57 am

Re: Hosting a website

Tue Mar 22, 2016 9:27 am

Well making the web server is easy just install apache2 php mysql and for access install ssh and ftp and then i can assume you want to create a portal for the wifi hotspot there is software out there that can do this but i would hire someone that knows what they are doing as if you don't secure it then it could cause problems for people who want to steal data.

depending how many people will use your portal you may want to use something bigger then a pi, im not sure how many users the PI resources can support. I have mine setup perfectly but i use mine for my own personal use and mostly to store code while developing at the office then being able to give others access to it without screwing around.

And attach a fan to it you want to keep that sucker kool if your going to use it for commercial purposes and have a spare one just in case, PI is not a overly commercial stable product more of a awesome project tool.
Raspberry Pi 3
Ubuntu Mate
Web Server

femindharamshi10
Posts: 102
Joined: Thu Jan 07, 2016 1:28 pm

Re: Hosting a website

Tue Mar 22, 2016 10:24 am

zealousd wrote:Well making the web server is easy just install apache2 php mysql and for access install ssh and ftp and then i can assume you want to create a portal for the wifi hotspot there is software out there that can do this but i would hire someone that knows what they are doing as if you don't secure it then it could cause problems for people who want to steal data.

depending how many people will use your portal you may want to use something bigger then a pi, im not sure how many users the PI resources can support. I have mine setup perfectly but i use mine for my own personal use and mostly to store code while developing at the office then being able to give others access to it without screwing around.

And attach a fan to it you want to keep that sucker kool if your going to use it for commercial purposes and have a spare one just in case, PI is not a overly commercial stable product more of a awesome project tool.
That would be just for me!
apache2 part i know.
lets say after installing apache, rpi adress is 192.168.0.120
then opening 192.168.0.120 will open the index.html on the rpi. DONE WITH THAT PART but in this the rpi is connected to a router and the device opening the page is also connected to the same router! Now lets remove the router. Rpi should have a wifi network to which other devices can connect and access this webpage !

(the pi should not have a internet connection)

will this guide work - https://learn.adafruit.com/setting-up-a ... l-software (and after the installation if i disconnect the ethernet cable and install apache, so will i be able to access the apache server at 192.168.42.1?)

zealousd
Posts: 93
Joined: Sun Mar 20, 2016 10:57 am

Re: Hosting a website

Tue Mar 22, 2016 11:42 am

the DHCP of the router will organize the device management on the network but without a portal you will need to tell the users to manually use this IP address to access the web server and if that is fine your good to go. But if you want a auto view this IP once the device is connected then that is a different story.

So i walk into your house and connect with my phone and you tell me go to 192.168.0.100 and i can see the web site your working on

but for me to walk in connect only to the wifi and after opening a browser i am redirected to 192.168.0.1 will need further configuration.
Raspberry Pi 3
Ubuntu Mate
Web Server

Pithagoros
Posts: 578
Joined: Wed Nov 12, 2014 8:16 pm

Re: Hosting a website

Tue Mar 22, 2016 12:03 pm

What you are seeking to do is set up the Pi itself as a Wireless Access Point.

Plenty of information on how to do that around the web.

Here's a start: http://www.pi-point.co.uk/

femindharamshi10
Posts: 102
Joined: Thu Jan 07, 2016 1:28 pm

Re: Hosting a website

Tue Mar 22, 2016 12:28 pm

Pithagoros wrote:What you are seeking to do is set up the Pi itself as a Wireless Access Point.

Plenty of information on how to do that around the web.

Here's a start: http://www.pi-point.co.uk/
i am new to this thing and curious about it.
but before trying it i just wanna know what i want to do is possible or not !
after making a wireless access point of the Rpi
if i connect my phone to it and open its local ip address in a browser on the phone,
will it open the index page of the apache2 server ?

Pithagoros
Posts: 578
Joined: Wed Nov 12, 2014 8:16 pm

Re: Hosting a website

Tue Mar 22, 2016 1:03 pm

femindharamshi10 wrote:
Pithagoros wrote:What you are seeking to do is set up the Pi itself as a Wireless Access Point.

Plenty of information on how to do that around the web.

Here's a start: http://www.pi-point.co.uk/
i am new to this thing and curious about it.
but before trying it i just wanna know what i want to do is possible or not !
after making a wireless access point of the Rpi
if i connect my phone to it and open its local ip address in a browser on the phone,
will it open the index page of the apache2 server ?
This can be configured to work as you describe.

Have you noticed that when you connect to the admin page on your router on 192.168.0.1 or whatever IP address, it is served up as a web page in your browser?

femindharamshi10
Posts: 102
Joined: Thu Jan 07, 2016 1:28 pm

Re: Hosting a website

Tue Mar 22, 2016 1:45 pm

Pithagoros wrote:
femindharamshi10 wrote:
Pithagoros wrote:What you are seeking to do is set up the Pi itself as a Wireless Access Point.

Plenty of information on how to do that around the web.

Here's a start: http://www.pi-point.co.uk/
i am new to this thing and curious about it.
but before trying it i just wanna know what i want to do is possible or not !
after making a wireless access point of the Rpi
if i connect my phone to it and open its local ip address in a browser on the phone,
will it open the index page of the apache2 server ?
This can be configured to work as you describe.

Have you noticed that when you connect to the admin page on your router on 192.168.0.1 or whatever IP address, it is served up as a web page in your browser?
yeahh :D :D :D tysmmmmm
so all i need to do is, install apache2 and setup a access point ? (can you explain the steps please ?)

femindharamshi10
Posts: 102
Joined: Thu Jan 07, 2016 1:28 pm

Re: Hosting a website

Wed Mar 23, 2016 4:49 am

Pithagoros wrote:
femindharamshi10 wrote:
Pithagoros wrote:What you are seeking to do is set up the Pi itself as a Wireless Access Point.

Plenty of information on how to do that around the web.

Here's a start: http://www.pi-point.co.uk/
i am new to this thing and curious about it.
but before trying it i just wanna know what i want to do is possible or not !
after making a wireless access point of the Rpi
if i connect my phone to it and open its local ip address in a browser on the phone,
will it open the index page of the apache2 server ?
This can be configured to work as you describe.

Have you noticed that when you connect to the admin page on your router on 192.168.0.1 or whatever IP address, it is served up as a web page in your browser?
can someone please check this -> viewtopic.php?p=935400#p935400

Return to “General discussion”