hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Secure lighttpd install
Reply

Forum Jump

Secure lighttpd install

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-29-2007, 02:28 PM
sytker sytker is offline
Aspiring Evangelist
 
Join Date: Mar 2005
Posts: 359

Secure lighttpd install


Hello guys,
Could you give me a hint?

Ive installed lighttpd along with cpanel/apache, but running on port 81.

What I need to do is this:

domain.com - running on apache.
imgs.domain.com:81 - running on lighttpd.

Im setting imgs.domain.com to this path: /home/domain/public_html/imgs/

Ok, no problems.

But I dont want to run lighttpd as root user. I know that is it possible to run as chrooted user, but how can I do that in a simple way?



Sponsored Links
  #2  
Old 03-29-2007, 02:30 PM
layer0 layer0 is offline
Performance Specialist
 
Join Date: Dec 2004
Location: New York, NY
Posts: 10,473
... specify the user and group in the lighttpd config file?

  #3  
Old 03-29-2007, 02:49 PM
sytker sytker is offline
Aspiring Evangelist
 
Join Date: Mar 2005
Posts: 359
Quote:
Originally Posted by layer0
... specify the user and group in the lighttpd config file?
If I create a user/group lighttpd, and specify on the config the webserver still access domain.com files, running as domain.domain?

Sponsored Links
  #4  
Old 03-29-2007, 11:04 PM
david510 david510 is offline
Web Hosting Master
 
Join Date: Oct 2004
Location: Kerala, India
Posts: 4,740
Yes, you can access the webpages with the setting given below in lighty conf file.

server.username = "lighttpd"
server.groupname = "lighttpd"

__________________
David | www.cliffsupport.com
Affordable Server Management Solutions sales AT cliffsupport DOT com
CliffWebManager | Access WHM from iPhone and Android

  #5  
Old 03-30-2007, 08:33 AM
sytker sytker is offline
Aspiring Evangelist
 
Join Date: Mar 2005
Posts: 359
Lighttpd doesnt start anymore with:

server.username = "lighttpd"
server.groupname = "lighttpd"

I couldnt found any error on lighttpd.error.log. Maybe need to fix some permissions?

  #6  
Old 03-30-2007, 08:52 AM
eth00 eth00 is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: NC
Posts: 2,951
Did you physically add the user? Try:

adduser lighttpd


Now start it, if it fails still what are the errors? Note you may have to fix permission problems on the hosted content. If you have all of the content uploaded by one user I would use that user/group in the lighttpd config.

__________________
John W, CISSP
MS Information Security and Assurance
www.yawig.com - Managed VPS and Dedicated Servers with VIP Service
www.eth0.us - Server Admin Info

  #7  
Old 03-31-2007, 08:38 AM
sytker sytker is offline
Aspiring Evangelist
 
Join Date: Mar 2005
Posts: 359
Quote:
Originally Posted by eth00
Did you physically add the user? Try:

adduser lighttpd


Now start it, if it fails still what are the errors? Note you may have to fix permission problems on the hosted content. If you have all of the content uploaded by one user I would use that user/group in the lighttpd config.
Yes, I did that.

2007-03-31 09:36:51: (mod_fastcgi.c.923) bind failed for: unix:/tmp/php-fastcgi.socket-0 Address already in use
2007-03-31 09:36:51: (mod_fastcgi.c.1356) [ERROR]: spawning fcgi failed.
2007-03-31 09:36:51: (server.c.834) Configuration of plugins failed. Going down.

  #8  
Old 03-31-2007, 07:27 PM
RBBOT RBBOT is offline
Web Hosting Evangelist
 
Join Date: Dec 2006
Posts: 477
Looks like it has aborted previously due to other errors and left the php socket file behind. Delete the file it mentions in your /tmp folder and try again. That or your lighttpd config is trying to start more than one fastcgi server using the same socket file - if you are specifying severl fastcgi configurations in the lighttpd config file you need to give each its own socket file path.

  #9  
Old 04-03-2007, 01:39 PM
sytker sytker is offline
Aspiring Evangelist
 
Join Date: Mar 2005
Posts: 359
Thanks, it worked.

Reply

Related posts from TheWhir.com
Title Type Date Posted
Parallels Simplifies WordPress Management and Security with Parallels Plesk 12 Web Hosting News 2014-06-26 16:50:35
Web Hosting Sales and Promos Roundup - November 8, 2013 Web Hosting News 2014-05-23 15:42:41
Malwarebytes Launches Data Scan-and-Backup Service Web Hosting News 2013-05-07 14:51:03
Secure-24 Names Vice President of Client Service Delivery Web Hosting News 2013-03-07 14:16:16
Mega Firefox Extension Speeds Up Downloads, Removes File Size Limits Web Hosting News 2014-05-01 08:22:29


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?