PHP opcache-xcache-apc-varnish

Which cache is working with cwp apache using suPHP? Since CWP is working with suPHP handler you can use Varnish only. Nginx as revers proxy will also help as it will be used for all static file and will provide better stability and lower number of request for apache. Varnish will work with suPHP Memcached […]

Read More

Apache run python script

Install python and run python scripts with apache on your CentOS WebPanel server. Install python yum install python Check python version python -V Create a test script cd /home/USERNAME/public_html mkdir cgi-bin nano cgi-bin/test.py Now add the following python test script in the file: /home/USERNAME/public_html/cgi-bin/test.py #!/usr/bin/python # enable debugging import cgitb cgitb.enable() print “Content-Type: text/plain\r\n\r\n” print […]

Read More

Enable Apache modules

Since CWP is using a custom compiled apache from source, you can easily enable additional apache module in CWP by going to Apache Settings –> Apache Re-Build To rebuild apache, select apache & suPHP version For additional module activation you only need to add a new line in the text box, like for example: –enable-expires […]

Read More

Rebuild Apache vHosts

Instructions for Apache vHosts (Virtual Host configuration files) rebuild. go to Left Menu –> Apache Settings –> Rebuild Apache vHosts click on the “Rebuild All Apache vHosts” If you have Varnish Cache Server or Nginx Reverse Proxy installed this option will also rebuild configuration for them. Apache Logs are in: /usr/local/apache/logs/

Read More

How to install Varnish

How to install Varnish on the CentOS Web Panel servers CWP has a two Varnish options, Single-IP and Multi-IP. The main difference is, if you have more than a one IP, then you will need to use Varnish Multi-IP. Install Varnish 1. Login to your CWP.admin 2. go to Apache Settings –> Varnish Cache Server […]

Read More

How to change default website

Instructions on how to change default website which is visible when access the server by the hostname or IP address. To edit default index file: Go to Folder /usr/local/apache/htdocs/ and edit index.html file Apache Logs are in: /usr/local/apache/logs/

Read More

Default Page Displayed for all domains

If you get a default web page displayed for the all domains then please follow this instructions. 1. Logout and Login again as root (CWP automatically tries to fix known issues on the root login) 2. Set shared IP address (Left Menu –> CWP Settings –> Edit Settings) 3. Rebuild Apache vHosts (Left Menu –> […]

Read More

500 Internal Server Error

This error is usually related with the permissions/ownership issue. suPHP requires that the files are owned by the user name, and suExec requires that they are executed from the correct home folder. Permissions on php files should also be set to 644 (-rw-r-r-), folder permission must be 755. How to change ownership on the files […]

Read More

How to setup Website on the IP address

You can also setup website on the IP address but this is not recommended since here are important server applications like (webmail, FTP, phpMyAdmin…) Instructions – Upload files to folder: /usr/local/apache/htdocs/ – Change permissions on all files to a user nobody using the following command chown -R nobody.nobody /usr/local/apache/htdocs/ If you need to use a […]

Read More