آبشار گزو

آبشار گزو در فاصله‌ي 15 كيلومتري «زيراب» سوادكوه قرار دارد ؛ نزدیک پل سفيد-شيرگاه درمنطقه‌ي جنگلي و سر سبز و زيباي لفور مازندران واقع است. اين آبشار با ارتفاع مجموع 48 متر متشکل از دو آبشار است که ارتفاع اولین آبشار در حدود 5 متر و آبشار دوم در حدود 43 متر است.

 
 
 
برای دستیابی و بازدید از این منطقه بکر دو راه ارتباطی وجود دارد یک راه از مسیرمنطقه لفور و جاده کارسنگ است که با طی 30کیلومتر جاده خاکی و جنگلی به این منطقه بکر دست می یابید وراه دیگر مسیر جمشید آباد در 5 کیلومتری زیرآب می باشد که در نهایت به همان مسیر لفور و کارسنگ ملحق می شود و به منطقه مذکور می رسد طی این مسافت در حدود 2.5 تا 3 ساعت (بستگی به وسیله نقلیه) زمان می برد پس از طی این مسیر به امامزاده ای به همین نام می رسید و از آنجا مسیری پاکوب با شیبی نسبتا تند تا زیر آبشار قرار دارد که پس از حدود 30دقیقه به آن می رسید.

20 ways to Secure your Apache Configuration

20 ways to Secure your Apache Configuration

web

Here are 20 things you can do to make your apache configuration more secure.

Disclaimer: The thing about security is that there are no guarantees or absolutes. These suggestions should make your server a bit tighter, but don't think your server is necessarily secure after following these suggestions.

Additionally some of these suggestions may decrease performance, or cause problems due to your environment. It is up to you to determine if any of the changes I suggest are not compatible with your requirements. In other words proceed at your own risk.

First, make sure you've installed latest security patches

There is no sense in putting locks on the windows, if your door is wide open. As such, if you're not patched up there isn't really much point in continuing any longer on this list. Go ahead and bookmark this page so you can come back later, and patch your server.

Hide the Apache Version number, and other sensitive information.

By default many Apache installations tell the world what version of Apache you're running, what operating system/version you're running, and even what Apache Modules are installed on the server. Attackers can use this information to their advantage when performing an attack. It also sends the message that you have left most defaults alone.

There are two directives that you need to add, or edit in your httpd.conf file:

ServerSignature Off
ServerTokens Prod

The ServerSignature appears on the bottom of pages generated by apache such as 404 pages, directory listings, etc.

The ServerTokens directive is used to determine what Apache will put in the Server HTTP response header. By setting it to Prod it sets the HTTP response header as follows:

Server: Apache

If you're super paranoid you could change this to something other than "Apache" by editing the source code, or by using mod_security (see below).

Make sure apache is running under its own user account and group

Several apache installations have it run as the user nobody. So suppose both Apache, and your mail server were running as nobody an attack through Apache may allow the mail server to also be compromised, and vise versa.

User apache
Group apache

Ensure that files outside the web root are not served

We don't want apache to be able to access any files out side of its web root. So assuming all your web sites are placed under one directory (we will call this /web), you would set it up as follows:


Order Deny,Allow
Deny from all
Options None
AllowOverride None


Order Allow,Deny
Allow from all
Note that because we set Options None and AllowOverride None this will turn off all options and overrides for the server. You now have to add them explicitly for each directory that requires an Option or Override.

Turn off directory browsing

You can do this with an Options directive inside a Directory tag. Set Options to either None or -Indexes

Options -Indexes

Turn off server side includes

This is also done with the Options directive inside a Directory tag. Set Options to either None or -Includes

Options -Includes

Turn off CGI execution

If you're not using CGI turn it off with the Options directive inside a Directory tag. Set Options to either None or -ExecCGI

Options -ExecCGI

Don't allow apache to follow symbolic links

This can again can be done using the Options directive inside a Directory tag. Set Options to either None or -FollowSymLinks

