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.
1456
Addons / Re: LOG PER DOMAIN or SUB DOMAIN
« on: July 07, 2014, 04:24:17 PM »
you will need to create files manually, but this option could be added in a newer releases.
1457
Installation / Re: How Change Login port from 2030 to 2082 ?
« on: July 07, 2014, 04:20:45 PM »
new how to is added for this question
http://forum.centos-webpanel.com/how-to/how-to-change-cwpsrvd-listen-port-(cwp)/
http://forum.centos-webpanel.com/how-to/how-to-change-cwpsrvd-listen-port-(cwp)/
1458
How to / How to change cwpsrvd Listen port (CWP)
« on: July 07, 2014, 04:19:16 PM »
If you need to change cwpsrv Listen port you can do that by editing following files:
Here you can edit default cwp admin ports 2030,2031,2086,2087
to get Line number us this command
don't forget that you need to add your new ports in CSF Firewall and restart cwpsrv using this command.
For user panel you can edit this file
/usr/local/cwpsrv/conf.d/users.conf
Note that these changes are not recommended as update can overwrite them.
Here you can edit default cwp admin ports 2030,2031,2086,2087
Code: [Select]
nano /usr/local/cwpsrv/conf/cwpsrv.confto get Line number us this command
Code: [Select]
grep -n listen /usr/local/cwpsrv/conf/cwpsrv.confdon't forget that you need to add your new ports in CSF Firewall and restart cwpsrv using this command.
Code: [Select]
sh /scripts/restart_cwpsrvFor user panel you can edit this file
/usr/local/cwpsrv/conf.d/users.conf
Note that these changes are not recommended as update can overwrite them.
1459
Addons / Re: LOG PER DOMAIN or SUB DOMAIN
« on: July 05, 2014, 10:10:35 AM »
you can update apache vhost template in CWP
1460
Installation / Re: Install Good Websites Bad
« on: July 04, 2014, 04:55:52 PM »
use this link for server check
http://centos-webpanel.com/contact
http://centos-webpanel.com/contact
1461
How to / how to change memory_limit in php.ini
« on: July 02, 2014, 12:41:27 AM »
how to change memory_limit in php.ini ?
With CWP this is very simple:
go to menu --> PHP Settings --> PHP Simple Editor
here you can edit sa view mostly used settings from php.ini file.
Mostly used settings are:
memory_limit
upload_max_filesize
post_max_size
max_execution_time
display_errors
date.timezone (change php time zone)
With CWP this is very simple:
go to menu --> PHP Settings --> PHP Simple Editor
here you can edit sa view mostly used settings from php.ini file.
Mostly used settings are:
memory_limit
upload_max_filesize
post_max_size
max_execution_time
display_errors
date.timezone (change php time zone)
1462
How to / how to rebuild all apache virtual hosts
« on: July 02, 2014, 12:13:09 AM »
how to rebuild all apache virtual hosts at once?
1. Edit Apache vHosts Template according to your needs (default is fine) | Path: Apache Settings --> Apache vHosts Template
2. Check your server shared ip and apache port which you want to use. | Path CWP Settings --> Edit Settings
3. go to menu Apache Settings --> Rebuild Apache vHosts , check all details and click on "Rebuild All Apache vHosts" button.
once all is done check output and if apache started without any errors.
that is it!
1. Edit Apache vHosts Template according to your needs (default is fine) | Path: Apache Settings --> Apache vHosts Template
2. Check your server shared ip and apache port which you want to use. | Path CWP Settings --> Edit Settings
3. go to menu Apache Settings --> Rebuild Apache vHosts , check all details and click on "Rebuild All Apache vHosts" button.
once all is done check output and if apache started without any errors.
that is it!
1463
Installation / Re: BIND DNS Server not starting
« on: July 01, 2014, 05:33:29 AM »
paste your dns zones here
1465
PHP / Re: cc: Internal error: Killed (program cc1)
« on: June 30, 2014, 12:34:27 AM »
looks like memory issue, you will need to have at least 512MB ram + SWAP for PHP compiler
1466
How to / how to check my current MySQL root password
« on: June 29, 2014, 07:55:00 AM »
how to change my current MySQL root password
Go to phpMyAdmin --> Users Tab
- Click on Edit Privileges for root user
- go to Change password section --> Generate a New Password and click on the Go button.
Now you need to set this new password in the configuration files.
You can use this command from shell:
and edit also this file
To check the password you the instructions bellow.
You can use this command from shell:
or this one
Go to phpMyAdmin --> Users Tab
- Click on Edit Privileges for root user
- go to Change password section --> Generate a New Password and click on the Go button.
Now you need to set this new password in the configuration files.
You can use this command from shell:
Code: [Select]
nano /root/.my.cnfand edit also this file
Code: [Select]
nano /usr/local/cwpsrv/htdocs/admin/include/db_conn.phpTo check the password you the instructions bellow.
You can use this command from shell:
Code: [Select]
grep password /root/.my.cnfor this one
Code: [Select]
grep db_pass /usr/local/cwpsrv/htdocs/admin/include/db_conn.php
1467
How to / how to secure CentOS server using CWP features
« on: June 29, 2014, 07:43:20 AM »
how to secure CentOS server using CWP features
1. Enable CSF Firewall (in CWP.root in security menu you have CSF Firewall)
2. Change SSH port
3. Enable ModSecurity with OWASP security rules
4. Use only random generated passwords
How to enable CSF Firewall
In your CWP menu go to Security --> CSF Firewall and click on firewall enable
How to change SSH port
In your CWP menu go to Services Config --> SSH Configuration
now replace #22 with eg. 8404 and restart ssh server on index page of the CWP
You will need to add this port also in CSF Firewall
1. go to Security --> CSF Firewall --> Firewall Configuration
2. replace TCP_IN and TCP_OUT port 22 with your port
3. restart CSF Firewall
cut from configuration
How to Install ModSecurity with OWASP security rules
In your CWP menu go to Security --> Mod Security and click on Install Mod Security
Use only random generated passwords
One of the most important things is to ALWAYS use random generated passwords with length 8+ characters.
CWP also has built in random password generator which will generate random password for each new account on creation.
One of best tools for that is here:
https://www.random.org/passwords/
Random passwords needs to be used for all public services like:
- CMS applications like Wordpress admin user
- FTP Passwords
- Email Account Passwords
- Account passwords
... and any other available on the internet
1. Enable CSF Firewall (in CWP.root in security menu you have CSF Firewall)
2. Change SSH port
3. Enable ModSecurity with OWASP security rules
4. Use only random generated passwords
How to enable CSF Firewall
In your CWP menu go to Security --> CSF Firewall and click on firewall enable
How to change SSH port
In your CWP menu go to Services Config --> SSH Configuration
now replace #22 with eg. 8404 and restart ssh server on index page of the CWP
You will need to add this port also in CSF Firewall
1. go to Security --> CSF Firewall --> Firewall Configuration
2. replace TCP_IN and TCP_OUT port 22 with your port
3. restart CSF Firewall
cut from configuration
Code: [Select]
# Allow incoming TCP ports
TCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995,2030,2031"
# Allow outgoing TCP ports
TCP_OUT = "20,21,22,25,53,80,110,113,443,2030,2031"How to Install ModSecurity with OWASP security rules
In your CWP menu go to Security --> Mod Security and click on Install Mod Security
Use only random generated passwords
One of the most important things is to ALWAYS use random generated passwords with length 8+ characters.
CWP also has built in random password generator which will generate random password for each new account on creation.
One of best tools for that is here:
https://www.random.org/passwords/
Random passwords needs to be used for all public services like:
- CMS applications like Wordpress admin user
- FTP Passwords
- Email Account Passwords
- Account passwords
... and any other available on the internet
1468
How to / how to create new user account on CentOS Web Panel
« on: June 29, 2014, 07:22:12 AM »
how to create new user account on CentOS Web Panel [CWP]
1. Login to your CWP.root (Admin Area)
2. Click on User Accounts
3. Click on New Account (Create a New Account)
4. Fill new account form (Domain,Username, Password, Package, Email address, Backup)
Account Creation Will do the following
- Create New Account with shell disabled
- Add Configuration for a domain in apache config file (suPHP,suExec, Domain path)
- Create public_html folder (used for uploading public scripts)
- install default template (index.html file)
- restart/reload apache configuration
- Create and reload DNS zone for a domain
Now you can upload your files using ftp login details of the account.
suPHP requires following permissions
Folders: 755
Files: 644
1. Login to your CWP.root (Admin Area)
2. Click on User Accounts
3. Click on New Account (Create a New Account)
4. Fill new account form (Domain,Username, Password, Package, Email address, Backup)
Account Creation Will do the following
- Create New Account with shell disabled
- Add Configuration for a domain in apache config file (suPHP,suExec, Domain path)
- Create public_html folder (used for uploading public scripts)
- install default template (index.html file)
- restart/reload apache configuration
- Create and reload DNS zone for a domain
Now you can upload your files using ftp login details of the account.
suPHP requires following permissions
Folders: 755
Files: 644
1469
Installation / Re: BIND DNS Server not starting
« on: June 29, 2014, 05:07:12 AM »
check that you have A records for your nameservers if you use them
In DNS zone floridainet.com add ns1 and ns2 records.
In DNS zone floridainet.com add ns1 and ns2 records.
1470
Apache / Re: How I configure my web site?
« on: June 28, 2014, 11:57:29 AM »
if you create new user using this functions in the CWP "Create New Account" this will automaticly install user and add public_html folder.
after this user s created all you need to do is upload your website.
follow this example
http://forum.centos-webpanel.com/aplications/how-to-install-wordpress-to-linux-server/
after this user s created all you need to do is upload your website.
follow this example
http://forum.centos-webpanel.com/aplications/how-to-install-wordpress-to-linux-server/
