Is Ufs Slower Then Ext2 For Lots Of Files In A Single Directory
Aug 23, 2007
We used Red Hat with ext2 as our file system on an old server with 100k+ of image files in a single directory. This seemed to preform ok until we switched to FreeBSD using UFS. Now images load very slow. I have read that Ext2 uses and internal hash to speed lookups, while UFS does linear searches for lookups.
View 2 Replies
ADVERTISEMENT
Jan 14, 2007
I have anywhere between 80,000 - 90,000 webpages that have a single code into this. Unfortunately at the time the web developer I used didn't use PHP includes. So each .html file has the code in it.
I want a way so I can do a single command either a program or an SSH command can find the syntax in the files and replace it will code I have. Its just a single line of code that is basically for an adsense code, so the pub-blahblahblah etc..
Does anyone know of a SSH command I can use, or a program that will find and replace without manually opening up each file? 80k - 90k of opening files then find/replace will take forever!
View 11 Replies
View Related
Mar 29, 2008
I run a large service on 2 machines (we're talking 8x2.66Ghz processing power, 4-6GB ram, etc), however we are thinking about creating a node/clustered setup to help spread the load, bandwidth, mysql (having one server for hundreds of thousands of databases is not wise it seems :p), diskspace etc. Lots of machines just seems to be a cheaper and more powerful option.
Would you advise going with lots of lower end machines, or just a few mid-range machines.
Here is what I propose:
3 of these
Dual Xeon 3GHZ Dual-Core (4x3GHz)
3GB RAM
500GB Sata Drive
4000 GB Bandwidth
100mbit
or
4 of these
XEON X3220 QUAD CORE 2.4GHZ 1066FSB
2GB DDR2 RAM (Upgradeable)
250GB HDD
2000GB Bandwidth
100mbit
or
7 of these
Dual Xeon 3.06 Ghz
2GB DDR2 RAM
250GB SATA
2000GB BW/MONTH
100mbit
All of the above are roughly similar prices in total.
View 5 Replies
View Related
Jun 13, 2009
have a centos 5.1 box but not sure if i have ext2 or ext3 on the drives? basically trying to disable the file system check if there's a hard boot, which i wouldn't risk if its ext2 but will do if its ext3.
View 4 Replies
View Related
Apr 25, 2007
I found that with unix's shell is possible copy all the content of a folder to oneother; I see the manual and found the command cp;
but there are many parameters;
which is that good?
I would like to replicate all that I have inner a folder to oneother;
so at the finish they must to hawe the identically content;
but I see, that some parameters can change symlink etc...
I want one clone exactly .
the originally folder have at inner directory,subdirectory, files htaccess etc..
View 1 Replies
View Related
Feb 24, 2008
I'll mention this is a cPanel/WHM server with about 15 accounts on it.
I get an e-mail everyday from my server's backup script telling me what new or changed files it found. Yesterday this summary was massive, and it showed new or changed files in these directories:
/proc
and
/home/virtfs
The type of files it contains:
"/home/virtfs/[username]/proc/140/task/140/exe"
"/home/virtfs/[username]/proc/139/exe"
"/home/virtfs/[username]/proc/139/task/139/exe"
"/home/virtfs/[username]/proc/227/exe"
"/home/virtfs/[username]/proc/227/task/227/exe"
"/home/virtfs/[username]/proc/374/exe"
The /home/virtfs directory is something I haven't seen before, and it contained two directories belonging to two accounts on the server.
Does anyone know why these directories would be created or what they are for? The bit of reading I've done on this so far mentions that these directories will be created as a result of jailed SSH, but neither of those two accounts have ever had jailed SSH enabled.
View 2 Replies
View Related
Sep 14, 2008
Command: CWD /public_html
Response: 550 Can't change directory to /public_html: Permission denied
Error: Failed to retrieve directory listing
That's what I see in FTP, but in File Manager in cPanel I don't see any files.
What do I do?
The permissions is set to 750 for /public_html and I cannot change them
View 14 Replies
View Related
Dec 7, 2007
What is the command to change the permissions for all files contained within the same directory? I have about 100k files
located here:
/mysite.com/files/
I need to chmod all files located within the /files/ directory to 666.
What is the command for this via ssh?
View 8 Replies
View Related
Oct 19, 2007
if it is possible to allow only one ip downloading files from a directory at a time.web server is apache , may be with some apache module or if there is some build in configuration can be applied to .htaccess .
View 1 Replies
View Related
Nov 9, 2007
How to Change php files permissions in directory and subdirectory at once ?
I want to change the permissions of php permissions to be 644 in /home/user/public_html/forum and all forum subdirectory using SSH.
View 2 Replies
View Related
Jul 15, 2013
I'm new to Apache. I'm using a version 2.4 for Windows 7. It didn't come in as an .msi so I had to configure the appropriate web-server name via the httpd text document.
Each time I go to http://localhost, I am present with a page with the content "It works." I tried adding a different .html file into the directory to see if I could access that also, but I was not able to navigate to it via the address bar. So I edited the content of index.html from 'It works!' to "It works?!!!" but sadly, the actual page is still showing 'It works!' for its content (Rather ironic, huh?).
So, for whatever reason, the actual 'localhost' page isn't updating or even noticing any of my edits in what I presume to be the correct directory.
Here's my httpd document for referenc [URL] ....
View 7 Replies
View Related
Oct 26, 2014
in wordpress is wp-includes folder, i dont want anyone just execute file from this directory so it just serve wordpress not any malicious file be executed from there,
so i added this rule into /wp-includes/.htaccess:
RewriteRule ^(wp-includes)/.*$ ./ [NC,R=301,L]
View 2 Replies
View Related
Jul 19, 2014
I have recently switched from Ubuntu to Mint because I would like to enjoy out of the box functionality. I installed Apache, PHP and Mysql. When I go to localhost, the page displays correctly indicating that the server is functioning. In /var/www/html I created devPages. In devPages I created a symlink to a directory in my home directory where I keep all of my html/php files.
When I point my browser to http://localhost/devPages/1/ I get "You don't have permission to access /devPages/1/ on this server". This appears to be a permissions/ownership issue. I don't want to change the permissions for the directory or files in the home directory because they are set to work properly on my production server. Is there a way to get apache to accept files in my home directory?
I have set owner and group for devPages and the symlink to www-data. Set permissions to 755 for devPages.
By the way, under Ubuntu, I have always used a symlink and it always worked without any issues.
View 1 Replies
View Related
Sep 28, 2014
I'm setting up a SAAS service which is built on top of Laravel. To put it simply the service itself knows whether its being called from a sub.example.com or just example.com and serves a correct response accordingly. So going to sub.example.com will use the same index.php file as example.com but the routes and controllers within the application will provide a different response. sub.example.com will show a tenant login page where as example.com will show a new tenant subscription page or something else.
So when someone new subscribes I add a new entry to the database with a subdomain name for them and when a request comes from that subdomain and they are logged in it will show them their information. Easy right.
There is a problem though with setting it up with Plesk. When I add a wildcard subdomain, it will look for /subdomains/sub/ for the files which is a bit problematic since I want it to serve the files from the same place as the domain example.com.
Is there a way to configure that so that regardless of the subdomain it will try and serve the exact same content as my main domain?
View 2 Replies
View Related
Sep 2, 2007
i had an p4 2.8g db server, centos4+mysql4.1. the cpu usage went up to 9X% at peak time (web pages loaded within 2~3sec), so i decide to swtich to a new server with a faster cpu. the new box is core 2 duo e6600, centos5+mysql5.0, having same RAM and HD with the old box. surprisingly , the cpu usage keeps above 150% almost all the time, and web pages cost 10+seconds to load at peak time.
how is it possible? what is the problem here? is the cpu, os, or mysql?
View 8 Replies
View Related
Oct 29, 2009
i try to backup a folder with many .tar files,
i use mget,the seppd is about 1MB/s,
but wget is about 5-7MB/s,
View 4 Replies
View Related
Apr 23, 2008
if Web servers might prioritize servicing Regular GET or a Conditional GET.
I have seen busy servers take 9 seconds to respond with a (304 Not modified). On fast networks (LANs), the file size is no issue and, it seems that a (200 OK) with the object is downloaded faster than the (304 Not modified) response alone.
Wiseowl. Not so wise on this one.
View 0 Replies
View Related
Jun 26, 2007
I seem to be experiencing slower bw throughput in speedtests on my server today on a domain that is on a shared ip as a virtualhost in apache 2.2.x on fedora core 6.
Right now this domain is pushing somewhere around 35Mbits out and 1Mbit in.
When I d/l from this domain I see pausing and overall performance is roughly 1/2 of what it was yesterday (400K/sec versus ~800K yesterday), when the site was only doing about 3Mbits.
However, another domain on this same server that is not on a shared IP, when I test it, I get my usual 100% d/l speed.
My server is not under heavy load, .02, .06, .00 with 95% idle cpu.
I'm just wondering, should sites with high bw use definitely have their own IP, as shared/virtual hosting is known to cause slowness?
View 8 Replies
View Related
Dec 18, 2008
if i use uk2.net's dedicated, will my US users feel slower connection?
if i host my site on uk2.net, will the site load slower for US visitors because the server is in uk ?
what about FDCservers, and serverpronto, any opinions on them ?
uk2.net appeals because of the price.
View 4 Replies
View Related
Dec 18, 2008
say i have lot of traffic from USA, does my site load slower if hosted in netherlands or uk?
View 11 Replies
View Related
Jun 15, 2008
unable to get any php5 error logs
Here are my settings in the /etc/php5/apache2/php.ini file:
display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
error_log = /var/log/php5/error.log
However unfortunately I never see any error log being generated in the /var/log/php5/error.log file?
Also with my shared hosting site one thing which I noticed was, due to some configurations set by them, the error.log used to generate in the folder where the error occured. This is a cool thing which they used to do, but I just dont understand how did they do that.
View 2 Replies
View Related
May 31, 2007
I have a situation like this:
There is a directory say, "Master" and inside, "Master" there is sub-directory, "Slave". A user who has access to, "Master" should be able to access, "Slave" automatically. However, a user who has access to, "Slave" should not have access to, "Master". Inside cPanel this type of protection is not possible.
View 3 Replies
View Related
May 25, 2008
My friend is setting up a media sharing site which will use a lot of bandwidth. He would like to colo two 2U servers with 10TB or so of bandwidth each. I have advised him that FDCservers unmetered is about the best price he can have. Can anyone else suggest a place offering 100mbit or 10TB of transfer for less than $1000/month per server.
View 14 Replies
View Related
Dec 11, 2008
How do I direct my httpd file to point to:
home/USER/public_html
instead of:
C:Users estetc...
I want to do this to make my test server just like the remote server.
View 5 Replies
View Related
Sep 18, 2008
I want to move the entire contents of a directory tree to another directory.
So for example we may have a directory with 15 directories inside, each directory contains files itself. I want to copy all the files from the directory tree into another directory located somewhere else one the file system. I want only the "files" to end up in the other directory and not the file structure too.
Im running CENTOS latest version.
View 4 Replies
View Related