This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please upgrade to a browser that supports web standards. It's free and painless.
| « | February 2010 | » | ||||
|---|---|---|---|---|---|---|
| Su | Mo | Tu | We | Th | Fr | Sa |
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | ||||||
Mount /tmp with noexec
Find which site is sending spam email from apache@yourdomain, How to track spam sent out from your server through php/apache
Disable Majordomo for all sites
4 Primary Areas For Tuning Your Server
Redhat ROD/Remote Console How To
Debian ROD/Remote Console How To
Windows ROD/Remote Console How To
FBSD ROD/Remote Console How To
HOWTO: FFmpeg + FFmpeg-PHP + Mplayer + Mencoder + flv2tool + LAME MP3 Encoder + Libog
How to setup email Smart Host to send emails via Gmail or DynDNS's smtp.
When you have a lot of clients (Domains) on your server, it's almost impossible to track all emails sent from your server through php scripts.
So i found a solution and i going to share with everyone.
Requeriments
Linux
Ensim
root access (More)
I just thought I would add my two cents in for everyone. I posted an old howto with some sysctl.conf, but I think that was when I was running on my previous server using and older version of redhat. So here's a fresh howto that is a little more complete.
These configs are based on my server specs, which is a Dual 2.0GHz Xeon with 2GB of RAM running RedHat Enterprise. Depending on your server's RAM you might have to reduce some of the settings, which I'll try make notes with each section. (More)
A few people have asked for this to be done so heres a howto for installing:
FFmpeg
FFmpeg-PHP
Mplayer + Mencoder (mencoder is now built into the mplayer svn release )
flv2tool ****REQUIRES RUBY ON RAILS****
LAME MP3 Encoder
Libogg
Libvorbis
CAUTION: This gets technical and requires fairly solid ssh knowledge.
CAUTION: Many issues are not covered, such as email users and file ownership and sql-xfer and php stuff and all those functions etc etc.
This is only a very basic tutorial that explains how to get apache to work on the html side of things
-------------------------------
CAUTION: user:user ownership
Following this tutorial verbatim will leave all your sites root:root
-------------------------------
Pre-requisites: A flavor of Linux, debian and apache are the ones I use (Ubuntu Gutsy, CentOS 5.0)
Properly propagated or correctly pointed nameservers.
Working Apache!
This can and does work for Windows servers but this is written for Unix
---------------------------------
WARNING: Editing of critical server files is required!!!
---------------------------------
DANGER: Removing a cp on a production server could delete all your sites!
---------------------------------
NOTES: Probably best for servers with few sites.
----------------------------------
Credits and Thanks to the Orbit Support Team for their invaluable assistance! (More)
Installing Zend Optimizer
SSH into your server as 'root' user
#Make a backup of your php.ini before you proceed:
cp /etc/php.ini /etc/php.ini.backup
#Download the file. You need to create an account at zend.com before you can download this file. I used to have this file on my server, but that was ages ago....
http://www.zend.com/free_download/optimizer
tar zxvf ZendOptimizer.tar.gz
cd ZendOptimizer
./install
#You'll be asked the following questions, answer them with the following:
#Specify the location where to install Zend Optimizer:
/usr/local/Zend
#Confirm the location of your php.ini file:
/etc
#Are you using the Apache webserver?
Yes
#Specify the Apache configuration directory:
/etc/httpd/conf
#The install script should now detect the right Version of PHP.
Choose "Yes" to proceed.
#Specify the Apache bin directory:
/usr/sbin
#After that, your php.ini is automatically relocated to /usr/local/Zend/etc and a symlink is created.
#Do you want to restart Apache Webserver
Choose "No" (Iv had trouble with that script and it failed to restart apache, just restart apache manually)
#Restart Apache
service httpd restart
#Zend Optimizer is now installed..
(More)
How to automatically ban abusive ip's using fail2ban
Originally from Ensim 4.0; similar steps had to be taken after the upgrade to 4.0.2; I would assume the same follows until python 2.3 is included [it may already be; corrections welcome].
Fail2Ban scans log files like /var/log/pwdfail or /var/log/apache/error_log and bans IP that makes too many password failures. It updates firewall rules to reject the IP address.
(More)
FRESH INSTALL
This part of the how-to is for a clean install only, for upgrades please scroll down.
Make a copy of your current httpd.conf incase you need to roll-back
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf_back
Download The Apache Tar.Gz File
wget http://www.tux.org/pub/net/apache/d...d-2.0.47.tar.gz
Extract The File To Your Server
tar -xz -f httpd*
Move Into The Extracted Folder
cd httpd*
For getting my domain.com to forward to www.domain.com automatically.
<keywords>
Here is how to get domain.com to auto automatically forward to www.domain.com add www to my url rewrite my url from mydomain.com to www.mydomain.com httpd.conf configure redirect url to 'www.'
</keywords>
edit: /usr/local/apache/conf/httpd.conf
(ignore my line numbers)
Make a backup of your original httpd.conf file in case you screw it up. You'll be able to swap em back out and get things live again in a hurry.
Find the domain.com VirtualHost entry you want to fix:
(More)
HOW-TO updated to reflect 5.0.4 update to 5.0.5
Finally I have confirmed that this setup works!
I'm using Apache 1.3.33 (1.3.34 out, but it will not broke anything) + phpsuexec coming with cPanel + custom php 4.3.11 compiled as cgi (actually you may use the Apache Update via WHM to compile working php4 in cgi mode/phpsuexec) + custom php 5.0.5 compiled as cgi (it is easy to do as well, I will explain)
php5 works the same as php4 and it saves the permissions and etc. E.g. no problems with nobody as well.
(More)
September 2008
December 2005
November 2005
September 2005
Apache [9]

CentOS [1]

Cpanel [14]

DNS [2]

Ensim [5]

Fedora [1]

Mail [6]

Plesk [3]

RedHat [7]

Sales [4]

Security [8]

SQL [1]

SSH [3]

SSL [1]

Streaming audio [2]

System [18]

Webppliance [1]

Boonic Net
Bloogo
Boonic United Kingdom
Mega Notebooks
Software
Boonic United States
Boonic India