Saturday, 30 September 2017

How to add Google Adsense Ads to OSclass websites?

go to admin page > Appearance > Theme settings

Monday, 18 September 2017

FireBug decommissioned, FireBug alternatives

FIreBug decommissioned, FireBug alternatives: FireFox Developer Edition, it is similar powerful as FireBug
just click the wrench button at top right of page, you can see all developer tools.

Monday, 28 August 2017

How to install dig on CentOS

yum -y install bind-utils

How to find your public IP on Linux


Run command line:
dig TXT +short o-o.myaddr.l.google.com @ns1.google.com
or
dig +short myip.opendns.com @resolver1.opendns.com

Sunday, 6 August 2017

How to Install ImageMagick on CentOS 7 & RHEL


1. Install Required Packages

# yum install gcc php-devel php-pear


2. Install ImageMagick
# yum install ImageMagick ImageMagick-devel


3. Install ImageMagick PHP Extension

# pecl install imagick
# echo "extension=imagick.so" > /etc/php.d/imagick.ini


4. Restart Apache and Check Extension

# systemctl restart httpd

Saturday, 5 August 2017

OSCLASS 3.5.3 OC-ADMIN settings media HTTP error 500 on CENTOS 7 PHP 5.4.16


check if php-gd installed:(image support)
rpm -qa | grep php
if not:
yum install php-gd
then restart httpd:
systemctl restart httpd

Wednesday, 2 August 2017

CentOS 7 dovecot 2.2.10 postfix 2.10.1 squirrel web mail problems and solutions


problems and solutions:
# dovecot --version
2.2.10
# postconf -d | grep mail_version
mail_version = 2.10.1
milter_macro_v = $mail_name $mail_version
# uname -a
Linux xxxxxx 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

1. can not login to squirrel web mail: permission denied
error connecting to IMAP server: localhost. 13 : Permission denied
setsebool -P httpd_can_network_connect on #save change permanent
2. squirrel web mail can not send/receive email:
Aug 2 16:19:49 localhost postfix/smtpd[5959]: warning: SASL: Connect to private/auth failed: No such file or directory
Aug 2 16:19:49 localhost postfix/smtpd[5959]: fatal: no SASL authentication mechanisms

find this part(it is include in "service auth" block) in /etc/dovecot/conf.d/10-master.conf , uncomment the lines and change to the following.

unix_listener /var/spool/postfix/private/auth {
mode = 0666
user = postfix
group = postfix
}

in /etc/dovecot/conf.d/10-auth.conf:
change "auth_mechanisms = plain" to "auth_mechanisms = plain login external", to support SASL, we need to add external to supported auth_mechanisms

then restart dovecot: systemctl restart dovecot
3. still can not receive email to info@tradebay.ca:
in /etc/aliases

change "info: postmaster" to "info: info", then restart dovecot: systemctl restart dovecot

Wednesday, 28 June 2017

Windows 10 too slow disk usage 100


Part one
MSI mode can be disabled for specific devices via the registry:

Check if you are running the inbox AHCI driver (StorAHCI.sys):

1)Open a command prompt with administrator privileges. Run in the command prompt window: devmgmt.msc
2)Under IDE ATA/ATAPI Controllers right-click on the AHCI controller node and select Properties. This node is usually called “Standard SATA AHCI Controller.”
3)Navigate to the driver tab and click Driver Details.
4)If you see “StorAHCI.sys” in the list, you are running the inbox driver.

Disable MSI for the controller in the registry:
5)In the same properties window opened in step 2, navigate to the Details tab and select Device instance path from the Property drop-down menu. Note this path.
6)Open the registry editor by typing regedit in the previously opened command prompt.
7)Navigate to: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Enum\PCI\ \Device Parameters\Interrupt Management\MessageSignaledInterruptProperties, where refers to the device instance path you noted in step 5.
8)Change the value of the MSISupported key from “1” to “0”.
If you don’t know which controller your boot device is attached to, repeat steps 5 through 8 for all AHCI controllers found under 2.

Reboot

Part two
Google Chrome:
In Google Chrome, go to Settings > Advanced > Privacy and security> use a prediction service to load pages more quickly
and untick it.

Part three
Skype:
Make sure you have exited Skype and it is not running in the taskbar (if it is running in the taskbar then quit it).
Open Windows Explorer and open the following folder:
"C:\Program Files (x86)\Skype\Phone\"
Now right click "Skype.exe" file and then click "Properties" and open the "Security" tab.
Click the "Edit" button and then highlight "ALL APPLICATION PACKAGES" and place a tick in the "Write" box.
Click "Apply" and then "OK" and then "OK" again

Search