Options -FollowSymLinks

Turning off multiple Options

If you want to turn off all Options simply use:

Options None

If you only want to turn off some separate each option with a space in your Options directive:

Options -ExecCGI -FollowSymLinks -Indexes

Turn off support for .htaccess files

This is done in a Directory tag but with the AllowOverride directive. Set it to None.

AllowOverride None

If you require Overrides ensure that they cannot be downloaded, and/or change the name to something other than .htaccess. For example we could change it to .httpdoverride, and block all files that start with .ht from being downloaded as follows:

AccessFileName .httpdoverride

Order allow,deny
Deny from all
Satisfy All

Run mod_security

mod_security is a super handy Apache module written by Ivan Ristic, the author of Apache Security from O'Reilly press.

You can do the following with mod_security:

  • Simple filtering
  • Regular Expression based filtering
  • URL Encoding Validation
  • Unicode Encoding Validation
  • Auditing
  • Null byte attack prevention
  • Upload memory limits
  • Server identity masking
  • Built in Chroot support
  • And more

Disable any unnecessary modules

Apache typically comes with several modules installed. Go through the apache module documentation and learn what each module you have enabled actually does. Many times you will find that you don't need to have the said module enabled.

Look for lines in your httpd.conf that contain LoadModule. To disable the module you can typically just add a # at the beginning of the line. To search for modules run:

grep LoadModule httpd.conf

Here are some modules that are typically enabled but often not needed: mod_imap, mod_include, mod_info, mod_userdir, mod_status, mod_cgi, mod_autoindex.

Make sure only root has read access to apache's config and binaries

This can be done assuming your apache installation is located at /usr/local/apache as follows:

chown -R root:root /usr/local/apache
chmod -R o-rwx /usr/local/apache

Lower the Timeout value

By default the Timeout directive is set to 300 seconds. You can decrease help mitigate the potential effects of a denial of service attack.

Timeout 45

Limiting large requests

Apache has several directives that allow you to limit the size of a request, this can also be useful for mitigating the effects of a denial of service attack.

A good place to start is the LimitRequestBody directive. This directive is set to unlimited by default. If you are allowing file uploads of no larger than 1MB, you could set this setting to something like:

LimitRequestBody 1048576

If you're not allowing file uploads you can set it even smaller.

Some other directives to look at are LimitRequestFields, LimitRequestFieldSize and LimitRequestLine. These directives are set to a reasonable defaults for most servers, but you may want to tweak them to best fit your needs. See the documentation for more info.

Limiting the size of an XML Body

If you're running mod_dav (typically used with subversion) then you may want to limit the max size of an XML request body. The LimitXMLRequestBody directive is only available on Apache 2, and its default value is 1 million bytes (approx 1mb). Many tutorials will have you set this value to 0 which means files of any size may be uploaded, which may be necessary if you're using WebDAV to upload large files, but if you're simply using it for source control, you can probably get away with setting an upper bound, such as 10mb:

LimitXMLRequestBody 10485760

Limiting Concurrency

Apache has several configuration settings that can be used to adjust handling of concurrent requests. The MaxClients is the maximum number of child processes that will be created to serve requests. This may be set too high if your server doesn't have enough memory to handle a large number of concurrent requests.

Other directives such as MaxSpareServers, MaxRequestsPerChild, and on Apache2 ThreadsPerChild, ServerLimit, and MaxSpareThreads are important to adjust to match your operating system, and hardware.

Restricting Access by IP

If you have a resource that should only by accessed by a certain network, or IP address you can enforce this in your apache configuration. For instance if you want to restrict access to your intranet to allow only the 176.16 network:


Order Deny,Allow
Deny from all
Allow from 176.16.0.0/16

Or by IP:

Order Deny,Allow
Deny from all
Allow from 127.0.0.1

Adjusting KeepAlive settings

According to the Apache documentation using HTTP Keep Alive's can improve client performance by as much as 50%, so be careful before changing these settings, you will be trading performance for a slight denial of service mitigation.

