Archive for the ‘Plesk’ Category

www.domain.com shows Default Plesk page – Windows

Wednesday, September 9th, 2009

* First check the DNS zone file for domain.com in Plesk -> Domains -> domain.com -> DNS and entry for www.domain.com is set correctly

* Disabled/Enabled the option for www in Plesk -> Domains -> domain.com -> Rename Domain -> Uncheck -> Save and repeat it by selecting the option again

* Next reconfigured the virtual host by running following command in DOS prompt of your VPS.

* cd %plesk_bin%

* websrvmng.exe –remove-vhost –vhost-name=domain.com

* websrvmng.exe –reconfigure-vhost –vhost-name=domain.com

* Make sure that host header with ‘www’ prefix is presented in the list of identities.IIS > Web Sites > domain.com > Right Click Properties > Web Site tab > Advanced ;if it’s missing then add it.

Plesk – Error Message When Logging In

Wednesday, August 26th, 2009

Product versions this article applies to:

* Plesk 7.6 for Windows

SYMPTOMS:

When you attempt to log in to Plesk Panel you get a message:
——————-

The file filename.php is part of Plesk distribution. It cannot be run outside of Plesk environment.

——————-
CAUSE:

A *.php file can not be decrypted by Plesk engine. A *.php file can not be decrypted if:

1. Plesk key installed is not valid. It means that you could install key for Plesk for Linux not for Windows or something else.
2. Plesk php environment is corrupt.

RESOLUTION:

To fix the first case you need to do the following:

1. Close your browser. Or just make sure that your browser does not show cached web pages.

2. Stop Plesk Control Panel Service.

3. Remove all files from within %plesk_dir%PrivateTemp

4. Reset current Plesk to default PLSK.00000000.0000. You can do it using defpkey.reg attached to this article.

5. Start Plesk Control Panel Service.

6. Re-upload valid Plesk key straight via Plesk Panel. You can upload PLSK.XXXXXXXX.XXXX.exe key.

To fix the second case you need to do the following:

Switch Plesk web server to another.

If IIS is used as Plesk web server switch it to Apache:

%plesk_bin%\reconfigurator.exe –switch-plesk-web-server –new-provider=apache

If Apache is used as Plesk web server switch it to IIS:

%plesk_bin%\reconfigurator.exe –switch-plesk-web-server –new-provider=iis

Check how you Panel works. If it shows the same message it means that PHP files were changed. In this case you need to ran Plesk Repair.

Plesk – Access Denied To cmd.exe

Wednesday, August 26th, 2009

When logging into Plesk you receive the following errror:

DefPackageMng() constructor failed: defpackagemng failed: Access is denied. (Error code 5) at CreateProcess ‘C:\WINDOWS\system32\cmd.exe /c “”C:\Program Files\SWsoft\Plesk\admin\bin\defpackagemng.exe” –get”‘
at execUtil C:\Program Files\SWsoft\Plesk\admin\bin\defpackagemng.exe –get on C:\Program Files\SWsoft\Plesk\admin(PleskSrvClient::execUtil line 420)
at execute console command –get(vconsoleapp::start line 128)
at execute “C:\Program Files\SWsoft\Plesk\/admin/bin/defpackagemng” –get(vconsoleapp::run line 138)
———————- Debug Info ——————————-
0: C:\Program Files\SWsoft\Plesk\admin\plib\class.DefPackageMng.php:14 psaerror(string “DefPackageMng() constructor failed: defpackagemng failed: Access is denied. (Error code 5) at CreateProcess ‘C:\WINDOWS\system32\cmd.exe /c “”C:\Program Files\SWsoft\Plesk\admin\bin\defpackagemng.exe” –get”‘
at execUtil C:\Program Files\SWsoft\Plesk\admin\bin\defpackagemng.exe –get on C:\Program Files\SWsoft\Plesk\admin(PleskSrvClient::execUtil line 420)
at execute console command –get(vconsoleapp::start line 128)
at execute “C:\Program Files\SWsoft\Plesk\/admin/bin/defpackagemng” –get(vconsoleapp::run line 138)”)
1: C:\Program Files\SWsoft\Plesk\admin\plib\class.Components.php:171 defpackagemngmaker()
2: C:\Program Files\SWsoft\Plesk\admin\plib\class.Components.php:97 components->getcomponetslist(boolean true)
3: C:\Program Files\SWsoft\Plesk\admin\htdocs\login_up.php3:610 components->componentupdate()

It appears the reason of the problem was in denied rights to C:WINDOWSsystem32cmd.exe file to SYSTEM account. You can give it FULL CONTROLL to SYSTEM account to that file and after that was able to log into Plesk.

Go into the permissions screen for this file and select ‘Full Access’ for the ‘System’ User. Once this is done, plesk should work correctly.

