Domain Login error The trust relationship between this workstation and the primary domain failed.

error1x

When your got error message said “the trust relationship between this workstation and the primary domain failed” while your trying to login your work station. you can trying the following method to fix the error.

Server side:

Go to Active Directory Users and Computers, local the computer and reset the account.

Local computer:

First, Login with administrator account first.

Second, deleted the old account name and folder under c:\User\ . (do not deleteĀ  the local admin account and your domain admin account)

By now your system should be able to login.

Faster:

 

  1. Start | Run
  2. sysdm.cpl
  3. switch to register “Advanced”
  4. In the “User Profiles” section click on “Settings”
  5. The “User Profiles” dialog is displayed
  6. Select the account. Hit Delete.

However, if you still have problem to login to the server, you will need to remove the registry from the local computer.

go to regedit and run with admin account.

Navigate to “HKL_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\ProfileList”

Click the sub-key that corresponds with the profile you deleted and right click and delete it.

OSCommerce ULTIMATE Seo Urls 5 overwrite url in Chinese

There are only 2 files need to adjust.

  1. change .htaccess from

RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-c-([0-9_]+).html$ index.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-m-([0-9]+).html$ index.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-pi-([0-9]+).html$ popup_image.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-pr-([0-9]+).html$ product_reviews.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA]
# Articles contribution
RewriteRule ^([a-z0-9/-]+)-t-([0-9_]+).html$ articles.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-au-([0-9]+).html$ articles.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-a-([0-9]+).html$ article_info.php [NC,L,QSA]
# Information pages
RewriteRule ^([a-z0-9/-]+)-i-([0-9]+).html$ information.php [NC,L,QSA]
# Links contribution
RewriteRule ^([a-z0-9/-]+)-links-([0-9_]+).html$ links.php [NC,L,QSA]
# Newsdesk contribution
RewriteRule ^([a-z0-9/-]+)-n-([0-9]+).html$ newsdesk_info.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-nc-([0-9]+).html$ newsdesk_index.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-nri-([0-9]+).html$ newsdesk_reviews_info.php [NC,L,QSA]
RewriteRule ^([a-z0-9/-]+)-nra-([0-9]+).html$ newsdesk_reviews_article.php [NC,L,QSA]

 

to

 

RewriteRule ^(.*)-p-([0-9]+).html$ product_info.php [NC,L,QSA]
RewriteRule ^(.*)-c-([0-9_]+).html$ index.php [NC,L,QSA]
RewriteRule ^(.*)-m-([0-9]+).html$ index.php [NC,L,QSA]
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php [NC,L,QSA]
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php [NC,L,QSA]
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA]
# Articles contribution
RewriteRule ^(.*)-t-([0-9_]+).html$ articles.php [NC,L,QSA]
RewriteRule ^(.*)-au-([0-9]+).html$ articles.php [NC,L,QSA]
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php [NC,L,QSA]
# Information pages
RewriteRule ^(.*)-i-([0-9]+).html$ information.php [NC,L,QSA]
# Links contribution
RewriteRule ^(.*)-links-([0-9_]+).html$ links.php [NC,L,QSA]
# Newsdesk contribution
RewriteRule ^(.*)-n-([0-9]+).html$ newsdesk_info.php [NC,L,QSA]
RewriteRule ^(.*)-nc-([0-9]+).html$ newsdesk_index.php [NC,L,QSA]
RewriteRule ^(.*)-nri-([0-9]+).html$ newsdesk_reviews_info.php [NC,L,QSA]
RewriteRule ^(.*)-nra-([0-9]+).html$ newsdesk_reviews_article.php [NC,L,QSA]

 

Second, under the

/catalog/includes/modules/ultimate_seo_urls5/main/validator.php

Find:

Usu_Main::i()->setVar( 'request_compare_in', remove_session_id( htmlspecialchars_decode( Usu_Main::i()->getVar( 'original_request_uri' ) ) ) );

replace

Usu_Main::i()->setVar( 'request_compare_in', remove_session_id( htmlspecialchars_decode( urldecode( Usu_Main::i()->getVar( 'original_request_uri' ) ) ) ) );

addon

http://addons.oscommerce.com/info/6768

 

Plesk 12.5 setup mail setup on outlook and iPhone

Plesk 12.5 setup outlook so far only be able to setup with pop mail

under server info

incoming mail server: yourdomain.com