KeepAlive's are turned on by default and you should leave them on, but you may consider changing the MaxKeepAliveRequests which defaults to 100, and the KeepAliveTimeout which defaults to 15. Analyze your log files to determine the appropriate values.

Run Apache in a Chroot environment

chroot allows you to run a program in its own isolated jail. This prevents a break in on one service from being able to effect anything else on the server.

It can be fairly tricky to set this up using chroot due to library dependencies. I mentioned above that the mod_security module has built in chroot support. It makes the process as simple as adding a mod_security directive to your configuration:

SecChrootDir /chroot/apache

There are however some caveats however, so check out the docs for more info.

Acknowledgments

I have found the book Apache Security to be a highly valuable resource for securing an apache web server. Some of the suggestions listed above were inspired by this book.

Suggestions

Please post any suggestions, caveats, or corrections in the comments and I will update the post if necessary.


http://www.petefreitag.com/item/505.cfm

Security precautions before you start using PHP on your Apache server, step by step

Security precautions before you start using PHP on your Apache server, step by step

Introduction - what is PHP?

PHP is a server side scripting language. You can embed PHP code in your web pages along with HTML. When your server receives a request for a page, it first gives the page to the PHP handler program. The PHP handler outputs HTML code as-is, but when it encounters PHP commands, it executes them. Any HTML generated by the PHP commands is also output. The end result is a web page with content that has been customized on the server before being sent to whoever requested it.

PHP has capabilities that make it a potential security risk:

  • It can receive and process data from the "outside world"
  • It can be programmed to actively fetch data from anywhere on the internet
  • It is able to read and write files on the server

If you have a website, you can expect to be under constant attack from robots attempting to a) "send in" malicious data and scripts from the outside world, b) trick your server into fetching malicious scripts and running them, c) read and write files on your server. Their goal is to take control of your site and use it for their own purposes. 

This article gives configuration settings for PHP and rules for PHP coding that are effective at blocking the most common types of attacks. The configuration lines are few and the rules are simple.

There are two files where PHP configuration commands can go: php.ini or Apache .htaccess.

You should use php.ini as your first choice, if you can. You should be able to use it if:

  • You are on shared hosting at a webhost that uses suPHP or any other configuration that allows individual users to create their own php.ini files. If in doubt, ask them.
  • You are on dedicated hosting (your own rented server), or
  • You host your own website on your own server.

1a) Configure PHP settings with a php.ini file

php.ini specifies the configuration settings PHP will use when it is running on your website. It determines what things PHP scripts are allowed to do and what they are prohibited from doing. The following settings affect security.

