This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
16
Apache / How to check if userdir_module is installed
« on: November 04, 2014, 03:37:30 AM »
You can use this simple script to check if userdir_module is installed
How to use userdir_module ?
You can access any users public_html folder by using any IP address or any domain on the server in the following example.
http://IPADDRESS/~USERNAME
http://my-domain.com/~USERNAME
this example will provide you with the content of the users public_html folder
Code: [Select]
/usr/local/apache/bin/httpd -M|grep userdir && echo Mod UserDir is installed || echo Mod UserDir is NOT Installed
How to use userdir_module ?
You can access any users public_html folder by using any IP address or any domain on the server in the following example.
http://IPADDRESS/~USERNAME
http://my-domain.com/~USERNAME
this example will provide you with the content of the users public_html folder
17
E-Mail / How to Rebuild Postfix Mail Server
« on: November 02, 2014, 03:41:53 AM »
Starting from the CWP version 0.9.6+ you have a new awesome Postfix Mail Server Manager (reBuilder)
With single click select additional Mail Server options and rebuild your mail server according to your needs.
Location in the CWP.admin area
Left Menu --> Email --> Postfix Manager
Options
- AntiSpam and AntiVirus Protection (Spamassassin and ClamAV are scanning all your incoming emails, this requires server with min. 1Gb RAM).
- rDNS check (Drop all emails if no rDNS/PTR)
- Reject Unknown Hostname (Reject unless the hostname has valid DNS record.)
AntiSpam and AntiVirus
It's possible that ClamAV Antivirus will work with 512MB RAM server but its recommended to have 1GB+ RAM.
With single click select additional Mail Server options and rebuild your mail server according to your needs.
Location in the CWP.admin area
Left Menu --> Email --> Postfix Manager
Options
- AntiSpam and AntiVirus Protection (Spamassassin and ClamAV are scanning all your incoming emails, this requires server with min. 1Gb RAM).
- rDNS check (Drop all emails if no rDNS/PTR)
- Reject Unknown Hostname (Reject unless the hostname has valid DNS record.)
AntiSpam and AntiVirus
It's possible that ClamAV Antivirus will work with 512MB RAM server but its recommended to have 1GB+ RAM.
18
Apache / Default Page Displayed for all domains
« on: October 31, 2014, 06:02:36 AM »
If you get 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 --> Apache Settings --> Rebuild Apache vHosts)
4. Delete index.html file from users folder: /home/USERNAME/public_html/index.html
Check your website now, if you are still getting the same screen then check IP address set for your domain, goto:
Left Menu --> Apache Settings --> Edit Apache vHosts (and check IP address set for domain)
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 --> Apache Settings --> Rebuild Apache vHosts)
4. Delete index.html file from users folder: /home/USERNAME/public_html/index.html
Check your website now, if you are still getting the same screen then check IP address set for your domain, goto:
Left Menu --> Apache Settings --> Edit Apache vHosts (and check IP address set for domain)
19
PHP / php.ini configuration per user
« on: October 25, 2014, 08:22:55 PM »
you can make php.ini per user account, user only needs is to create php.ini file and add values in it.
Location of the php.ini file is
/home/USERNAME/php.ini
How to test php.ini changes?
Simple create phpinfo.php file in the users public_html folder and add the following content in it.
Example location: /home/USERNAME/public_html/phpinfo.php
Now open url in your browser (Apache restart is NOT needed):
http://your-domain.com/phpinfo.php
PHP.ini values
http://php.net/manual/en/ini.list.php
Location of the php.ini file is
/home/USERNAME/php.ini
How to test php.ini changes?
Simple create phpinfo.php file in the users public_html folder and add the following content in it.
Example location: /home/USERNAME/public_html/phpinfo.php
Code: [Select]
<?php
phpinfo();
?>
Now open url in your browser (Apache restart is NOT needed):
http://your-domain.com/phpinfo.php
PHP.ini values
http://php.net/manual/en/ini.list.php
20
Postfix / Let's build New Postfix Email Server
« on: October 25, 2014, 03:00:30 AM »
Hello,
This weekend we are planing to build new postfix email server for CWP, if you have any suggestions, ideas or want to help let us know!
Features which are in plan to be added:
- email autoresponder
- spamassassin (kill spam)
- clamav (antivirus scanner)
- configuration re-builder with few options
- mail server services monitor
- dkim & spf
...
This weekend we are planing to build new postfix email server for CWP, if you have any suggestions, ideas or want to help let us know!
Features which are in plan to be added:
- email autoresponder
- spamassassin (kill spam)
- clamav (antivirus scanner)
- configuration re-builder with few options
- mail server services monitor
- dkim & spf
...
21
FTP / FTP accounts
« on: October 22, 2014, 04:48:01 PM »
Each user account you create in CWP.admin can be also used for the FTP login.
Additional FTP accounts needs to be created from the users control panel.
Additional FTP accounts needs to be created from the users control panel.
22
Apache / Website File Locations
« on: October 21, 2014, 06:55:06 AM »
Website on my Domain
All websites must be uploaded in the users public_html folder.
For example
- create new user
- upload new website using FTP to the users /home/USERNAME/public_html/ folder.
If you upload website as root then you can run "Fix Permissions" from the Users Menu in the CWP, this will set required permissions for all files in the users home folder.
All websites must be uploaded in the users public_html folder.
For example
- create new user
- upload new website using FTP to the users /home/USERNAME/public_html/ folder.
If you upload website as root then you can run "Fix Permissions" from the Users Menu in the CWP, this will set required permissions for all files in the users home folder.
23
Tomcat / Tomcat Server
« on: October 20, 2014, 03:04:30 AM »
Install TomCat with one click from your CWP panel
version in the installer is: 8.0.14
How to install Java
- by default CWP will try to install java package: java-1.7.0-openjdk
How to add admin for Tomcat
In CWP Tomcat manager click on configuration files and edit file: tomcat-users.xml
For user admin replace "_MY_SECRET_PASSWORD_" with your password and restart tomcat
once you have restarted tomcat click on Tomcat admin panel link
version in the installer is: 8.0.14
How to install Java
- by default CWP will try to install java package: java-1.7.0-openjdk
How to add admin for Tomcat
In CWP Tomcat manager click on configuration files and edit file: tomcat-users.xml
For user admin replace "_MY_SECRET_PASSWORD_" with your password and restart tomcat
Code: [Select]
<user username="admin" password="_MY_SECRET_PASSWORD_" roles="manager-gui,admin-gui" />
once you have restarted tomcat click on Tomcat admin panel link
24
Apache / Apache Compiler
« on: October 12, 2014, 01:39:11 AM »
In your CWP from version 0.9.6 you will have Apache recompiler and you can modify apache modules according to your needs.
Additional Modules:
Short List of features/modules
Additional Modules:
- mod H264 and FLV streaming - Installing mods H264 and FLV streaming means you can seek to any position during video, and browser (flash player) will buffer only from this position to the end.
Short List of features/modules
Code: [Select]
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-layout=LAYOUT
--enable-v4-mapped Allow IPv6 sockets to handle IPv4 connections
--enable-exception-hook Enable fatal exception hook
--enable-maintainer-mode
Turn on debugging and compile time warnings
--enable-pie Build httpd as a Position Independent Executable
--enable-modules=MODULE-LIST
Space-separated list of modules to enable | "all" |
"most"
--enable-mods-shared=MODULE-LIST
Space-separated list of shared modules to enable |
"all" | "most"
--disable-authn-file file-based authentication control
--enable-authn-dbm DBM-based authentication control
--enable-authn-anon anonymous user authentication control
--enable-authn-dbd SQL-based authentication control
--disable-authn-default authentication backstopper
--enable-authn-alias auth provider alias
--disable-authz-host host-based authorization control
--disable-authz-groupfile
'require group' authorization control
--disable-authz-user 'require user' authorization control
--enable-authz-dbm DBM-based authorization control
--enable-authz-owner 'require file-owner' authorization control
--enable-authnz-ldap LDAP based authentication
--disable-authz-default authorization control backstopper
--disable-auth-basic basic authentication
--enable-auth-digest RFC2617 Digest authentication
--enable-isapi isapi extension support
--enable-file-cache File cache
--enable-cache dynamic file caching
--enable-disk-cache disk caching module
--enable-mem-cache memory caching module
--enable-dbd Apache DBD Framework
--enable-bucketeer buckets manipulation filter
--enable-dumpio I/O dump filter
--enable-echo ECHO server
--enable-example example and demo module
--enable-case-filter example uppercase conversion filter
--enable-case-filter-in example uppercase conversion input filter
--enable-reqtimeout Limit time waiting for request from client
--enable-ext-filter external filter module
--disable-include Server Side Includes
--disable-filter Smart Filtering
--enable-substitute response content rewrite-like filtering
--disable-charset-lite character set translation
--enable-charset-lite character set translation
--enable-deflate Deflate transfer encoding support
--enable-ldap LDAP caching and connection pooling services
--disable-log-config logging configuration
--enable-log-forensic forensic logging
--enable-logio input and output logging
--disable-env clearing/setting of ENV vars
--enable-mime-magic automagically determining MIME type
--enable-cern-meta CERN-type meta files
--enable-expires Expires header control
--enable-headers HTTP header control
--enable-ident RFC 1413 identity check
--enable-usertrack user-session tracking
--enable-unique-id per-request unique ids
--disable-setenvif basing ENV vars on headers
--disable-version determining httpd version in config files
--enable-proxy Apache proxy module
--enable-proxy-connect Apache proxy CONNECT module
--enable-proxy-ftp Apache proxy FTP module
--enable-proxy-http Apache proxy HTTP module
--enable-proxy-scgi Apache proxy SCGI module
--enable-proxy-ajp Apache proxy AJP module
--enable-proxy-balancer Apache proxy BALANCER module
--enable-ssl SSL/TLS support (mod_ssl)
--enable-distcache Select distcache support in mod_ssl
--enable-optional-hook-export
example optional hook exporter
--enable-optional-hook-import
example optional hook importer
--enable-optional-fn-import
example optional function importer
--enable-optional-fn-export
example optional function exporter
--enable-static-support Build a statically linked version of the support
binaries
--enable-static-htpasswd
Build a statically linked version of htpasswd
--enable-static-htdigest
Build a statically linked version of htdigest
--enable-static-rotatelogs
Build a statically linked version of rotatelogs
--enable-static-logresolve
Build a statically linked version of logresolve
--enable-static-htdbm Build a statically linked version of htdbm
--enable-static-ab Build a statically linked version of ab
--enable-static-checkgid
Build a statically linked version of checkgid
--enable-static-htcacheclean
Build a statically linked version of htcacheclean
--enable-static-httxt2dbm
Build a statically linked version of httxt2dbm
--enable-http HTTP protocol handling
--disable-mime mapping of file-extension to MIME
--enable-dav WebDAV protocol handling
--disable-status process/thread monitoring
--disable-autoindex directory listing
--disable-asis as-is filetypes
--enable-info server information
--enable-suexec set uid and gid for spawned processes
--disable-cgid CGI scripts
--enable-cgi CGI scripts
--disable-cgi CGI scripts
--enable-cgid CGI scripts
--enable-dav-fs DAV provider for the filesystem
--enable-dav-lock DAV provider for generic locking
--enable-vhost-alias mass virtual hosting module
--disable-negotiation content negotiation
--disable-dir directory request handling
--enable-imagemap server-side imagemaps
--disable-actions Action triggering on requests
--enable-speling correct common URL misspellings
--disable-userdir mapping of requests to user-specific directories
--disable-alias mapping of requests to different filesystem parts
--enable-rewrite rule based URL manipulation
--enable-so DSO capability
25
I can build it / Apply and build (payouts from 50-250$)
« on: October 05, 2014, 10:35:15 PM »
Apply here and start building CWP addons like: modules, installers, scripts...
Join now and start developing for CWP
Examples
- Bind DNS Cluster
- FFmpeg and other streaming additions
- Email Filtering
- Server Monitoring tools
- Module for installing something on the server
- Module for managing something on the server
....you can build whatever others will find useful
And the best part is that you get rewarded for your work, payouts are from 50-250$ per module.
Think over what you can build for CWP and join now!
Required Skills:
- Core PHP
- Linux knowledge
Apply here
http://centos-webpanel.com/contact
* Instructions: How to build CWP admin module
http://wiki.centos-webpanel.com/how-to-build-a-cwp-module
Join now and start developing for CWP
Examples
- Bind DNS Cluster
- FFmpeg and other streaming additions
- Email Filtering
- Server Monitoring tools
- Module for installing something on the server
- Module for managing something on the server
....you can build whatever others will find useful
And the best part is that you get rewarded for your work, payouts are from 50-250$ per module.
Think over what you can build for CWP and join now!
Required Skills:
- Core PHP
- Linux knowledge
Apply here
http://centos-webpanel.com/contact
* Instructions: How to build CWP admin module
http://wiki.centos-webpanel.com/how-to-build-a-cwp-module
26
CentOS 5 Problems / know problems with CentOS 5
« on: October 05, 2014, 10:24:43 PM »
CentOS 5 is not supported so avoid using it.
known problems:
- mail server issues
- Virtual FTP Users and PureFTPd
known problems:
- mail server issues
- Virtual FTP Users and PureFTPd
27
Apache / Apache compiler file locations
« on: September 29, 2014, 03:54:11 PM »
Apache Compiler paths
--prefix=/usr/local/apache
--with-apr=/usr/local/apr/
--with-apxs=/usr/local/apache/bin/apxs
Configuration files:
/usr/local/apache/conf/httpd.conf
/usr/local/apache/conf.d/suphp.conf
--prefix=/usr/local/apache
--with-apr=/usr/local/apr/
--with-apxs=/usr/local/apache/bin/apxs
Configuration files:
/usr/local/apache/conf/httpd.conf
/usr/local/apache/conf.d/suphp.conf
28
Information / CentOS Configuration File Locations (CWP)
« on: September 26, 2014, 06:42:03 PM »
Webmail & roundcube location
/usr/local/apache/htdocs/roundcube/
phpMyAdmin
/usr/local/apache/htdocs/phpMyAdmin/
MySQL root Password locations files
/root/.my.cnf
/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php
CWP SSL Configuration File
/usr/local/cwpsrv/conf.d/cwp-ssl.conf
/usr/local/apache/htdocs/roundcube/
phpMyAdmin
/usr/local/apache/htdocs/phpMyAdmin/
MySQL root Password locations files
/root/.my.cnf
/usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php
CWP SSL Configuration File
/usr/local/cwpsrv/conf.d/cwp-ssl.conf
29
How to / How to add swap on CentOS server
« on: September 17, 2014, 11:31:53 AM »
Check for Swap Space
Before we proceed to set up a swap file, we need to check if any swap files have been enabled by looking at the summary of swap usage.
If nothing is returned, the summary is empty and no swap file exists.
Check Disk Space Usage
After we know that we do not have a swap file enabled, we can check how much space we have on the server with the df -h command.
Create and Enable Swap (512k = 512 MB)
Now you can see your swap using command
This file will last on the server until the machine reboots. You can ensure that the swap is permanent by adding it to the /etc/fstab file.
Paste in the following line:
To prevent the file from being world-readable, you should set up the correct permissions on the swap file:
Before we proceed to set up a swap file, we need to check if any swap files have been enabled by looking at the summary of swap usage.
Code: [Select]
swapon -s
If nothing is returned, the summary is empty and no swap file exists.
Check Disk Space Usage
After we know that we do not have a swap file enabled, we can check how much space we have on the server with the df -h command.
Code: [Select]
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda2 20G 7.0G 12G 39% /
tmpfs 246M 0 246M 0% /dev/shm
/dev/vda1 504M 38M 441M 8% /boot
Create and Enable Swap (512k = 512 MB)
Code: [Select]
sudo dd if=/dev/zero of=/swapfile bs=1024 count=512k
sudo mkswap /swapfile
sudo swapon /swapfile
Now you can see your swap using command
Code: [Select]
free -m
This file will last on the server until the machine reboots. You can ensure that the swap is permanent by adding it to the /etc/fstab file.
Code: [Select]
sudo nano /etc/fstab
Paste in the following line:
Code: [Select]
/swapfile swap swap defaults 0 0
To prevent the file from being world-readable, you should set up the correct permissions on the swap file:
Code: [Select]
chown root:root /swapfile
chmod 0600 /swapfile
30
CentOS-WebPanel GUI / How to fix Encryption error on login
« on: September 10, 2014, 03:43:27 PM »
If you get Encryption error on login using root then try following.
Login as root in shell/ssh
1. try setting new password for root user.
if this does not help then try
2. Check hashing (hashing needs to be md5 or )
if you get following "password hashing algorithm is descrypt" then you need to change hashing type.
then again set new root password
Supported Encryptions are:
MD5: "authconfig --passalgo=md5 --update"
SHA-256: "authconfig --passalgo=sha256 --update"
SHA-512: "authconfig --passalgo=sha512 --update"
Note, all users need to change their passwords in order to generate hashes using new encryption.
Login as root in shell/ssh
1. try setting new password for root user.
Code: [Select]
passwd
if this does not help then try
2. Check hashing (hashing needs to be md5 or )
Code: [Select]
authconfig --test | grep hashing
if you get following "password hashing algorithm is descrypt" then you need to change hashing type.
Code: [Select]
authconfig --passalgo=md5 --update
then again set new root password
Code: [Select]
passwd
Supported Encryptions are:
MD5: "authconfig --passalgo=md5 --update"
SHA-256: "authconfig --passalgo=sha256 --update"
SHA-512: "authconfig --passalgo=sha512 --update"
Note, all users need to change their passwords in order to generate hashes using new encryption.