outgoing mail server: yourdomain.com

check require logon using spa,

inside more setting/ advanced

incoming 110

outgoing smtp 587 NOTE: the encrypted connection need to change to tls

OUTGOING SERVER

check my outgoing server require authentication.

log on using

your user and pass.

done

iPhone setup

need to go thought all pop setup. the setup will give some error while configuration the email.

after that change the smtp server to 587 under advanced setting.

 

done

how to upgrade openssl

Upgrading OPENSSL on RedHat 7.3 (Simple Guide)
==============================================

* Download latest openssl AND openssl-engine from :

     http://www.openssl/org -OR-
     http://openssl.planetmirror.com

* Copy all *.tar.gz to /tmp

* Building openssl-0.9.6g

     cd /tmp
     tar -zxvf openssl-0.9.6g.tar.gz
     cd openssl-0.9.6g.tar.gz
     ./config shared
     make
     make test
     make install

* Building openssl-engine.0.9.6g

     cd /tmp
     tar -zxvf openssl-engine-0.9.6g.tar.gz
     cd openssl-engine-0.9.6g.tar.gz
     ./config shared
     make
     make test
     make install

* Remove old openssl rpm 

     rpm --erase --nodeps openssl

* Link new files

     cd /usr/lib
     rm libcrypto.so
     rm libcrypto.so.1
     rm libcrypto.so.2
     rm libssl.so
     rm libssl.so.1
     rm libssl.so.2
     ln -s /usr/local/ssl/lib/libcrypto.so libcrypto.so
     ln -s /usr/local/ssl/lib/libcrypto.so libcrypto.so.1
     ln -s /usr/local/ssl/lib/libcrypto.so libcrypto.so.2
     ln -s /usr/local/ssl/lib/libssl.so libssl.so
     ln -s /usr/local/ssl/lib/libssl.so libssl.so.1
     ln -s /usr/local/ssl/lib/libssl.so libssl.so.2

     ln -s /usr/local/ssl/include/ /usr/include/ssl

     cd /usr/include
     rm -rf openssl
     lb -s /usr/local/ssl/include/openssl openssl     

* Rerun ldconfig

     cd /etc
     rm ld.so.cache

     vi ld.so.conf

        - add /usr/local/ssl/lib
        - add /usr/local/lib       <-- optional

     ldconfig

PCI Compliance for FTP Supports Clear Text Authentication Fix

login to ssh and locate the file
/etc/proftpd.conf
and add the following line to the file

<IfModule mod_tls.c>
        TLSEngine on
        TLSLog /var/log/proftpd/proftpd.tls.log
        TLSProtocol TLSv1
        TLSVerifyClient off
        TLSRequired off

        #Certificates
        TLSRSACertificateFile /etc/exim.cert
        TLSRSACertificateKeyFile /etc/exim.key
        #TLSCACertificateFile /etc/ftpd/root.cert.pem

        TLSCipherSuite HIGH:MEDIUM:+TLSv1:!SSLv2:+SSLv3
</IfModule>

restart your ftp server. or reboot your server

How to backup and restore large mysql database

Since my shopping cart getting bigger and bigger, backup become one of the big issues with my current shopping cart. So, I decided using ssh to directly backup the database.

First, you need to has ssh access and using putty log into the server.

second, local the folder that allow you to using you ftp program to download the file.

third, run the following command

$ mysqldump --add-drop-table -u db_username -p db_name > mybackup.sql

db_username = database username

db_name = database name

mybackup.sql = the backup file name.

if you want to gzip your file, follow the following simple
mysqldump –opt -u [user_name] -p [database_name] | gzip > [backup_file].dump.gz

restore database command as follow

$ mysql -u username -p databasename < database.sql

 

I think it is easier if you have ssh to backup and using wget command download from one server to the other to run the backup.

How to upgrade your openssl with centos under vps

Login to your server root
and type in the following command
* cd /usr/local/src
* wget -N http://www.openssl.org/source/openssl-1.0.0c.tar.gz
* tar -xzvf openssl-1.0.0c.tar.gz 
* cd openssl-1.0.0c
* ./config
* make
* make install
* alias cp=cp
* cp /usr/local/ssl/bin/openssl /usr/bin/openssl
* cd /usr/local/ssl/include
* ln -s /usr/local/ssl/include/openssl openssl


This installation is work under 1and1 vps centos environment.