In your public_html (the same folder where your site's main home page is), create a text file called php.ini that contains these lines. Instructions for customizing the text shown in red are farther down this page:

allow_url_fopen = Off
display_errors = Off
display_startup_errors = Off
log_errors = On
error_reporting = E_ALL
error_log = /home/yourUserID/public_html/phperr.txt
expose_php = Off
magic_quotes_gpc = On
magic_quotes_sybase = Off
register_globals = Off

Explanations:

These explanations are brief. This page of the PHP Manual has links to more.

allow_url_fopen = Off

allow_url_fopen = Off is especially important. It prevents URLs (internet addresses) from being used in PHP include() statements and in some other places. A command such as include("http://website.com/page.php") will not be allowed to execute. Only files that reside within your website can be included. You won't be able to include a file from a different server, but neither will anybody else. When someone else does it maliciously by embedding the URL in an otherwise innocent-looking HTTP request and hoping that your script can be tricked into including and running their script, it's called a Remote File Inclusion (RFI) attack. Having allow_url_fopen = Off dooms all such attacks to fail.

Some webmasters think they need to have allow_url_fopen = On because their pages are already coded to use URLs to include files from their own site or from some external site. It is worth expending some effort to try to stop doing that so that you can turn allow_url_fopen off:

  1. You can include a file from your own site simply by specifying its path and filename. Here is an example how to convert a URL include to one that does not use a URL:

    Assume your current code looks like this:

    include('http://yoursite.com/page.php');

    You would convert it to this:

    include($_SERVER['DOCUMENT_ROOT'] . '/page.php');

    $_SERVER['DOCUMENT_ROOT'] is a superglobal variable calculated by the server to be the root folder of your site, the equivalent of "/", which is usually public_html. Note that it does not provide a trailing "/", so you must provide a leading "/" in '/page.php'. Now you have a reliable method to refer to any file without having to use relative paths and without using a URL unnecessarily.
     
  2. If you include static content (that doesn't change) from another of your websites, such as
    include('http://myothersite.com/includes/footer.php'),
    you can make a copy of that content in the current site and then include it locally as described above. Having duplicate copies of a few files is a small price to pay for the better security of having allow_url_fopen Off.
     
  3. If you cannot avoid it and must include content from a remote site using URLs, you'll need to set allow_url_fopen = On. You can still get some protection from RFI attacks by using an alternative method that relies on .htaccess to ban incoming requests that contain potentially malicious URLs. See Section 1b) below and follow the link there. 

display_errors = Off
display_startup_errors = Off
log_errors = On
error_reporting = E_ALL

These specify that all errors and warnings will be logged to your error log text file. NO errors or warnings will be displayed on any web page that is sent out from your server. Errors should never be displayed publicly because they can help someone figure out how to attack your server. Remember to check your error log when you are testing new code. 

error_log = /home/yourUserID/public_html/phperr.txt

This defines the path and file to which your PHP errors and warnings are logged. Change yourUserID to the cPanel or other UserID assigned to you by your webhost. The filename can be anything you want. The path starting with /home seems to be a common one on Linux servers, but it might vary depending on your webhost. If the above doesn't work, ask them what it should be. public_html is only shown above as an example of where it fits in the path. You don't have to put your error log inside public_html. See below.

I recommend using a text file for error logging (as shown above), and not using the "system log" option that you might see mentioned. Your text file will accumulate errors indefinitely until you empty it, while the Apache system log can be flushed unpredictably.

Your error log file should be in an area of your webspace that is not publicly accessible. Any one of these methods will protect it:

  1. Put it in a folder that is not inside /public_html.
     
  2. Protect it with an .htaccess file that prohibits web access, like this:

    In cPanel > File Manager, create the folder.
    Inside the folder, create a file called .htaccess (with the leading period).
    Put this text in the file:

    order allow,deny
    deny from all

    Save the file.
    Test it by trying to go to http://yoursite.com/foldername/
    You should get a 403 Forbidden error page.
     
  3. Put it in a folder that is inside /public_html, but apply password protection to the folder. You can do this in cPanel.

With A) and B), you can only view the file with cPanel > File Manager or FTP, not by browser. With C), you can view the file in your browser by entering the password.

expose_php = Off

Not particularly important, but it doesn't hurt. The headers that accompany outgoing pages will not reveal that PHP is running or its version.

magic_quotes_gpc = On

The PHP manual recommends setting this to Off, and dealing with quotes in a secure manner on your own, but we're assuming you don't know how to do that yet, and that you also don't actually have any need yet for the situations it addresses, so for now the best setting is On.

magic_quotes_sybase = Off

Another special setting of "magic quotes". This should be Off.

register_globals = Off

register_globals = Off is especially important. You've probably seen URLs that look like this: http://site.com/index.php?something=somevalue. When register_globals is On, the variable called something is passed into your script with its value set to somevalue. When register_globals is Off, variables passed in like this are not automatically dumped into your script's variable list. This makes it harder for someone to inject their own code.

safe_mode = Off

This setting is not in the "recommended php.ini" above. I only mention it because you might run across it and wonder what it is and how it should be set. It restricts the permissions with which PHP scripts run. However, some very popular third party scripts, which you might want to use eventually, will not run properly when it is set to On. In addition, if your webhost uses suPHP, safe_mode serves no purpose. Lastly, beginning with PHP 6, safe_mode doesn't even exist. Therefore, it is best left out of your php.ini file, or, if present, set to Off.

