Setting message size in webmail
Message size limit is usually not specified in exim. Its by default 50M.
You can set message size limit to, say 60M, in /etc/exim.conf as
message_size_limit = 60M
This may not work when sending mail using webmail. Then, you need to set message size for webmail too.
In webmail, by default message size limit is 2M. You can set it to, say 60M, in /usr/local/cpanel/etc/neomail.conf as
$attlimit = 60;
That’s it.
Sharing drives using Remote Desktop Connection
To access drives of another server using Remote Desktop Connection do the following :
1. Click Start >> All Programs >> Accessories >> Communications >> Remote Desktop Connection 2. Enter the IP of the server to which you want to have connection in the box near 'Computer'. 3. Options >> Local Resources tab 4. Under 'Local Devices' click 'Disk Drives' >> Connect 5. Click 'Ok' if you get the warning prompt.
When you click connect all the information is stored in a file Default.rdp.
In this way you can transfer files very easily from one server to another server as you are doing in a single server.
Just Copy, then Paste.
Unique visits in stats
The statistics softwares like Awstats and Google Analytics show “unique visits”. What is this unique visit ?
In an absolute sense, you could define a “unique” as a visit to the site (and nothing more) that never occurred before.
The part “that never occurred before” would present some concern for the analysis because it would need to have a history of previous visits to reference. Something that could be impractical from a storage perspective. The other problem is how you would clearly identify a “unique”, except by way of a cookie which is in itself problematical considering that cookies can be turned off or eradicated before subsequent visits.
Awstats measures “unique” visit as : A unique visitor is a host that has made at least 1 hit on 1 page of your web site during the current period shown by the report. If this host make several visits during this period, it is counted only once.
Google Analytics tracks it a different way. In Analytics,the “initial session by a user during any given date range is considered to be a unique visit”. Any additional visits during the selected time period are counted as visits, but not as unique visits.
Php error
You may get the error that is given below while accessing a php page.
Warning: require() [function.require]: URL file-access is disabled in the server configuration in /home/username/public_html/index.php on line 6 Warning: require(http://www.domain.com/includes/header.php) [function.require]: failed to open stream: no suitable wrapper could be found in /home/username/public_html/index.php on line 6 Fatal error: require() [function.require]: Failed opening required 'http://www.domain.com/includes/header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/public_html/index.php on line 6
Create a php.ini file in all the directories of the domain with following lines:
allow_url_include = On allow_url_fopen = On
Otherwise, set it globally in the server.
Thats it. This should work.
Unable to login to PhpMyAdmin
If you are not able to login to PhpMyAdmin using root or user’s login details you can try doing these options :
1. Give privileges to ‘root’ user in mysql.
mysql --user=root mysql -p mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'xxxx' WITH GRANT OPTION; mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'xxxx' WITH GRANT OPTION;
2. Give privileges to customer’s ‘username’ in mysql.
mysql> GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost' IDENTIFIED BY 'xxxx' WITH GRANT OPTION; mysql> GRANT ALL PRIVILEGES ON *.* TO 'username'@'%' IDENTIFIED BY 'xxxx' WITH GRANT OPTION;
3. If both do not allow you to login in PhpMyadmin, check the conf file of phpMyadmin, /var/www/html/phpMyAdmin/config.inc.php. Check the line
$cfg['Servers'][$i]['user'] = 'phpmyadminusername'; $cfg['Servers'][$i]['password'] = 'xxxxx';
Give privileges to ‘phpmyadminusername’ in mysql.
mysql> GRANT ALL PRIVILEGES ON *.* TO 'phpmyadminusername'@'localhost' IDENTIFIED BY 'xxxx' WITH GRANT OPTION; mysql> GRANT ALL PRIVILEGES ON *.* TO 'phpmyadminusername'@'%' IDENTIFIED BY 'xxxx' WITH GRANT OPTION;
This should work.