But the situation is not clear. We don’t know was it done manually or viruses did that. Windows Update could have also caused the above issue as well. You can test your system for viruses using the following utility:

http://download.drweb.com/drweb+cureit/

The above could have possibly been caused by the following virsues:

BackDoor.SHELLBOT
Backdoor.HacDef.100
Backdoor.WinShell.50
Trojan.Aphex.71

Plesk Windows – Reseting the MySql Password

Wednesday, August 26th, 2009

Once you have logged into the server you via Remote Desktop you will need to take the following steps:

1. Go to ‘Start >> Run’ and type in ’services.msc’.

2. Now you will need to look for ‘MySql Server’ In the Services window.

3. Right click on ‘MySql Server’ and go to ‘Properties’.

4. Once you have copied the location of the ‘my.ini’ file like the following example you will need to go to ‘Start >> Run’ and then enter in the location of the ‘my.ini’ file.

C:\Program Files\SWsoft\Plesk\Databases\MySQL\Data\my.ini

5. Under the ‘[mysqld]‘ section in the ‘my.ini’ file you will need to add the following line:

skip-grant-tables

6. Restart ‘MySql Server’.

7. Then you will need to login to MySql:

cd C:\Program Files\SWsoft\Plesk\MySQL\bin

C:\Program Files\SWsoft\Plesk\MySQL\bin>mysql -u admin
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.1.18-nt

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> use mysql;
mysql> UPDATE mysql.user SET Password=PASSWORD(’newpwd’) WHERE User=’root’;
mysql> FLUSH PRIVILEGES;
mysql> quit;

8. Then you will need to remove ’skip-grant-tables’ from the my.ini file and restart ‘MySql’ after resaving the my.ini file.

How to change SMTP port in Plesk Windows

Tuesday, August 25th, 2009

Open REGEDIT

Go to…

For 64bit machines [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mail Enable\Mail Enable\Connectors\SMTP]

For 32bit machines [HKEY_LOCAL_MACHINE\SOFTWARE\Mail Enable\Mail Enable\Connectors\SMTP]

Find “Listen Port” Change the value “DECIMAL”

And change it to new port, and Reboot the Plesk SMTP Connector Service…

NOTE : If firewall is enabled then make sure new SMTP port is opened.

export.php was not found while backing up databases through phpmyadmin – Plesk

Friday, August 21st, 2009

If you see following error while backing up databases through phpmyadmin (this happens with large database)
————–
can’t find the file at https://xx.xx.xx.xx:8443/domains/databases/phpMyAdmin/export.php.
————–
Solution :

You can try to increase the value memory_limit in /usr/local/psa/admin/conf/php.ini to higher value and restart
Plesk CP after that.

# cat /usr/local/psa/admin/conf/php.ini | grep memory_limit
memory_limit = 128M

Set it to 512M for example and restart PSA service.

Enable register_globals for a domain – Plesk Windows

Wednesday, August 19th, 2009

How to enable register_globals for a domain – Plesk Windows

Solution :

Start – Run – Regedit – go to “HKLM\SOFTWARE\PHP\Per Directory Values\”.

Then create keys (If you site folder is default “C:\Inetpub\vhosts\domain.com”:
“C” – “Inetpub” – “vhosts” – “domain.com” where domain.com should be replaced with the real domain name on which you need to set register_globals to “On” and change this value manually, then add string value “register_globals” and set string “on”.

Image is attached to message :

How to fix Apache error (28)No space left on device

Tuesday, August 18th, 2009

On some occasions apache will just abruptly fail, and become stopped, failing to restart with an error message like

————————————-
[Tue Aug 18 16:34:45 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Tue Aug 18 16:34:45 2009] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Tue Aug 18 16:38:46 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Tue Aug 18 16:38:46 2009] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
————————————-

Checking your disk shows that you have plenty of space. The problem is that apache didn’t shut down properly, and it’s left myriads of semaphore-arrays left, owned by my apache-user. Run:-

# ipcs -s | grep nobody

Removing these semaphores immediately should solve the problem and allow apache to start.

# ipcs -s | grep nobody | perl -e ‘while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}’


Awstats not working after Plesk upgrade to v8.6

Friday, August 7th, 2009

If awstats are not working after Plesk upgrade to v8.6 then download updated modules SiteAppStatistics.dll, statistics.exe and copy it to %plesk_bin%. Also make sure to backup old modules before copying.

Next update the stats by running the command -

“%plesk_bin%\statistics.exe” –all


How to enable Innodb as default storage engine

Thursday, November 20th, 2008

How to enable Innodb as default storage engine ?

Solution :

Just edit your /etc/my.cnf file and look for this line:

skip-innodb

If such an entry exists, remove or comment out the entry

#skip-innodb

Next make the storage_engine variable to Innodb by adding following under [mysqld] section.

default-storage_engine = InnoDB
save the file, and restart mysql:

Restart mysql service