Go Back   Netpond ™ > Webmaster Forums and Resources > Tutorials
Register FAQ Calendar Radio and TV NP Shop Search Today's Posts Mark Forums Read

Tutorials Tutorials and helpful articles made by ponders for ponders

MovieProfits
XMoney 2 Lips Cash
Reply
 
LinkBack Thread Tools Display Modes
Old 04-30-2008, 07:35 AM   #1 (permalink)
redhatslut
WPMU Field Specialist
 
redhatslut's Avatar
 
Join Date: Apr 2008
Posts: 131
Points: 150
Send a message via ICQ to redhatslut Send a message via Yahoo to redhatslut
Wink Simple HowTo: WPMU - .htaccess and php.ini - Tutorial #3

As we read in the documentation of WPMU:

"If your PHP is compiled with memory limit checks, the default is 8MB which is much too small. You should increase this to at least 32MB or 64MB to avoid PHP out of memory errors. Look for "memory_limit" in your php.ini file."

WPMU is some serious piece of soft, and it needs special care. Chances are that you have an average farm hosting and you don't have administrative access to your server. Depending on your provider, you may have no access to your servers php.ini files. ASK YOUR SUPPORT.

I will describe this problem as it is solved on Dreamhost.

We have no access to php.ini. We need to make a second php.ini for our domain. It will reside in the folder cgi-bin in root of our domain.

read the php_ini wiki on DH, Custom PHP.ini - DreamHost
IT will be similar for any other hosting. When you have set up you custom php.ini, edit it and for the beginning let's change:

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)

to:

max_execution_time = 360 ; Maximum execution time of each script, in seconds
max_input_time = 720 ; Maximum amount of time each script may spend parsing request data
memory_limit = 64M ; Maximum amount of memory a script may consume (8MB)

It is just an example. Feeding rss scripts may take long time and 30 seconds won't be enough for them. They would display an error while executing.




Another file is .htaccess. It is a hidden file in root of your domain folder.
Some stuff from DH wiki: Htaccess - DreamHost

You will need to edit it several times during the creation of your sBlog farm. For example the WPMU sitemap google xml plugin needs to edit this file.

You need to talk with your support if you don't know how to do this. .htaccess is a hidden file and its name begins with a dot. Some ftp clients won't see it and for example MacOSX won't see it by default. Everything is explained in the wiki.

When you are comfortable with editing your custom php.ini and .htaccess you can go to the next part of my tutorial. In the future we will also talk about cron jobs.
redhatslut is offline   Reply With Quote Send a private message to redhatslut
Old 04-30-2008, 07:40 AM   #2 (permalink)
MMarko
crohoster
 
Join Date: May 2005
Location: on the net
Posts: 1,654
Points: 12,285
Send a message via ICQ to MMarko
On most hosts users are not allowed to change or alter php.ini specially if they are on shared host because this is possible security issue.

If you have WPMU on shared host this usually means that it is not big and that will work on default settings. If you need to modify php.ini the best bet would be to get yourself a dedicated server.

Dreamhost will surely ban you due to resource / cpu limitation they have in their TOS.
__________________
CROHOSTER check plans - quality adult hosting & servers (we accept np points, credit cards, moneybookers and epass)
MMarko is online now   Reply With Quote Send a private message to MMarko
Old 04-30-2008, 07:44 AM   #3 (permalink)
redhatslut
WPMU Field Specialist
 
redhatslut's Avatar
 
Join Date: Apr 2008
Posts: 131
Points: 150
Send a message via ICQ to redhatslut Send a message via Yahoo to redhatslut
no, they will not. Users on shared hostings are allowed to use custom php.ini, not to edit the servers one.

If you run your feeds in a reasonable way, they will not ban you. I have about 200 blogs on dreamhost, but each goes on 2-3 feeds and the feeds are processed separately. I will explain all this later. If you do everything with caution you will be ok, and after you make some money you can go to dedicated hosting.
redhatslut is offline   Reply With Quote Send a private message to redhatslut
Old 04-30-2008, 07:47 AM   #4 (permalink)
MMarko
crohoster
 
Join Date: May 2005
Location: on the net
Posts: 1,654
Points: 12,285
Send a message via ICQ to MMarko
I meant if you change execution times and memory limits there is high possibility you will go over their resource limits. You have 200 blogs with 600 feeds on 1 account?
__________________
CROHOSTER check plans - quality adult hosting & servers (we accept np points, credit cards, moneybookers and epass)
MMarko is online now   Reply With Quote Send a private message to MMarko
Old 04-30-2008, 07:49 AM   #5 (permalink)
redhatslut
WPMU Field Specialist
 
redhatslut's Avatar
 
Join Date: Apr 2008
Posts: 131
Points: 150
Send a message via ICQ to redhatslut Send a message via Yahoo to redhatslut
yes. Changing php.ini for execution time is just a precaution.

All those feeds are processed separately. After the blogs are populated with content for the first time, the updates won't take much resources.

i also have there about 30 other sites.
redhatslut is offline   Reply With Quote Send a private message to redhatslut
Old 04-30-2008, 07:55 AM   #6 (permalink)
Rofl
Who Dares Wins
 
