How To Tweak Linux For File Serving
i have few servers that just serve files (1MB-100MB)
Suse Linux on all
the servers have minimal apps installed and i already got a llarge performance increase by dumping apache
now im look at tweaking at the OS level
any settings in Linux itself to speed up sending files down the pipe?
net.ipv4.tcp... in /etc/sysctl.conf?
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Static File Serving - Performance
I'm planning to setup a server ONLY for hosting of static binary files varying from few KB to few MB in size. I've seen some of the litespeedtech performance benchmarks, which you can find here: [url] From the "small static file" benchmark chart, i can see that IIS6 beats lighttpd in this test. So i'm wondering does the IIS6 really have better performance at file hosting than lighttpd. Actually it does not matter which operating system i will be using at this server, since i will use it only for file serving. With lots of concurrent connections. Possibly thousands of connections. I need some feedbacks on this, so i can decide, IIS or lighttpd. Few more bucks for win2k3 won't be an issue here, if it's performance is better than lighttpd for this kind of use.
View Replies!
View Related
What Type Of Server And Os, Etc For Just File Serving- Small Files Like Under 10kb
I have a website that just serves small files, under 10kb most of them. I just need a server that lets me ftp the file to it, set up subdomains and domains for one website. Don't need to manage mysql or anything. Not even php. Just serve files. A good fast OS? Something like lighttpd? Ioono? I'm currently doing 600gb of bandwidth per month. I'm expecting to do about 1000gb by the end of the year. Would a small server like a pentium 4 be able to handle just serving files?
View Replies!
View Related
Links Files In Linux (file.txt For File.php)
Today I found some cstomer on the servers make a link for named it file.txt and link it to other customer php file. so that customer have the ability to show the other custoer file content when visiting the url because it is a text wile originally it is a php file. the php file was a config file, so now he know the database password , and because he is in the same server he can use that databse. the question , how to avoide this prolem in the future? notes , the SuExec is rnning and the open_basedir protection is enabled, but the problem still exists.
View Replies!
View Related
Tweak Mod_userdir Security
mod_userdir Protection: Apache's mod_userdir allows users to view their sites by entering a tilde(~) and their username as the uri on a specific host. For example http://test.cpanel.net/~fred/ will bring up the user fred's domain. The disadvantage of this feature is that any bandwidth usage used by this site will be put on the domain it is accessed under (in this case test.cpanel.net). mod_userdir protection prevents this from happening. You may however want to disable it on specific virtual hosts (generally shared ssl hosts.) We have enabled mod_userdir Protection for all our users but some our clients want to view their website via For example [url] in this section there is mentioned that You may however want to disable it on specific virtual hosts (generally shared ssl hosts.) but when i select a domain which i want to disable mod_userdir Protection & then ticked marked on Exclude Protection check box then i have restarted apache web server but still i am unable to view selected domain via IP based
View Replies!
View Related
How To Rename A File In Linux
I have a list of files in a folder like this: /home/files/[url] And I need to rename them to this format: awstats092008.[url] I've played around with sed, rename, and a bunch of others.. but I just can't figure this out. server is CentOS 5.2
View Replies!
View Related
Best Configuration For My.cnf To Tweak MySQL
I just got a new server that has 2 quad core intel processors and 4GB of RAM. I am running about 1000 queries per second and have been having some issues where users are being denied a connection to the database every few minutes. I am not sure how to tweak the my.cnf file correctly to solve this issue. The contest of my.cnf are below: [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock skip-locking skip-innodb query_cache_limit=1M query_cache_size=32M query_cache_type=1 max_user_connections=2000 max_connections=2000 interactive_timeout=100 wait_timeout=100 connect_timeout=100 thread_cache_size=128 key_buffer=16M join_buffer=1M max_allowed_packet=16M table_cache=1024 record_buffer=1M sort_buffer_size=2M read_buffer_size=2M max_connect_errors=10 thread_concurrency=8 myisam_sort_buffer_size=64M server-id=1 #[mysql.server] #user=mysql #basedir=/var/lib [safe_mysqld] err-log=/var/log/mysqld.log pid-file=/var/lib/mysql/mysql.pid open_files_limit=8192
View Replies!
View Related
Cpanel PHP Open_basedir Tweak
if i enable PHP open_basedir Tweak in cpanel, it disables all sites and none load, do note that the other tweak called Apache mod_userdir Tweak is also enabled. Now i am wondering is if they both clash with each other to compete for the security ? Anyone else noticed this also? Info : WHM 11.15.0 cPanel 11.18.6-S24255 CENTOS Enterprise 5 i686 on standard - WHM X v3.1.0
View Replies!
View Related
IIS Just Stopped Serving..
I have been hosting a site for the past number of weeks on IIS on Server 2003..I have a no-ip a/c which is working fine along with port forwarding on my router.. The other day I restarted my server for something but now I cant seem to access my site from across the internet and according down for everyone or just me (website) it is down. I can, however, access the site using domain name from within my lan. I'm not too hot on server 2003 or IIS. What can I do to debug/diagnose the problem?
View Replies!
View Related
Servint - Serving Porn On My Sites
What is up with servint? I have domains and a vps through them. The vps is now serving up porn on all the sites. When I call servint they say I don't own the name but a whois shows i DO INDEED own the name for another year and it is registered to me and they are the registrar!!! The portal user/pass suddenly stopped working so I can't even put in a support ticket All I get is a message machine ... does anyone know if servint staff ever come on this board. It has probably been hacked but it is pretty disturbing when they say I don't own the domain but it is CLEAR THAT I do own it.
View Replies!
View Related
Speed Up Serving Large Files
I'm working on a web site which will basically be a flash games portal. I have a dedicated server running Apache 2 on a 100mbit dedicated line but my download speed for large files (flash files of over 5mbs) is really slow. I am thinking this is because of Apache but I don't know much about this. I've read that I should change for a lighter http server for serving static files. The way my server is set up is I have 2 virtual machines running, one doing the PHP processing and the other serving static files, both running Apache, so if I have to change HTTP server for the static files it would be very easy. Although I am not sure if this is necessary or if I can tune Apache to push files faster than this.
View Replies!
View Related
Serving Data From 2 Hard Disks
I have a server with 2 hard drives, say drive A and drive B. Right now all my files, database and data is on drive A, and drive B is empty. Since I have another drive available, I want to split the load between the two drives. I'm ok with having the web pages and the database on one drive. I mostly want to just have the data (I have about 500GB of data) split between the two drives. Note that I want to avoid duplicating the data. I want to have each file on either drive A XOR drive B. Should I map a separate subdomain to drive B and then use that subdomain to serve the half of the data thats there? Is there something I can do with hard/soft links on the server so that even though the data is on 2 drives, users still use the same url to access data on either drive? Any other options?
View Replies!
View Related
Media Serving And Cache Daemon
what I want to do, have a "node" somewhere serve media (static) files from a central server, but cache the static files the first time they are hit, so subsequent requests to the "node" don't require getting the file from the central server. Is there readily available solution to this?
View Replies!
View Related
10 Second Lag Serving Static HTML
this isn't my server, so I don't have a lot of information about it, other than it's a Linux/Apache Dedicated server at EV1. (cPanel/WHM) There are other sites on the server, and they are running fine. One site has a terrible lag. It takes about 10 seconds to serve up a static HTML file.. Now, it's not like the server is slow. It's like this: You request a small HTML file. The site sits and thinks about it for about 10 seconds, and then after that everything processes quickly. The forum on the site is the same way. Everything you click on works fine and loads quickly after that initial delay passes. Is there a common configuration problem that might be causing this? If you want to see this phenomenon, here are a few test files: [url] [url] [url] [url]
View Replies!
View Related
Apache Serving Blank Pages
I am having this issue with a new box where Apache at random serves blank pages and won't serve anything but until it's restarted. I see no errors in /var/log/messages either to show why this is happening. It's not all pages either just several various ones. I know it's not a programming issue either because the only thing the server is running is one instance of vBulletin. I look at top during this and CPU and RAM usage are very low. The only fix to get Apache to serve the pages is to restart it. Anyone have any clues on what it could be? I set my php.ini memory limit to a gig (I have 16 gigs in the sever)
View Replies!
View Related
Serving & Playing Breeze FIles
Having trouble hosting Macromedia Breeze files on a brand new dedicated 2003 NT box. Anything I need to adjust? When someone visits the URL, it loads the presentation main screen, but it's supposed to auto-play several movies and it won't. It works fine locally and on 2 unix servers I tested it on, but not the new NT box. The weird thing is, if I remote desktop to that server, I can't play that presentation locally or server thru the linux boxes. I figured it was an extensions thing, but like I said the intro still does appear, and if I go to Adobe.com and play a new "Adobe Presenter" presentation - it works fine.
View Replies!
View Related
Preferred Operating System For Web Serving
I have been online since 95 and I've got a lot of information I could help others with regarding web development and interface design. One thing I'm terrible at is System Administration, but I'm getting better and my first step is to pick a reliable operating system for both the webservers and the database servers. Would anyone be willing to answer the following questions or point me to a thread that already discusses these? A little background, our site has 200k members, 30k active and is growing by about 5k a week. We still run MySQL 4.0.27 on the DB servers and they are running FC2. The webservers are Apache 1.3.37 and PHP 4.4.2 running FC2 and FC4 as well. My questions 1. What OS would you prefer to upgrade to for the web servers? and a "few" reasons why? 2. What OS would you prefer to upgrade to for the database servers? and a "few" reasons why?
View Replies!
View Related
Problem Serving Gzipped Static Content
I'm trying to serve as much gzipped content as possible on my web site. I will gzip dynamic pages on the fly using PHP, and I plan to gzip static content just one time, not to use much CPU, and serve css.gz, .js.gz files, etc... So, I uploaded a test.html file and a .css file that changes the color of the text to red. I gzipped the css file: %gzip style.css I also uploaded an .htaccess file with this content: RewriteEngine on RewriteBase /gzip/ RewriteCond %{HTTP_ACCEPT_ENCODING} gzip RewriteRule ^(([^.]+.)+)css$ /$1css.gz For now I'm not going to include any gunzipped style sheet, just to make sure my browser picks the gzipped style sheet. I also uploaded a phpinfo.php file to make sure I have mod_gzip. So, here's the list of files I have: - .htaccess - style.css.gz - test.html - phpinfo.php But when I open the test.html file: [url] the style sheet isn't applied. If I upload a regular style.css file, it works fine. It seems the Rewrite rules aren't taken into account. Do you know how I could server the gzipped style sheet instead?
View Replies!
View Related
An Otherwise Great Performing Server Now Delays Prior To Serving PHP/mysql
One of my dedicateds (Fedora 7 / apache 1.39 / php5 mysql5) has been running flawlessly but now has a strange ~4-5 second delay when serving up PHP/mysql pages such as Wordpress. I say delay because it appears to think about it for several seconds, then when the page finally begins the refresh process, everything serves up lightning fast. Latency is low, direct file downloads are faster than ever. ModSecurity is running, and accounts for about 1 second of that delay (tested with it on and off), but the other 3-4 seconds is a mystery.
View Replies!
View Related
Ffmpeg :: Cannot Open Shared Object File: No Such File Or Directory In Unknown On Line 0
Rapidly growing error logs showing the same message $ug-non-zts-20020429/ffmpeg.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20020429//usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0 root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429 ./ ../ eaccelerator.so* root@server [~]# ls /usr/local/lib/php/extensions/no-debug-non-zts-20020429 ./ ../ eaccelerator.so* Using cpanel 11 / centos 4
View Replies!
View Related
COM On Linux
Most if not all the applications that we produce use PHP/MySQL and we're currently on Windows/IIS environment. We're looking to change our hosting company and upgrade our servers and I'm eager to migrate over Linux/Apache. The only problem is, some of our applications use the COM object to integrate with PowerPoint, can this still be done on Linux. Also is anybody aware of any other potential floors when migrating over?
View Replies!
View Related
Linux
I have Debian Etch 4.0 and am intending to run a LAMP (Linux, Apache, MySQL and PHP) installation on Debian. I have setup AMP on windows boxes to run successfully. I have very good microsoft O/S skills but have vague skills around Linux which I need to learn quickly for my job. First of all I need to setup a LAMP installation so does anyone have a recommendation of a simple and easy LAMP installation step-by-step solution for me?
View Replies!
View Related
[EU] Looking, Dedicated Linux
I am currently with a company operating out of the Netherlands, however for what I am spending I do not feel I am receiving timely responses to support tickets (I'm talking days with no reply, at all). So, I am looking to switch. My current budget is around $300 USD/mo, however, I can spend more if the deal is right. I need a host that is not easily scared off by American DMCA take-down notices. Please understand, nothing I do is illegal. In fact, to be blunt, I write software for online games and charge a fee to users who wish to access my software. I was using dedicated hosts within the United States to satisfy my customer base, however, one particular company, Nexon America (just one of the companies whose online games I develop software for) more or less got me dropped by every host I went to. I host absolutely no copyrighted files of any kind, images, textual, video, or binary.
View Replies!
View Related
Linux Virus
I'd like to know that is Linux virus free server or not? Is there any possibility to run a virus on linux server while uploading files (virus affected) from local system to server end by ftp client?
View Replies!
View Related
What To Do With A Linux COLOCATION
I currently colocated at Chicago FDC Servers, OUTSTANDING BY THE WAY! Cheap too! But that is not my area of concern, since I already have a colocation, I was wondering if people could give me ideas what to do with it. I colocated because I found them, they offered me an affordable colocation. I do not wish to host STEAM GAME SERVERs like counter strike. If I had a ventrilo license, I could host a huge ventrilo, but I do not. Teamspeak is out of the question.
View Replies!
View Related
Windows Vs Linux
I have a website related to my business, i want to host it on the internet. But i do not know which web hosting to follow. I want great security to my data. Please tell me Which web hosting is best whether Windows web hosting or Linux web hosting?
View Replies!
View Related
Partitions On Linux
I have a linux server with cPanel and 500GB Disk Space. After investigating I think I would have the following partitions. / /boot /home /dev/shm /tmp /usr /var how much to allow to each partition. I will be using the server for hosting accounts, shared and resellers. Also what would you recommend the swap file size be?
View Replies!
View Related
Which Linux For Server
I have purchased a new server with a company that has very little support (but they are great for reasons that matters). I need help from experts here to answer the following question Quote: We do not offer Plesk or cPanel. Which Linux do you want installed on the server ? I plan to install Joomla and AmemberPro software on this server Joomla Requirements: "Basically any Linux distribution will be fine, but for Security and Stability Debian, for useability and ease of maintenance Fedora/CentOS" AmemberPro Requirements * PHP version 4.1.0 or newer; * MySQL version 3.23 or newer; * Apache WebServer (it usually only installed on Unix hostings, and almost never on Windows); * Ability to run one ionCube Loader or Zend Optimizer.
View Replies!
View Related
Does Anyone Use SUSE Linux
I have been trying to compare Red Hat to SUSE Linux, and can't really come to a definitive solution. I can't seem to find anyone that uses SUSE (Well, hardly anyway), but I found out that they have over double to market share that Red Hat has so somebody is definitely using them. I also noticed that SUSE is cheaper too. Based on your experiences, what are some of the pros / cons both ways? Who offers better product training (I wan't to get certified directly)? Who has better product support? Is AppArmor better than SELinux? By the way, I am only looking for commercial linux distributions. Specifically companies that offer product training.
View Replies!
View Related
Linux - Version?
I have an old laptop, it's got a 1000mhz processor and 128mb ram.. I want to install linux on it, but a) haven't got that much exp with Linux and b) don't know much about the OS in general.. I just am getting fed up of Windows!! My knowledge stretches to using X-Windows about 8 years ago.. I have looked at Ubuntu, as the desktop looks cool and a friend said it's quite easy to get ya head around, but the site says you need atleast 256mb ram..
View Replies!
View Related
Linux VPS
I am looking at linux vps due to money constraints. Ive had lots of experience with windows vps... its really simple, just use remote desktop . Is there something similar for linux vps? Giving me a desktop like environment to mess around in? How does that work? Is there a tutorial on how to use one, transfer files, etc. im talking about using windows XP to community to a linux vps.
View Replies!
View Related
On Linux Server
So far I was developing site in HTML only. I used to host them on windows based server. I use to place site in web folder using filezilla program Now i have taken space on Linux server. I would like to know how host files on that as I have developed site in php with mysql as database with local apache server. It works ok offline. I would like to know 1. what folders I get 2. How to upload 3. How to transfer database in mysql
View Replies!
View Related
What's The Best Linux Firewall
I have 3 web servers that I need behind a firewall. Right now they're directly connected to the internet, and have little protection. I'd like to build my own Linux router and have done some research but not sure which is the best solution. The main feature I need is the ability to forward ports based on the destination host header. Most firewall distros only allow you to forward port 80 to one IP address, but I need the router to send to different internal IPs for different sites. I've looked at IPCOP and Smoothwall express and a few others, but the "free" ones don't seem to do this.
View Replies!
View Related
How To Pick A Linux OS
I'm going to be ordering a new dedicated Linux server w/ cPanel/WHM and was wondering how one goes about determining which OS is best suited for their needs? The options I am given are below: OS: CentOS Enterprise Linux, Version 4 OS: CentOS Enterprise Linux - x64, Version 4 OS: Centos Enterprise Linux, Version 5 OS: Centos Enterprise Linux - x86_64, Version 5 OS: Red Hat Enterprise Linux, Version 4 OS: Redhat Enterprise Linux - x64, Version 4 OS: Red Hat Enterprise Linux, Version 5 OS: Red Hat Enterprise Linux - x86_64, Version 5
View Replies!
View Related
Joomla With Linux
I have installed joomla and now i m installing some extension but when i install extension i m getting error ------------> JFolder::create: Path not in open_basedir paths Unable to create destination
View Replies!
View Related
Windows Of Linux
I am just a little curious about what most people on WHT use for their shared hosting, Windows based servers or Linux? So I thought I would post a poll and hear feedback from people about both, just to appease my curiosity
View Replies!
View Related
Linux Flavours
I don't want to start a flame war here or anything but... I use Debian and have done for about 5 years for web servers, mostly because I love the idea of "apt-get" My question is, should I really be looking at other flavours? Who in web server setup not desktop is leading the way in linux flavours?
View Replies!
View Related
Linux Or Windows
I wanted to ask you guys why some hosting companies ask you if you want either linux or windows when you are buying a hosting plan?....does it have anything do to with the way the control panel works or something like that?. I have created a few websites on a host that has linux on its general server info as its operating system. But I have winxp not linux installed on my pc. So my question is what difference it makes if the server is using linux or windows and whats the best choice when you buy a hosting plan.
View Replies!
View Related
Linux Routing
I have the following problem with a CentOS server: The main IP of the server is yyy.zzz.www.qqq We've just purchased 3 additional IPs: aaa.bbb.ccc.100, aaa.bbb.ccc.101, aaa.bbb.ccc.102. First, all outgoing traffic used aaa.bbb.ccc.100, but after deleting the gateways from the additional IPs it seemed to work fine, until we found out the following: Now all traffic to aaa.bbb.ccc.XXX uses aaa.bbb.ccc.100 as outgoing IP. What command would change this to use our main IP?
View Replies!
View Related
|