1b) Alternative: configure PHP in .htaccess

If your webhost does not allow you to create your own php.ini, you can put configuration commands in .htaccess instead. Unfortunately, not all php.ini commands have .htaccess equivalents, but some of them do.

Put the following lines in a part of your public_html/.htaccess file that is not delimited by HTML-style tags such as the tags in the example in Section 3.1 below. The following lines have the same effects as their php.ini counterparts described in Section 1a) above, but notice that the format of the commands is different:

php_flag display_errors Off
php_flag display_startup_errors Off
php_flag log_errors On
php_flag magic_quotes_sybase Off
php_flag magic_quotes_gpc On
php_flag register_globals Off
php_value error_log /home/yourUserID/public_html/phperr.txt
php_value error_reporting 2147483647

The most important is the register_globals line.

It is very unfortunate that allow_url_fopen = Off has no .htaccess counterpart (although it will in PHP6). Because you cannot stop PHP from reading a file from a remote server, you need to make sure requests that try to do that maliciously are blocked so they cannot reach the PHP processor. A previous article has instructions how to use .htaccess to block requests that might be Remote File Inclusion attacks.

The following two also cannot be set in .htaccess, but they are unimportant:
expose_php = Off
safe_mode = Off

1c) What if the above configuration settings don't work?

If you ever write code that won't run properly with the above settings, you are leaving behind your "beginner" status and need to study PHP security more carefully before you go any further. The Security section of the PHP Manual is one reference that should be read at some point, but it isn't easy and probably isn't the best place to start. 

2) Viewing your PHP settings

Your server can give you a complete report of all your PHP settings.

  1. Create a text file with a .php extension, containing just this line:


     
  2. Upload it to your server into (preferably) a password protected folder.
  3. Open your browser and type the path into the address bar:
    http://yoursite.com/whatever/filename.php.
  4. Enter your username and password to enter the protected folder and view the result page.
  5. Save or print the result page to your local computer for reference.
  6. Delete the .php file from your server. It is not good to leave this file lying around where somebody else can run it and see how your server is configured. 

3) Modify your .htaccess file

  1. Important if you use php.ini: In your public_html/.htaccess file, add the following lines if they are not already there. Reference information for these lines is in the Apache manual section for mod_access:

# This denies all web access to your php.ini file.

order allow,deny
deny from all

  1. Required when using suPHP: If your webhost uses suPHP, you will need to enter a suPHP_ConfigPath line that tells PHP the location of your php.ini file. It will look something like this, but if this doesn't work, ask your web host what the line should be. Put this in a part of the file that is not between HTML-style tags like the tags in the paragraph above:

    suPHP_ConfigPath /home/yourUserID/public_html
     
  2. Optional: If you are adding PHP code to your existing .html files and don't want to rename them all to .php, you can instruct the server to send all .html files through the PHP processor as if they had .php extensions. To do that, add one of these lines into .htaccess, in a part of the file that is not delimited by tags. If one doesn't work, try another; experiment. 

    If you are using suPHP:
    AddHandler x-httpd-php .htm .html

    If you are not using suPHP:
    AddType application/x-httpd-php .htm .html

    Apache 2 without suPHP:
    AddHandler application/x-httpd-php .htm .html

4) One more php.ini setting, advanced...

The settings list in Section 1a) was supposed to be as simple as possible, usable by anyone, with a minimum of effort required, but there is one more php.ini setting that's worth using if you can. Here is an example of its use, with a list of some of the functions that could be disabled for increased security:

disable_functions = exec,shell_exec,passthru,system,eval,show_source,proc_open, popen,parse_ini_file,dl,(comma-separated list of function names)

This tells PHP not to allow the listed functions to be executed by any script in your site. The functions listed above are especially powerful, and many malicious scripts use them. By blocking their use, you block the scripts from causing much of their damage even if they do somehow manage to get into your site and run.

