Having An Images HTTPD Server Only: Lighthttpd
May 5, 2007
For my website I have a server which houses all of my gallery IMAGES of my user profiles. There are over 100,000 images on the server and it's only purpose is to provide those images with http.
However, the http server also has PHP installed, and it's only purpose is for uploading new images. Therefore users eventually get redirected to the images server where they can upload the image.
This all works, but in the future I want to remove the PHP side to the server. I also want to change the whole server program from Apache to Lighthttpd. This is because, lighthttp is a very low overhead web server program, but also provides very little features.
So I was wondering, if I was to do so, and since PHP is not installed, then I would have to make the upload pages on the main http server (which has PHP and Apache). Then I would have to make the main server send the uploaded image to the the lighthttp server via some sort of the scp system call, via PHP. I know that this IS possible, but when it comes down to security holes and so on, would this method really be worth it?
Generally I want to have the lighthttp setup only because it eliminates having to have any dynamic content. Obviously this can also be done with apache (removing dyanmic content), but lighthttp may be more efficient for static content.
View 3 Replies
ADVERTISEMENT
Feb 6, 2007
i am using seperate server for sql .But my httpd server failed many time when i checked maximum number of httpd connection then my sql server using too many connection what is the reason of this problem . Is my sql server using as a slave in a ddos attack or sql server need http connection?
View 2 Replies
View Related
Nov 11, 2008
I am hosting my site on cpanel server, but there is a little problem, my images in the application are not getting displayed, whereas they are displaying alright on my local server, i've tried different methods to ressolve this issue, but, i wonder is it something to do with the server.
View 6 Replies
View Related
Apr 7, 2007
can anyone instruct me how to Re-compile php for lighthttpd, those people who had expierence with Lighthttpd?
View 2 Replies
View Related
May 28, 2009
how to restart lighthttpd?
I was asked to restart lighthttpd at my friend host, he has 6 sites running, and of the site is down, host has asked him to restart the server, as he is away, he wanted me to restart, but I have no clue how to restart lighthttpd,
It will be really helpful if u can guide me for : if possible for the domain alone, else for the entire server
current options available :
lxadmin - hypervm
ssh connection
let me know the steps and code if any.
View 4 Replies
View Related
Jun 21, 2009
through lxadmin/kloxo how to disable apache and enable lighthttpd ?
if any code or any method plz explain in detail, never done, now need to do it on my friend vps as he is having problem with apache loads
View 9 Replies
View Related
Apr 15, 2009
I want to know lighthttpd works on what different kind of control panels
I am aware it works on lxAdmin, I want to maximize the options for more control panels which would be flawless
View 1 Replies
View Related
Oct 25, 2008
I don't have location/ in conf file where should this be placed under or above what content should this be added?
View 4 Replies
View Related
Nov 9, 2007
im thinking about getting a VPS with Cpanel or Plesk, but i would like to use lighthttpd instead of apache.
View 12 Replies
View Related
Jun 9, 2009
its been long time since I have set one and its been really bugging with the feather theme interface, which I haven't used before
now, here is the pt.
I have 3 ips , I want the main ip to be unique
i.e assuming .2, .3 and .4 are the the ips we have ben provided with, where .2 is the main ip of the server (lxadmin)
now, in the dns template, I have 6 options where ip has to be assigned, as -
base, cp, mail, ns, ns1, ns2
I have set the base,cp, mail, ips to .3
I don't have a clue on what to set for the ns, ns1, ns2
I want .3 to be shown as the pinged ip when site is pinged.
We have set .3 and .4 as the nameserver ips in the registrar, so do I need to provide .3 as the ns1 ip and .4 as the ns2 ips or both the ips have to be .3
and what should be the ns ip?
View 1 Replies
View Related
Sep 23, 2008
I had a .htaccess working in my previouse hosting. It is not working with the new hosting which has lighthttpd.
Can anyone help me to change my below htaccess modrewrite code to lighthttpd url rewrite? Its urgent please.
RewriteEngine On ...
View 4 Replies
View Related
Oct 30, 2008
I have been given a code by the coder to add in the conf file under the location / in conf file but there is no location code under conf file. I am not sure where to add this location / in the conf file ? need help on where to add this code in lighthttpd file
All I wanted to do is just an add an rewrite rule for one of the file and the coder has mentioned to add it below location / in conf file
View 6 Replies
View Related
May 27, 2008
I am using Apache now on my VPSes but i want to try it again with lighthttpd as it will use less resources, but the only problem is that lighthttpd is taking up lots of memory and i've read about a memory leak.
View 14 Replies
View Related
May 1, 2007
I am installing phplinkdirectory in lighthttpd, keep having problems with Mod Rewrite, everytime, I enable Mod Rewrite, 404 errors come out. What should I do?
View 7 Replies
View Related
Jul 9, 2009
how to de-activate lighthttpd and activate apache?
my friend is having some problem in his vps so he wants to get back into apache interface...
he is using kloxo/hypervm interface
View 4 Replies
View Related
May 22, 2008
Installed lighttpd but unable to run it properly.
[root@ssserver1 lighttpd]# /etc/init.d/lighttpd restart
Stopping lighttpd: [FAILED]
Starting lighttpd: [ OK ]
[root@ssserver1 lighttpd]# netstat -anp | grep light
[root@ssserver1 lighttpd]#
Checked logs.
2008-05-21 23:12:43: (mod_fastcgi.c.904) bind failed for: unix:/var/run/lighttpd/php-fastcgi.socket-0 No such file or directory
2008-05-21 23:12:43: (mod_fastcgi.c.1340) [ERROR]: spawning fcgi failed.
2008-05-21 23:12:43: (server.c.908) Configuration of plugins failed. Going down.
View 1 Replies
View Related
Nov 4, 2008
How to have multiple domains with 1 site on lighthttpd
Its simple 2 domains and 1 forum. The links should work as 2 individual sites.
[url]
The main site would be site where the site2 will be the additional site shadowing site
I need the code for lighthttpd
View 1 Replies
View Related
Jan 15, 2007
to install LightHTTPD but I want to know how can I protect folders like using on apache i can put a .htaccess and it prompts me to enter pass etc...
How do I do that in lightHTTPd?
How do I disallow certian file extensions from public eyes like on my current server I disabled viewing of .datab files and when someone types in the location of mydb.datab they get a forbidden message.
how do i do that in lighthttpd?
View 2 Replies
View Related
Jul 7, 2009
trouble with users mis-using hot-linking feature, so he wants some restrictions to b set via htaccess
He has given me a code which is used for htaccess in apache, but he wants this to work in lighthttpd, I am not sure if this would work in lighthttpd htaccess,
this was the code given to me to b worked on:
Code:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
#allow hotlinking for thumbnails
RewriteCond %{REQUEST_URI} !_thumb
#allowed website to hotlink (don't forget to add your own site !!)
RewriteCond %{HTTP_REFERER} !^[url]
#display no-hotlink.jpg instead of the requested image
RewriteRule .(jpg|jpeg|gif|png|bmp|ico)$ [url]
can any one help me for getting this code re-written for lighthttpd version htaccess file and where to enter this code -- using hypervm/kloxo on his vps
View 5 Replies
View Related
Jun 5, 2007
How do I go about converting the follow .htaccess file
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} /blogs/(clientscript|images)/
RewriteRule ^(.*)$ $1 [L]
RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/comment-([0-9] ).html blogs/viewblog.php?username=$1&entrytitle=$2&entry=$3&c=$4 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/feed/ blogs/syndication.php?entry=$3 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([-a-z0-9] )-([0-9] )/ blogs/viewblog.php?username=$1&entrytitle=$2&entry=$3 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/category/([-a-z0-9] ).html blogs/viewblog.php?username=$1&categorydata=$2 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([0-9]{4})/([0-9]{1,2})/ blogs/viewblog.php?username=$1&month=$3&year=$2 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2}).html blogs/viewblog.php?username=$1&month=$3&year=$2&day=$4 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/archive.html blogs/viewblog.php?username=$1&displaymode=archive [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/feed/ blogs/syndication.php?username=$1 [QSA,L]
RewriteRule ^blogs/([-a-z0-9] )/ blogs/viewblog.php?username=$1 [QSA,L]
to work with lighthttpds rules?
View 2 Replies
View Related
Apr 19, 2009
My httpd server continuosly failing i have to set or restart it manually how can i set auto incase if its restart failed.
View 11 Replies
View Related
Jun 5, 2009
as default,we may install all the feature on the server,
but i find some shared hosting server provider install web httpd on the front,
and mysql on another one,
could you share your experience about how do you do now?
View 9 Replies
View Related
Dec 15, 2007
24 hours ago something wired happend..
For some reason httpd is causing high serverload.
ATM : 22:44:17 up 22:17, 2 users, load average: 6.23, 6.12, 8.88
U
Will keep gooing up and httpd need to be restartet when serverload comes up to 30.
The traffic on the server is normal, no changes is made on the server.
View 5 Replies
View Related
Mar 13, 2008
my server will revert to its old host name and stop working. Old host name was (in) and the new one is (zonto). Then, the server will eventually crash HTTPD. There is enough ram, there is small cpu usage. HTTPD is restarted and then it says it can't connect to local host blah blah. I checked EVERYWHERE, the new host name is set. Is there a host name issue some where else? I change it via the hostname command and changed all of the files.
View 14 Replies
View Related
Nov 22, 2007
I am not being able to restart the server, or MySQL or httpd via SSH.
PHP Code:
root@server [~]# /etc/init.d/httpd fullstatusLooking up localhostMaking HTTP connection to localhostAlert!: Unable to connect to remote host.lynx: Can't access startfile http://localhost/server-statusroot@server [~]#
PHP Code:
root@server [~]# /etc/init.d/mysql reload/etc/init.d/mysql: line 244: kill: (3375) - No such processtouch: cannot touch `/var/lib/mysql/server.lubnan.us.pid': Read-only file system
View 14 Replies
View Related
Mar 17, 2007
As you can see.. there are LOT of connections, checked the network traffic with the NOC, and there is no attack to this server, also, load average is just fine ( fine to handle thos 24000 connections ) :
Code:
top - 16:22:06 up 1 day, 4:10, 1 user, load average: 2.35, 1.92, 1.80
Tasks: 486 total, 3 running, 483 sleeping, 0 stopped, 0 zombie
Cpu(s): 18.1% us, 15.8% sy, 0.0% ni, 57.8% id, 8.0% wa, 0.3% hi, 0.0% si
Mem: 2074864k total, 2057424k used, 17440k free, 28292k buffers
Swap: 2048276k total, 536k used, 2047740k free, 1254496k cached
Code:
[root@server.com~]netstat -an | grep :80 | awk '{ print $5 }' | awk -F: '{ print $1 }' | sort | uniq -c | sort -n
1 165.98.162.70
1 189.131.41.44
1 189.148.21.71
1 189.162.12.79
1 190.40.197.20
1 190.40.221.8
1 190.42.165.10
1 190.56.52.170
1 190.82.40.239
1 190.83.16.78
1 190.86.112.232
1 196.218.61.109
1 200.0.251.141
1 200.107.182.157
1 200.117.132.42
1 200.127.9.187
1 200.127.93.33
1 200.26.154.213
1 200.45.154.172
1 200.45.95.106
1 200.55.33.114
1 200.64.167.167
1 200.65.120.103
1 200.65.224.31
1 200.65.90.116
1 200.81.215.68
1 200.86.145.51
1 200.91.196.101
1 201.13.148.63
1 201.216.210.81
1 201.217.21.18
1 201.221.165.235
1 201.223.163.188
1 201.223.58.53
1 201.225.168.66
1 201.229.227.19
1 201.232.67.214
1 201.252.177.89
1 201.42.47.152
1 201.66.167.80
1 208.35.120.69
1 213.230.57.171
1 213.99.203.36
1 217.15.46.97
1 41.250.35.182
1 62.57.223.4
1 64.12.116.198
1 66.50.4.169
1 70.157.51.76
1 80.103.194.241
1 80.103.244.9
1 80.35.105.72
1 81.167.76.64
1 81.172.59.38
1 81.184.125.159
1 81.42.136.159
1 83.175.216.139
1 83.34.75.215
1 83.40.177.122
1 83.56.243.100
1 83.61.202.162
1 84.172.114.77
1 84.76.47.159
1 84.78.51.134
1 85.59.105.82
1 85.59.44.144
1 85.84.196.176
1 87.217.248.132
1 87.9.3.227
1 88.13.59.80
1 88.14.151.83
1 88.243.44.243
1 88.6.193.57
1 89.52.119.106
1 91.5.25.69
2 148.240.103.239
2 148.240.106.145
2 189.160.98.131
2 189.164.91.133
2 190.24.64.111
2 190.5.196.42
2 195.159.192.94
2 195.160.204.167
2 200.122.26.161
2 200.255.166.196
2 200.58.31.210
2 200.65.200.61
2 200.81.220.213
2 200.82.241.167
2 201.20.119.160
2 201.228.198.9
2 201.228.81.192
2 201.240.236.4
2 201.243.14.219
2 62.83.224.234
2 69.134.194.23
2 80.58.205.32
2 81.36.149.153
2 82.158.193.220
2 83.29.165.39
2 83.33.149.36
2 84.202.151.213
2 85.201.148.63
2 87.19.141.251
3 189.162.4.190
3 190.40.133.222
3 190.6.165.21
3 190.65.7.162
3 200.116.118.133
3 217.216.179.124
3 62.141.241.95
3 83.147.147.5
3 84.18.27.169
3 84.32.123.132
3 84.43.139.236
3 88.226.253.180
3 88.7.73.248
4 189.149.5.151
4 189.158.190.132
4 190.20.81.151
4 200.124.163.127
4 88.244.203.111
5 201.240.15.181
8 212.163.9.11
38 201.143.175.190
46 190.82.179.24
24537
85 % of this apache requests, are in TIME_WAIT state as:
Code:
tcp 0 0 ::ffff:SERVERIP:80 ::ffff:85.48.70.56:49910 TIME_WAIT
tcp 0 0 ::ffff:SERVERIP:80 ::ffff:81.44.96.178:10681 TIME_WAIT
tcp 0 0 ::ffff:SERVERIP:80 ::ffff:200.106.71.33:15028 TIME_WAIT
tcp 0 0 ::ffff:SERVERIP:80 ::ffff:200.106.71.33:15028 TIME_WAIT
tcp 0 0 ::ffff:SERVERIP:80 ::ffff:66.201.171.211:20470 TIME_WAIT
tcp 0 0 ::ffff:SERVERIP:80 ::ffff:81.37.198.134:29218 TIME_WAIT
tcp 0 0 ::ffff:SERVERIP:80 ::ffff:83.52.36.230:28849 TIME_WAIT
Also, dmesg shows this.
Code:
ip_conntrack: table full, dropping packet.
printk: 643 messages suppressed.
ip_conntrack: table full, dropping packet.
printk: 844 messages suppressed.
ip_conntrack: table full, dropping packet.
printk: 665 messages suppressed.
ip_conntrack: table full, dropping packet.
printk: 755 messages suppressed.
ip_conntrack: table full, dropping packet.
printk: 667 messages suppressed.
ip_conntrack: table full, dropping packet.
printk: 735 messages suppressed.
ip_conntrack: table full, dropping packet.
printk: 664 messages suppressed.
ip_conntrack: table full, dropping packet.
printk: 760 messages suppressed.
ip_conntrack: table full, dropping packet.
printk: 666 messages suppressed.
ip_conntrack: table full, dropping packet.
printk: 606 messages suppressed.
ip_conntrack: table full, dropping packet.
printk: 723 messages suppressed.
ip_conntrack: table full, dropping packet.
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack version 2.1 (8192 buckets, 65536 max) - 340 bytes per conntrack
printk: 257 messages suppressed.
I already tried to ha handle this using: echo "65535" > /proc/sys/net/ipv4/ip_conntrack_max, but the problem stills.
Im using a plain redhat es 4 server, latest kernel-smp, apache 2.x with mod_evasive.
View 6 Replies
View Related
Feb 28, 2008
I have a server that has server load showing at 25-40 (once it was even 53!), running like that for hours. The server has 4 cpus - and yet the sites on the server seem to run fine when I check them. What I'm wondering is, what exactly is load in this context; and how can load run so high like that without the server crashing?
According to top, the load is caused by httpd processes running under user 'nobody', that often take up double digit CPU percentage.
Does Apache always run under 'nobody'?
Is there any way to trace an httpd processes - which account it's for, or which physical script or URL is calling it?
And for top itself, the TIME field on one server of mine is in the format xx:xx (e.g. 3:25), on another it's TIME+ and in the format xx:xx.xx (e.g. 30:02.77). What exactly does this mean? I would asume it's minutes:seconds and minutes:seconds:hundredths, but while watching top it doesn't seem to correlate with that.
View 11 Replies
View Related
Mar 23, 2008
a topic long time ago that my server load is frequently high.
I'm talking about something like this
Server Load 158.86
Memory Used 28.2 %
Swap Used 99.57 %
[url]
The only way to solve this problem is to identify the load earlier and kill all httpd process. What I did was
#killall -9 httpd
#killall -9 httpd
#killall -9 httpd
x 30~40 times until no pid process found & the server load is back to normal.
On previous thread, I tried to update mysql & php and it works,
Right now again I am experiencing high server load again...
I'm very sure it's caused by httpd but I am still unable to find out the real cause of the problem and which account user is the culprit for causing this high load.
Can someone assist me by telling me where/how to begin with?
View 4 Replies
View Related
Feb 20, 2007
My Dedicated server is being slow - hopefully someone can give a helping hand
Processor: AMD Single CPU Dual Core Athlon 4200
Memory: 2048MB RAM
Primary Hard Drive: 160GB
Operating System : CentOS 4.x X86_64 Bit
Control Panel: CPanel
uplink port: 100
Apache version 1.3.37
php 4.4.4
View 9 Replies
View Related