Rofl's Avatar
 
Join Date: Dec 2006
Location: Old Blighty
Posts: 1,956
Points: 2,775
Send a message via ICQ to Rofl
Quote:
Originally Posted by redhatslut View Post
After the blogs are populated with content for the first time, the updates won't take much resources.
Well, that begs the question, why are you changing resource limits then?
Rofl is online now   Reply With Quote Send a private message to Rofl
Old 04-30-2008, 07:57 AM   #7 (permalink)
redhatslut
WPMU Field Specialist
 
redhatslut's Avatar
 
Join Date: Apr 2008
Posts: 131
Points: 150
Send a message via ICQ to redhatslut Send a message via Yahoo to redhatslut
rarely it may occur that there will be some kind of delay and we dont wont to get an error which will break our chain of updates and force us to do something manually
redhatslut is offline   Reply With Quote Send a private message to redhatslut
Old 04-30-2008, 08:27 AM   #8 (permalink)
Dutch Harry
Respect My Authoritaaaah
 
Dutch Harry's Avatar
 
Join Date: Oct 2004
Location: The Hague Holland
Posts: 7,258
Points: 550
Send a message via ICQ to Dutch Harry
I am sure that a lot of shared hosting company's wont let you chance the php.ini, because of the high risk it involves
__________________
In Need of High Quality Blogs And no Time to Build Them?
Harry's Blog Building Service
email: harry(at)dutchharry.com | ICQ 211130833 | Skype dutch-harry.
Dutch Harry is online now   Reply With Quote Send a private message to Dutch Harry
Old 04-30-2008, 08:55 AM   #9 (permalink)
redhatslut
WPMU Field Specialist
 
redhatslut's Avatar
 
Join Date: Apr 2008
Posts: 131
Points: 150
Send a message via ICQ to redhatslut Send a message via Yahoo to redhatslut
yeah, so if you can ask them before you buy an account. WPMU pretty much needs changing php.ini. There maybe more stuff later involving mass plugins which may need changing this file :P
redhatslut is offline   Reply With Quote Send a private message to redhatslut
Old 04-30-2008, 09:11 AM   #10 (permalink)
Dutch Harry
Respect My Authoritaaaah
 
Dutch Harry's Avatar
 
Join Date: Oct 2004
Location: The Hague Holland
Posts: 7,258
Points: 550
Send a message via ICQ to Dutch Harry
I think that is a really good tip, that people check their hosting before getting a account, do your research!
__________________
In Need of High Quality Blogs And no Time to Build Them?
Harry's Blog Building Service
email: harry(at)dutchharry.com | ICQ 211130833 | Skype dutch-harry.
Dutch Harry is online now   Reply With Quote Send a private message to Dutch Harry
Old 04-30-2008, 09:14 AM   #11 (permalink)
redhatslut
WPMU Field Specialist
 
redhatslut's Avatar
 
Join Date: Apr 2008
Posts: 131
Points: 150
Send a message via ICQ to redhatslut Send a message via Yahoo to redhatslut
just a good example from me:

BlueHost, which is a decent hosting and is promoted on the wordpress.org page, but it doesn't support Wildcard DNS, so it is no good for WPMU
redhatslut is offline   Reply With Quote Send a private message to redhatslut
Old 04-30-2008, 11:10 AM   #12 (permalink)
MMarko
crohoster
 
Join Date: May 2005
Location: on the net
Posts: 1,654
Points: 12,285
Send a message via ICQ to MMarko
Quote:
Originally Posted by redhatslut View Post
yeah, so if you can ask them before you buy an account. WPMU pretty much needs changing php.ini. There maybe more stuff later involving mass plugins which may need changing this file :P
No, it does not, if php.ini options are properly set before (at least for most WPMU installs).

Anyway I think you're risking with that much blogs on Dreamhost.
__________________
CROHOSTER check plans - quality adult hosting & servers (we accept np points, credit cards, moneybookers and epass)
MMarko is online now   Reply With Quote Send a private message to MMarko
Old 04-30-2008, 12:24 PM   #13 (permalink)
redhatslut
WPMU Field Specialist
 
redhatslut's Avatar
 
Join Date: Apr 2008
Posts: 131
Points: 150
Send a message via ICQ to redhatslut Send a message via Yahoo to redhatslut
it depends on what you want to do with your WPMU,
we will see. If anything bad happens they contact me and we solve the problem. They have understanding customer service.
redhatslut is offline   Reply With Quote Send a private message to redhatslut
Reply


Thread Tools
Display Modes



Netpond Resources
Resource Directory Tutorials & Articles Webmaster Tools Netpond News
 
Netpond Resources
LoveDollars WildCash PussyCash SilverCash
Fetish Hits Cyberwurx Platinum Bucks Python
AEBN GroobyBucks FlashCa$h XMoney
Rabbits Reviews CraziesCash TrafficCashGold EvilAngelCash
Orgycash ETU-Cash Webcams Cyberbit
Free Porn Paradise British Porno British Porn Models
GroobyBucks
All times are GMT -4. The time now is 09:06 AM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
vBCredits v1.4 Copyright ©2007, PixelFX Studios