However, some of these functions are used by popular third party PHP scripts such as forums, blogs, galleries, and shopping carts, so the reason I call this an "advanced" setting is that before using this line you must search all the PHP code in your site to make sure you don't disable functions that your site requires. Nevertheless, disabling functions you don't use is worthwhile if you don't mind doing the research.

disable_functions is for php.ini only. It has no .htaccess equivalent.

5) Memorize these best coding practices

Beginner Rules:

  • Never use the PHP eval() function.
  • Never use PHP to interact with a database. (What this means is that while you are a beginner, you should not interact with a database at all, until you have studied the hazards of "SQL injection" attacks and understand how to write your code properly to guard against them.)
  • Never use the $_GET, $_POST, $_COOKIE, $_REQUEST, or $_FILES variables. These bring data into your script from the outside world. The data has the potential of being malicious.

Advanced Rule:

When the time comes that you need to break one of the Beginner Rules, first do a web search on: PHP security and spend a few days practicing proper coding techniques for the methods and functions you plan to use. 

6) Things to do

If necessary, email your web host. Ask these questions, and then modify your php.ini or .htaccess file as needed:

  1. Am I allowed to have my own php.ini file?
     
  2. I want to create an error log for PHP. Are these paths ok?

    php.ini  : error_log = /home/yourUserID/public_html/phperr.txt
    .htaccess: php_value error_log /home/yourUserID/public_html/phperr.txt

     
  3. Does my server use suPHP? If so, is this the correct line for .htaccess?

    suPHP_ConfigPath /home/yourUserID/public_html

7) You're ready to start. Good luck and have fun.

Additional security precautions for protecting your website are at
How to prevent your website from being hacked. How to repair a damaged site.


If you have questions, feel free to ask in the discussion forum.

Setting up your VPN under Windows Vista

Setting up your VPN under Windows Vista

Setting up PublicVPN access under Windows Vista is simple. The following instructions go step–by–step through the creation process. These instructions work under all the client–side variations of Windows Vista, namely Home Basic, Home Premium, Business, and Ultimate.

The things to click and places to type your information are hilighted in red, yellow, green, and/or blue.

System Requirements

Before setting up your VPN connection, make sure your version of Windows Vista is up to date by running Windows Update.

Make sure your system is up–to–date

Be sure that you run Windows Update before setting up your VPN connection.

Open the Control Panels

First, click on the Start button and click “Control Panels”. This opens up the “Control Panel Home.”

control panels

Go to the “Network and Internet” panel

Next, click on the “Network and Internet” control panel, which is circled in red below.

Connect To A Network

Next, click on “Connect to a network.”

Set up the VPN connection

The next screen may not look quite like this if you have networks already defined. In any case, click on “Set up a connection or Network.”

Choose the Connection Type

On the next screen, click on “Connect to a workplace” then click “Next.”

Select the Internet connection

Next click “Use my Internet connection (VPN).”

Enter the server information

Now, enter the server information.

In the text box labelled ‘Internet address’ ( hilighted in blue) type ‘gateway.publicvpn.net’. This is the Internet address of the PublicVPN.com servers.

In the text box labelled ‘Destination name’ (hilighted in green) type ‘PublicVPN.com’. This is the name of the connection, and will show up in the “Connect to a network” screen when we’re done.

Lastly, make sure that the checkbox labelled “Don't connect now; just set it up so I can connect later” (hilighted in yellow) is checked.

Then click the “Next” button.

Enter your PublicVPN.com username and password

In this screen, enter your PublicVPN.com username and password. This is the same username and password that you use to log in to the PublicVPN.com website.

In the text box labelled “User name:” (hilighted in blue), enter your PublicVPN.com username.

In the text box labelled “Password:” (hilighted in yellow), enter your PublicVPN.com password.

Optionally, check the “Remember this password” checkbox (hilighted in green) and you won’t have to enter your password when you connect to PublicVPN.com.

Then, click the ”Create” button.

Connection Ready

You should see this screen next. Click the “Close” button to return to the “Network and Internet” screen.

