News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Web server?

Started by alphapenguin, January 02, 2008, 04:31:30 PM

Previous topic - Next topic

alphapenguin

Can we run a webserver, or host a homepage from the Core as well as be running linux MCE?

niz23

alphapenguin,

Quote from: alphapenguin on January 02, 2008, 04:31:30 PM
Can we run a webserver, or host a homepage from the Core as well as be running linux MCE?


You want to run another standalone webserver process?
As long as you don not use tcp port 80 or another already occupied port it should be possible.

However I see no reason why you should run another independent webserver process.
Just add your http stuff under /var/www/.

Modify httpd init files if you need special configuration such as virtual host etc.

/niz23


totallymaxed

Quote from: alphapenguin on January 02, 2008, 04:31:30 PM
Can we run a webserver, or host a homepage from the Core as well as be running linux MCE?

Yes you can add your own php/html pages and open those up for external access... beware though that you then open your server for potential external attack. Someone else here may be able to give you more detail on security measures you could take.
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

alphapenguin

Thanks niz and totally,
    That is what I was looking for. Mainly I just wanted to be able to serve photos to family members, so I would only be giving them the URL. I will update if I have more issues, and again, thanks for the super fast responses.

Alex/Alphapenguin

totallymaxed

Quote from: alphapenguin on January 02, 2008, 05:16:00 PM
Thanks niz and totally,
    That is what I was looking for. Mainly I just wanted to be able to serve photos to family members, so I would only be giving them the URL. I will update if I have more issues, and again, thanks for the super fast responses.

Alex/Alphapenguin

Just use Web Admin -> Advanced -> Network -> Firewall Rules and put 80 in the left hand filed under 'Source Port' and click 'Add'

Then your all set !
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

alphapenguin

quick question, is my only way of accessing the /var/www directory is to go to the core physically? I cant seem to find it via the network (i guess I will go to the basement to take a looky)
thanks and have a great new year!

totallymaxed

Quote from: alphapenguin on January 02, 2008, 06:02:25 PM
quick question, is my only way of accessing the /var/www directory is to go to the core physically? I cant seem to find it via the network (i guess I will go to the basement to take a looky)
thanks and have a great new year!

You could ssh in or ftp in and upload files to /var/www/ but /var/www is not part of the share as standard as this would cause some dangerous security implications.
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

alphapenguin

ok, i am sure I seem inept here, but I am trying to login via filezilla and gFTP. I put in the DCERouter/Core IP address (the one I would type in to get access to the webadmin).

With gFPT for the Host, I put in the IP. then the user I put in what I would normally use to login to the webadmin (login/pswd), and have it set on SSH2. It then tells me my Password is incorrect.

Am I going about this the right way?  Thanks,
Alex

totallymaxed

Quote from: alphapenguin on January 02, 2008, 09:32:53 PM
ok, i am sure I seem inept here, but I am trying to login via filezilla and gFTP. I put in the DCERouter/Core IP address (the one I would type in to get access to the webadmin).

With gFPT for the Host, I put in the IP. then the user I put in what I would normally use to login to the webadmin (login/pswd), and have it set on SSH2. It then tells me my Password is incorrect.

Am I going about this the right way?  Thanks,
Alex

You should use your installation username/password not the Web Admin username/password. If you installed from the DVD then your username/password will be linuxmce/linuxmce if you installed from the CD's then it is whatever you created when you installed.
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

alphapenguin

#9
Again, I thank you and thank you again. It works, and I am on my way. I think I will add this tidbit into the Wiki, or is this something that would be too common knowledge?

last question, i figured I'd ask here first, while I peruse the web for an answer-
    - permissions: obviously the directory permissions do not allow me to change it. Is the easiest way to do this to go to the core and change it while in the Kubuntu desktop?



Quote from: totallymaxed on January 02, 2008, 09:40:15 PM
Quote from: alphapenguin on January 02, 2008, 09:32:53 PM
ok, i am sure I seem inept here, but I am trying to login via filezilla and gFTP. I put in the DCERouter/Core IP address (the one I would type in to get access to the webadmin).

With gFPT for the Host, I put in the IP. then the user I put in what I would normally use to login to the webadmin (login/pswd), and have it set on SSH2. It then tells me my Password is incorrect.

Am I going about this the right way?  Thanks,
Alex

You should use your installation username/password not the Web Admin username/password. If you installed from the DVD then your username/password will be linuxmce/linuxmce if you installed from the CD's then it is whatever you created when you installed.