Tag archive for ‘Apache’

Cannot start Web server from Plesk panel, No such file ‘/usr/local/etc/rc.d/apache2.sh’ error appears

Attempts to start or stop apache web service on Server > Services page fail with error ERROR: PleskFatalException Unable to make action: Unable to manage service by websrvmng: websrvmng: No such file ‘/usr/local/etc/rc.d/apache2.sh’: No such file or directory System error 2: No such file or directory   Apache startup script name is specified with the [...]

What is .htaccess and how to disable .htaccess?

What is .htaccess and how to disable .htaccess? .htaccess is use to modify the way Apache behaves for a directory and it’s sub-directories. It gives you an extra control on your server, like setting up custom error messages, password protect a directory, writing rewrite rules, blocking IPs etc. However, it can be a potentially dangerous [...]

PHP pages asking for download

If your .php files are prompting for download on browsing, make sure PHP is compiled with Apache and you have following lines in your Apache configuration file AddHandler application/x-httpd-php .php .html You can also add the above line in your .htaccess file of the domain. Incoming search terms:php file is asking to download (1)

Accessing Plesk directories outside httpdocs / php open_basedir error

PHP open_basedir errors occur when a script tries to access a directory outside of httpdocs. For security reasons Plesk only allows access to the httpdocs and tmp directories. So what if you need to access a different directory? The easiest way is to amend the vhost.conf file of the specific domain. Open the vhost.conf file [...]

Network UPS Tools (NUT) For USB UPSs On CentOS 5.5

This tutorial shows how to configure and use Network UPS Tools (NUT) software with an USB (Uninterruptible Power Supply) on CentOS 5.5. NUT is a software which supports several thousand models. To check if your UPS is supported, this is the link to the HCL: http://www.networkupstools.org/stable-hcl.html Install NUT dependencies: yum install net-snmp-libs gd httpd Download [...]

How To Set Up WebDAV With Apache2 On CentOS 5.5

This guide explains how to set up WebDAV with Apache2 on a CentOS 5.5 server. WebDAV stands for Web-based Distributed Authoring and Versioning and is a set of extensions to the HTTP protocol that allow users to directly edit files on the Apache server so that they do not need to be downloaded/uploaded via FTP. [...]

Installing Apache2 With PHP5 And MySQL Support On CentOS 5.5 (LAMP)

LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a CentOS 5.5 server with PHP5 support (mod_php) and MySQL support. I do not issue any guarantee that this will work for you!   1 Preliminary Note In this tutorial I use the hostname server1.example.com with [...]

Basic Steps to Secure Apache

Here are some basic steps to secure Apache Web Server IMPORTANT NOTE: These suggestions may vary from server to server and modify the values as per your server configurations. It is up to you to determine if any of the changes suggested here are not compatible with your requirements. 1. Hide the Apache Version number, [...]

How To Manage Apache Resources Limits With mod_slotlimit (Debian Etch)

mod_slotlimit is an Apache module that using dynamic slot allocation algorithm and static rules, can manage resources used for each running site.   1. Installation In order to compile mod_slotlimit, you will need to have apxs2 (APache eXtension tool) installed and configured with Apache. The follow command will install it: apt-get install apache2-prefork-dev Now we [...]

How To Install OCS Inventory NG Server 2 On CentOS 5.5

Introduction OCS Inventory is a great software to make inventories. The NG Server is formed by: communication server, deployment server, and administration console. Click here to know how it works. The computers that will be inventoried must run an agent (installed on each computer), to connect to the OCS NG Server. We are using the [...]