Go to the connection

Now click on “Connect to a network” again.

Select the connection properties

In the “Connect to a network” screen, you should see the PublicVPN.com connection that we set just up. Right–click on the PublicVPN.com connection document (circled in red), and choose “Properties” (circled in green) from the menu.

Go to the Security tab

Next, click the “Security” tab, which is hilighted in red.


http://irwhost.ir/images/V-p.N/7.jpg

نصب و راه اندازی Xen Server در Centos 5

دستورات زیر را به ترتیب اجرا کنید :


root@farshid-nb [~] # yum install xen
root@farshid-nb [~] # yum install kernel-xen
root@farshid-nb [~] # yum install virt-manager

سپس دستور /boot/grub/grub.conf اجرا کرده و محتویان آن را مطابق متن زیر ویرایش کرده و در صورتی که عبارتی در متن زیر وجود دارد و در محتویات فایل /boot/grub/grub.conf وجود نداره متن را در فایل /boot/grub/grub.conf کپی کرده و سچس فایل را ذخیره کنید.
default=1

timeout=5

splashimage=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

title CentOS (2.6.20-1.2944.fc6)

root (hd0,0)

kernel /vmlinuz-2.6.20-1.2944.fc6 ro root=/dev/vg00/lvroot rhgb quiet

initrd /initrd-2.6.20-1.2944.fc6.img

title CentOS (Xen enabled)

root (hd0,0)

kernel /xen.gz-2.6.21-2950.fc8

module /vmlinuz-2.6.21-2950.fc8xen ro root=/dev/vg00/lvroot rhgb quiet

module /initrd-2.6.21-2950.fc8xen.img

سپس سرور خود را reboot کنید و بعد از reboot شدن کامل سرور دستور uname -r را اجرا کنید و مقدار خروجی این دستور در صورتی که سرویس xen با موفقیت نصب شده باشد می بایستی برابر با 2.6.21-2950.el5xen (عدد مورد نظر در این متن باینگر نسخه کرنل سرور است که ممکن است در سرورهای مختلف تفاوت داشته باشد در صورت یکه سرویس xen با موفقیت نصب شده باشد عبارت .el5xen در انتهای نسخه کرنل شما نشان داده می شود)

سپس جهت فعالسازی سرویس xen دستور زیر را اجرا کنید :

/etc/init.d/xend start
chkconfig xen on

سرویس شما راه اندازی شده است در صورت که GUI گرافیکی تحت وبی نصب نکرده اید دستور virt-manager جهت مدیریت vps ها از طریق ssh اجرا کنید.

منبع :نوشته شده توسط فرشید حاجی زین العابدین

آموزش محدود کردن سرعت سرور برای دانلود

با سلام خدمت دوستان عزیزم.
این آموزش رو امروز بهش بر خوردم گفتم که برای شما هم بذارم. چون فک کنم به درد بعضی دوستان بخوره

-----------------------------------------------------------------------------------------------

در این آموزش به شما نشان داده میشه که چگونه در سیستم apache2 با توسط به mod_cband این کار رو انجام بدید.
خوب اول میریم سراغ نصب برنامه.

نکته : دقت داشته باشید که برای کامپایل کردن این برنامه شما احتیج به apxs دارید. که میتوانید به این گونه آن را نصب کنین.

کد PHP:
yum install httpd-devel 
در مرحله بدی دانلود mod_cband و شروع کامپایل. که به صورت زیر انجام میشه:
کد PHP:
cd /tmp
wget http
://cband.linux.pl/download/mod-cband-0.9.7.5.tgz tar xzvf mod-cband-0.9.7.5.tgz
cd mod
-cband-0.9.7.5 ./configure
make
make install 

ادامه نوشته

نصب mod_security در Direct Admin

This HOW-TO is for Apache 2.X only.

Code:
   1. cd /usr/local/src
