Open / Close Pop Up window

The HEAD of the Page put the follow script

<script type=”text/javascript”>
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
</script>

Open window Script

<a  href="#" onmousedown="MM_openBrWindow('page_path.php','gallery','scrollbars=yes,resizable=yes,width=600,height=500')" >Open Window</a>

Close window Script (inside page_path.php )

<a href="#" onclick="javascript:self.close(); ">Close Window</a>

Close window popup and reload parent Page (inside page_path.php )

<a href="#" onclick="window.opener.window.location.reload(true);window.self.close()">Close Window</a>

Get the following error when try to use PHPMyAdmin in the Plesk CP: “#1045 – Access denied for user ‘pma_xxxxxxx’@’localhost’ (using password: YES)”

RESOLUTION

Make sure that Plesk PHPMyAdmin user exists in mysql.user table and has right password and privileges. Username and password can be found in $PRODUCT_ROOT_D/admin/htdocs/domains/databases/phpMyAdmin/config.inc.php (Note, since Plesk 8.1 the file is $PRODUCT_ROOT_D/admin/htdocs/domains/databases/phpMyAdmin/libraries/config.default.php), for example: Continue reading “Get the following error when try to use PHPMyAdmin in the Plesk CP: “#1045 – Access denied for user ‘pma_xxxxxxx’@’localhost’ (using password: YES)””

Atomic ASL linux setup

I use Centos 5 and plesk 8.4.0, and i made:

1) wget http://3es.atomicrocketturtle.com/installers/atomic.sh
2) sh atomic.sh
3) nano /etc/yum.repos.d/CentOS-Base.repo
4)
[atomic]
name=Atomic Rocket Turtle – $releasever – Atomic PSA-Compatible RPMS
baseurl=http://www.atomicorp.com/channels/atomic/centos/$releasever/$basearch

[plesk]
name=Plesk Server Administrator
baseurl=http://www.atomicorp.com/channels/plesk/latest/centos/$releasever/$basearch
gpgcheck=0

5) yum update
6) restart

At plesk webadmin, plesk version is psa v8.4.0_build84080514.18 os_CentOS 5

How to protect PLESK?

You could install:

Firewall: CSF, APF, ASL
Protection Tools: MOD Security, MOD Evasive, fail2ban, BFD

Importent: Keep your Software (Plesk, PHP, WordPress …) uptodate. Running PHP in safe mode (could help maybe)!

The best thing is to buy Atomic Secured Linux

It is more than a Firewall! Its a full package of security and always uptodate! I love it!

Just install ASL and you are done

Introduction to Functions

At first glance, functions can be mind-boggling. At the same time, however, they are extremely useful. They help programmers around the world to make their code simpler, faster, and more readable and understandable. That is why it’s important for you to come to grips with the multitude of abilities that functions give you. With that said, lets start with a simple example of what a function looks like: Continue reading “Introduction to Functions”

Nameserver setup on 2 Plesk servers

http://forum.swsoft.com/showthread.php?t=38404&highlight=chroot

1.) MySQL Access Rights

On your Plesk server:
Create a MySQL user eg.: secondarydns
Using phpmyadmin, grant this user the SELECT option only for the table domains of the psa database.
Also for maximum security you should set the hostname from which this user will logon. Continue reading “Nameserver setup on 2 Plesk servers”