2. mkdir modsecurity2
3. cd modsecurity2
4. wget http://www.serverbuddies.com/files/modsecurity-apache_2.5.9.tar.gz
5. perl -pi -e ’s/ServerTokens Major/ServerTokens Full/’ /etc/httpd/conf/extra/httpd-default.conf
6. perl -pi -e ’s/ServerSignature Off/ServerSignature On/’ /etc/httpd/conf/extra/httpd-default.conf
7. perl -pi -e ’s/ServerSignature EMail/ServerSignature On/’ /etc/httpd/conf/extra/httpd-default.conf
8.tar xzf modsecurity-apache_2.5.9.tar.gz
9.cd modsecurity-apache_2.5.9
10.cd apache2
11. ./configure
12.make
13.make test
14.make install
Now we download a pre-defined mod_sec ruleset,

Code:
  1.cd /etc/modsecurity2/
2.wget http://www.serverbuddies.com/files/modsec.v2.rules.conf
Add the new compiled mod_security module into the apache configuration,

Code:
1.vi /etc/httpd/conf/httpd.conf
After:

Code:
 LoadModule php5_module /usr/lib/apache/libphp5.so
Add:

For 32bit -

Code:
 1.LoadFile /usr/lib/libxml2.so
2.LoadModule security2_module /usr/lib/apache/mod_security2.so
For 64bit -

Code:
  1.LoadFile /usr/lib64/libxml2.so
2.LoadModule security2_module /usr/lib/apache/mod_security2.so
At the botton of the httpd.conf config file we add the following,

Code:
   1. 
2. # ModSecurity2 config file.
3. #
4. Include /etc/modsecurity2/modsec.v2.rules.conf
5.
Restart the webserver.

Code:
   1.service httpd restart
Installation should be completed and mod_sec should be now loaded on your Apache webserver.

برچسب‌ها ایران وب هاست

دانلود رایگان نرم افزار قدرتمند Corel Drawings X3

دانلود رایگان نرم افزار قدرتمند Corel Drawings X3

پنجشنبه, ۱۰ بهمن ۱۳۸۷

دانلود رایگان نرم افزار قدرتمند Corel Drawings X3

۱ فایل rar | حجم: ۱۱۷ مگابایت | لینک دانلود مستقیم

Corel® DRAWings® X3 نام نرم افزاریست که تمام امکانات و قدرت CorelDRAW® Graphics Suite X3 را شامل میشود. متخصصین و حرفه ای های رشته گرافیک به این نرم افزار اعتماد کرده و از آن بهره میبرند. قیمت نرم افزار نیز چیزی در حدود ۱/۱۵۰ یورو میباشد.

حداقل سیستم مورد نیاز برای استفاده عبارت است از:

Windows Vista® or Windows® XP (with Service Pack 2 or later)
1 GHz Intel® or AMD 32-bit (x86) processor
1 GB of RAM, 40 GB hard drive (5 GB free hard disk space after installation)
32-bit color graphics card
1024 × ۷۶۸ monitor resolution
Dedicated USB port for a USB dongle (V1.0 or V2.0)
DVD-ROM drive for software installation
Mouse or tablet
Microsoft® Internet Explorer 6.0 or later
Sound card required for multimedia training
Internet connection required for product registration and access to software updates

Recommended •

Windows Vista Business
2 GHz Intel or AMD 32-bit (x86) processor
2 GB of RAM, 80 GB or more hard drive (15 GB or more free hard disk space after installation)
Support for DirectX® ۹ graphics with WDDM Driver, 256 MB of graphics memory, Pixel Shader 2.0 in hardware, 32-bit color
1280 X 1024 monitor resolution (dual monitors recommended)
Dedicated USB port for a USB dongle (V1.0 or V2.0)
Backup device (e.g. DVD burner, tape backup, removable hard drive
Mouse or tablet
Sound card required for multimedia training
Internet Explorer 7.0 or later

لینک دانلود مستقیم نسخه کامل این نرم افزار با حجم ۱۱۷ مگابایت در ادامه مطلب موجود میباشد.

ادامه مطلب…