affiliate_link

It's good to be back!

Nice to be here again! I still do the same old stuff but this time, I have been dealing with more complex tasks. I am still in the whole network operations center world, it's company offering cloud-based solutions for contact centers worldwide. The next few days, I should be able to share more information on the topics I usually write about before. Plesks, Linux, Windows, name it. And I might be able to add more stuff about the telecommunications world. Exciting, eh?



Okay so given that you have already installed the Internet Explorer Add-on, the windows media player still does not show up. A possible answer for this is maybe due to Windows Media Player 11 not being the default media player.

To set it to be the default media player, follow this steps from the Microsoft KB:

1. Open the Control Panel and navigate to Add/Remove Programs.
2. From the Add/Remove Programs, click Set Program Access and Defaults.
3. In the Choose a configuration box, double-click Custom.
4. In the Choose a default media player area, click Windows Media Player, and then click OK.

Hope this helps.

This happens when a website requires windows media player. It just shows an "x" whenever you try accessing the link.

There is two possible causes for this. Its either you haven't installed the Windows Media Player addon for IE8 or your default media player is not set to use WMP.

To install the Windows Media Player addon, navigate to the website that is having problem playing music or videos. A prompt should ask you if you want to run the addon.

Right click and click run add-on on all websites.


Click run when it prompts you the activex thingy.


That its. You should be able to see the windows media player.


Post will continue on part 2.


PHPIZE is a part of the PHP Development package. All you have to do is to login to your linux server, and execute:

yum -y install php-devel

And that's it. Installation should be complete in less than 5 minutes.

How to install Yum on VPS


Here's a quick how to in installing yum to your VPS. I don't know about you but Virtuozzo or the Parallels team told us that it should be included in the VPS template. I am running Virtuozzo version 4 and for some reason, yum isn't installed. You should be able to install it with a flick by trying out my solution:

Linux distro: Centos 4.4

1. Login to your box thru ssh using any of your favorite ssh clients. I used mRemote.

2. Create the directory yum under /usr/src. (Optional)

3. Download the following files using the wget tool:

a. python-urlgrabber-2.9.6-2.noarch.rpm
b. python-sqlite-1.1.6-1.i386.rpm
c. python-elementtree-1.2.6-4.i386.rpm
d. python-urlgrabber-2.9.6-2.noarch.rpm
e. sqlite-3.2.2-1.i386.rpm

Usage: wget
Sample: wget http://mirror.centos.org/centos-4/4/os/i386/CentOS/RPMS/python-2.3.4-14.7.el4.i386.rpm

4. Run this command:

# rpm -Uvh *rpm

5. Download yum:

a. centos-yumconf-4-4.3.noarch.rpm
b. yum-2.4.0-1.centos4.noarch.rpm
c. yum-metadata-parser-1.0-8.el4.centos.i386.rpm

6. Proceed with item no.4.

You should be able to see a successful installation afterwards.

For an updated version of the yum dependencies and yum itself, visit Centos' repository. And speaking of dependencies, other's might encounter a dependency issue when installing components manually. Do drop by and post a quick comment and we'll try to sort things out.

Have a nice yum day!

Downloads: Wordpress 2.7


Wordpress 2.7 is now out. Better upgrade because this release contains new security patches plus a shiny, new Dashboard and other added features. Do checkout http://wordpress.org/ for more infos'.


Download the latest maintenance release from wordpress.org.


Well what a week. Thank you readers for dropping by at my tech blog once in a while. I know i don't frequently update it due to lack of time but here I am, ready to post new ideas again.

Yesterday, we ran into a "not so difficult" problem, at all. Here's the story.

We need to install the Sitebuilder package since one of the clients need the application. We installed the Sitebuilder support using the Plesk updater. Installation successful as per Plesk but upon checking, still no sitebuilder support. Next step, we did an upgrade from Plesk 8.4 to Plesk 8.6. We got a prompt again saying that the upgrade was successful. Ok got it. But, after a few minutes, Plesk started acting really weird. We checked the status of the PSA service and here comes the real fiasco. We got an error of course:

psa dead but subsys locked


Oh not again. I happen to encounter this kind of problem on the http, vsftp etc daemons. But I can easily fix them by just restarting the machine or deleting the corresponding /var/lock/subsys file and then start the service again. I did this for a couple of times for the PSA service but to no avail, Plesk isn't just working! I looked at the logs and I just can't find any clues there.

Well, what we did is to email the Parallels Support team. We didn't got any answer overnight so we are feeling a bit hopeless about the case. The next morning, ideas are fresh and we started looking at the key answer to the problem.

/tmp/autoinstaller3.log

So yup. I looked into the updater logs and found this:

Trying to establish test connection... ERROR 1044 (42000): Access denied for user 'root'@'%' to database 'mysql'
Trying to establish test connection... ERROR 1044 (42000): Access denied for user 'root'@'%' to database 'mysql'
Trying to establish test connection... ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: N
O)
Trying to establish test connection... ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: Y
ES)
Trying to establish test connection... ERROR 1045 (28000): Access denied for user 'admin'@'localhost' (using password: N
O)
Trying to establish test connection... ERROR 1044 (42000): Access denied for user 'root'@'%' to database 'mysql'
Trying to establish test connection... Could not open required defaults file: /root/.my.cnf
Fatal error in defaults handling. Program aborted

ERROR while trying to establish test connection

Check the error reason(see log file:
/tmp/psa_8.6.0_cos4.build86080722.02_upgrade.090207.07.37.log), fix and try
again

Aborting...

error: %post(psa-8.6.0-cos4.build86080722.02.i586) scriptlet failed, exit
status 1

Attention! Your software might be inoperable.
Please, contact product technical support.



Unable to connect to Mysql? Duh?. FYI, the script looks into the .psa.shadow for the mysql password. But here's the dish. We can login into the mysql server using the password defined in the .shadow file. So how come we cannot run the upgrade without the creepy errors?

Per Parallels support, we we're running a "mixed" version of Plesk. Probably because of the failed upgrade.

Just in case you noticed this error, I stumbled into a knowledgebase entry regarding the /root/.my.cnf file.

SYMPTOMS:

Plesk upgrade or installation fails with the error in upgrade log:

Access denied for user 'admin'@'localhost' (using password: YES)\n")


RESOLUTION:

Make sure that there is no /root/.my.cnf file with MySQL password. Plesk uses environment variable to pass the password to MySQL server, but the .my.cnf file has greater priority and MySQL uses the password from the file. If it does not match, restoration fails.

Also, check that you are able to connect to MySQL from the command line with:


# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa


You should not have any .my.cnf file on the /root directory. Although I tried creating a symlink to /etc/my.cnf. But it didn't made any difference. The error for the missing .my.cnf was gone but we we're still not able to finish the upgrade.

SOLUTION

We replaced the admin password to a more simplier password.

Login into the mysql server. and then run this command:

UPDATE mysql.user SET Password=PASSWORD('password') WHERE User='admin';

and then

flush privileges;


Do not FORGET to update the /etc/psa/.psa.shadow file for the new password.

Then re-run the upgrade.

# cd /root/86/dist-rpm-CentOS-4.2-i386
# rpm -Uvh --force base/*.rpm opt/migration/*.rpm opt/backup/*.rpm


Finally, Plesk is now behaving perfectly fine! There you go. A complex problem with a really simple solution.

Hope this sheds a light to anyone out there having the same problem.

Current Mood: Fulfilled but exhausted.

Ish. A Saturday like Monday

Well what's your busiest day of the week?

I work 6 days a week and most of the time im busy. But for me, it's Saturday. I do automated backup of some of the system files but of course, the thing still needs supervision! But still loads of stuff needs to be done.

Saturday, Saturday and Saturday.

Good luck to me!

Current mood: Exhausted


When attempting to log into Plesk Control Panel the following error message is received:

DefPackageMng() constructor failed: defpackagemng failed: Access is denied.(Error code 5) at CreateProcess 'C:\\WINDOWS\\system32\\cmd.exe /c ""C:\\Plesk\\admin\\bin\\defpackagemng.exe" --get"' at execUtil C:\\Plesk\\admin\\bin\\defpackagemng.exe --get on C:\\Plesk\\admin(PleskSrvClient::execUtil line 420)at execute console command --get(vconsoleapp::start line 128) at execute C:\\Plesk\\/admin/bin/defpackagemng --get(vconsoleapp::run line 138)

RESOLUTION
Such error occurs when Plesk Control Panel web server service cannot access the C:\Windows\System32\cmd.exe ( C:\Windows\SysWOW64\cmd.exe on 64bit Windows version). This may happen when administrator has manually changes permissions to access the file. User SERVICE should have Read+Execute; Read on the file.

The following permissions should be set on cmd.exe :

- Administrators - Full Control
- System - Full Control
- Service - Read+Execute; Read
- Interactive - Read+Execute; Read

The file owner should also be administrator, otherwise it will not be possible to change these. File owner can be checked in file’s Properties, Security tab, Advanced button, Owner tab.

Illegitimate MSNBC.com News

Hot on the heels of the CNN Alerts: my custom alert email spam comes a new variant: msnbc.com: BREAKING NEWS spam.

The emails follow the same format as the CNN spam, with the link to the supposed featured story going to an unrelated third-party website which attempts to attack the users PC.

Read more on SecurityWatch.


SYMPTOMS
It's impossible to access website - authorization prompt appears.
CAUSE
There may be several reasons of this issue. To determine them, the following conditions need to be checked:

1. There should be read + execute permissions for IUSR_ on the domain index page.

2. Root directory for the domains can be under Plesk protection.

3. Passwords for system user and IIS user can be out of synchronization.
RESOLUTION
1. Go to %plesk_vhosts%\domain.com\httpdocs directory and check permissions for IUSR_ account.

2. It can be checked using Plesk Control Panel. Go to Plesk, domains, domain.com, Protected URLs. If the root directory "/" is present there, it needs to be removed.

3. The password can be synchronized using the following command:


"%plesk_bin%\websrvmng.exe" --update-anon-password --domain-name=

http://kb.parallels.com/en/976


Plesk 7.5.5-7.6.1versions support this version of PHP but they are not able to manage PHP4 and PHP5 at the same time only PHP4 or PHP5.
If your Plesk version is 7.5.5 or higher you can follow these steps to install PHP5 at your server:

1. Download PHP5 Windows Binaries:

- PHP 5.x.x zip package
- Collection of PECL modules for PHP 5.x.x

2. Remove current PHP4 extensions from Register Web Service Extensions in IIS:

Open command prompt:


cscript c:\windows\system32\iisext.vbs /RmFile "%plesk_dir%\Additional\php\php.exe"
cscript c:\windows\system32\iisext.vbs /RmFile "%plesk_dir%\Additional\php\sapi\php4isapi.dll"
3. Rename folder "%plesk_dir%Additional\Php" to "%plesk_dir%Additional\Php4"

4. Re-register web service extensions for PHP4.

Open command prompt:


cscript c:\windows\system32\iisext.vbs /AddFile "%plesk_dir%Additional\php4\php.exe" 0 PHP 1 "PHP Extensions"
cscript c:\windows\system32\iisext.vbs /AddFile "%plesk_dir%Additional\php4\sapi\php4isapi.dll" 0 PHP 1 "PHP Extensions"
cscript c:\windows\system32\iisext.vbs /EnFile "%plesk_dir%Additional\php4\php.exe"
cscript c:\windows\system32\iisext.vbs /EnFile "%plesk_dir%Additional\php4\sapi\php4isapi.dll"
5. Unzip PHP 5.x.x package into %plesk_dir%Additional\Php.

6. Unzip Collection of PECL modules into %plesk_dir%Additional\Php\Ext.

7. Register PHP5 extension in IIS manually:

Open command prompt:


cscript c:\windows\system32\iisext.vbs /AddFile "%plesk_dir%Additional\php\php-cgi.exe" 0 PHP 1 "PHP Extensions"
cscript c:\windows\system32\iisext.vbs /AddFile "%plesk_dir%Additional\php\php5isapi.dll" 0 PHP 1 "PHP Extensions"
cscript c:\windows\system32\iisext.vbs /EnFile "%plesk_dir%Additional\php\php-cgi.exe"
cscript c:\windows\system32\iisext.vbs /EnFile "%plesk_dir%Additional\php\php5isapi.dll"
8. Backup or rename C:\Windows\php.ini.

9. Put attached to this article file php.ini to C:\Windows\php.ini.

10. Configure default C:\Windows\php.ini according to Plesk configuration.

Set parameters:

extension_dir = "%plesk_dir%Additional\Php\ext"

Example:

extension_dir ="C:\Program Files\SWsoft\Plesk\Additional\Php\ext"

11. Re-configure webmail in IIS to use PHP4 because HORDE webmail does not work on PHP5.

IIS Management, Web Sites, webmail(default), Properties, Home Directory tab, Configuration button, Application Extensions, edit value for `.php` extension, set to "%plesk_dir%additional\php4\php.exe"

Edit "%plesk_vhosts%webmail\horde\php.ini"

Change parameter:

extension_dir = "%plesk_dir%Additional\Php4\extensions"

Example:

extension_dir ="C:\Program Files\SWsoft\Plesk\Additional\Php4\extensions"

12. Make sure that PHP5 has been detected by Plesk. You can check in Plesk, Server, Components Management, Web Scripting section PHP should be listed there. If not, you need to check whether all the steps were done properly.

13. Reconfigure domains web-sites in IIS to use PHP5.


"%plesk_bin%\websrvmng.exe" --reconfigure-all
Additional information
Please see also Simultaneous PHP 4 and PHP 5 usage

http://kb.parallels.com/en/1048


Microsoft Windows Server 2003 does not install Collaboration Data Objects (CDO) for NTS (CDONTS). Therefore, applications that use CDONTS do not function on a Windows Server 2003-based computer. Windows Server 2003 provides improved alternatives to CDONTS.

To make CDONTS functioning on a Windows Server 2003-based computer, use one of the following solutions:

1. Download an attached CDONTS.ZIP file. Once you have downloaded it unzip the CDONTS.DLL and put it into %systemroot%\system32 folder (C:\Windows\system32 by default). You can also get CDONTS.DLL from your Windows 2000 CD.

2. Register the CDONTS.DLL component on your server using the following command:


regsvr32 "%systemroot%\system32\cdonts.dll"
For example:


C:\WINDOWS\system32>regsvr32.exe cdonts.dll
3. After you have registered your CDONTS.DLL component you need to check whether your SMTP service is running.

Go to Administrative tools, IIS and expand your local machine. If SMTP service is listed then it is installed, else it's necessary to install this service.

To install SMTP perform the following operation:

Go to Control Panel, Add/Remove Programs, Add/Remove Windows Components, Application Server, IIS, Check on SMTP service, Click OK.

4. Change the port number for SMTP service. Default port is 25. Use 25 only if you don't have another SMTP service running. If another SMTP service is already running on your server you should switch IIS SMTP port to another, for example to 8025.

You can do through IIS management console: Control Panel, IIS, expand `local computer`, SMTP, Properties, General tab, click on Advanced button, Edit.

5. Configure SMTP service. The main things are to set a valid full-qualified domain name for SMTP service: Control Panel, IIS, expand `local computer`, SMTP, Properties, Delivery tab, click on Advanced button and configure Security for SMTP service.

It's necessary to grant permissions to IIS_WPG standard IIS Worker Process Group. Control Panel, IIS , expand `local computer`, SMTP, Properties, Security tab , click on Add button, cick Object types... button, check on Groups item, click OK, type IIS_WPG as object name to add , click OK.

Additional setting: Choose Authentication and tick Anonymous Access and Integrated Windows Authentication. Click OK, and then click CONNECTION. Configure RELAY settings as you wish. Click the DELIVERY tab then click ADVANCED. Set the MAX hop count to whatever you like but we recommend at least 20

Now IIS SMTP service is configured and ready to work.

Additional Notes can be found on Microsoft's website:

http://support.microsoft.com/default.aspx?scid=kb;en-us;324649

http://kb.parallels.com/en/560


You may create Service Container on a Virtuozzo hardware node using 'vzsveinstall' utility:

# vzsveinstall -D DISTRIB_DIR -s SERVICE_CT_IP

where
- DISTRIB_DIR - path to Virtuozzo distribution directory hierarchy on a server. F.e. if you have the Virtuozzo distrib on your server in the folder /root/Rel400 then DISTRIB_DIR should be /root/Rel400/;
- SERVICE_CT_IP - IP address to be assigned to Service Container;

Please refer to man page on 'vzsveinstall' utility for additional information.

Please note - OS template 'redhat-as3-minimal' must be installed on a hardware node and cached before Service Container may be created. If you have no that template on a node please do the following:
- install OS template 'redhat-as3-minimal', corresponding RPM package is located in the folder 'virtuozzo/SVE' inside Virtuozzo distrib (in Virtuozzo 3.x it is the folder 'HW/SVE');
- create OS template cache using 'vzpkgcache' command on a node.

If Virtuozzo server has been updated since the very first release (using 'vzup2date' utility or manually) then you need to apply all needed updates to the Service Container as well. Updates downloaded by 'vzup2date' utility are usually located under /vz/vzup2date/3.0.0/TU-3.0.0-* dirs on a Virtuozzo server. You may apply them to the Service Container using 'vzsveupgrade' utility using this simple script:

# for i in `find /vz/vzup2date/$(awk '{print $NF}'

If you need to re-create Service Container then you may destroy the existing one using 'vzctl destroy 1' utility (container must be stopped first), then create it from the scratches and apply available updates as it is described above.


SYMPTOMS
NAT module does not work in container, you get "can't initialize iptables table 'nat'" error:

# iptables -t nat -L -n
iptables v1.2.11: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

The following Iptables modules settings are configured on the hardware node:

# cat /proc/net/ip_tables_targets
LOG
TOS
TCPMSS
REJECT
ERROR
# grep con /etc/modprobe.conf
options ip_conntrack ip_conntrack_disable_ve0=1
RESOLUTION
If order to enable NAT you should perform the following actions on the hardware node:

- stop Virtuozzo service and all containers:

# service vz stop

- reconfigure IPtables module "ip_conntrack":

# sed -i '/ip_conntrack/ d' /etc/modprobe.conf
# echo "options ip_conntrack ip_conntrack_disable_ve0=0" >> /etc/modprobe.conf

- restart IPtables service:

# service iptables restart

- start Vituozzo service and all CTs:

# service vz start

--- http://kb.parallels.com/en/5228


Yeah. Why I haven't thought about it. In the following posts, you will be seeing KB entries from Parallel's Knowledgebase. I will just be posting about the most known problems I've encountered. But please, before you touch anything, make sure that you have a backup. Use this kb's at your own risk.

Cheers.


If you are using a Windows 2008 server, running Plesk 8.6, you might encounter this error on Horde:


502 - Web server received an invalid response while acting as a gateway or proxy server.There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.


Fixes:


1. You need to see the complete details of what is happening in your IMP server. Browse locally or from the server to http://localhost:8425/.


2. Check if CGI Role Service is installed in IIS: Server Manager > Roles > Web Server > Role Services


3. Uncomment the following files on the PHP configuration file from %plesk_vhosts%\webmail\horde\php.ini. - php_fileinfo.dll, php_mysql.dll and bphp_mysqli.dll


4. Do no forget to set cgi.force_redirect = 0 in %plesk_vhosts%\webmail\horde\php.ini.

If you are using a windows 2003 server, apache, this error pops out from the ssl.log files



An operation was attempted on something that is not a socket. : Child
4800: Encountered too many errors accepting client connections. Possible causes:
dynamic address renewal, or incompatible VPN or firewall software. Try using the
Win32DisableAcceptEx directive.




Solution:



Switch Plesk Control Panel to IIS.



Run the following from the command prompt:



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


If you are using Ubuntu (Hardy Heron), then you are reading the right article. Have you been wanting to play Windows based games on your Ubuntu desktop? Well, wish come true. Introducing PlayOnLinux. From their definition, PlayOnLinux is a piece of sofware which allow you to install and use easily numerous games and softwares designed to run with Microsoft®'s Windows®. A great piece of software indeed. But I am here to tackle a little bit on how to make PlayonLinux available on your PCs.


First you need to download the package. From the terminal, issue the command


wget -q http://playonlinux.botux.net/pol.gpg -O- sudo apt-key add -

and then add repository to apt sources


sudo wget http://playonlinux.botux.net/playonlinux_hardy.list -O /etc/apt/sources.list.d/playonlinux.list

Run the command


sudo apt-get update


to update the apt sources.


Finally, install PlayOnLinux


sudo apt-get install playonlinux

Alternatively, for non Ubuntu users, you can always visit www.playonlinux.com to acquire the right package for your opensource system.
Enjoy!




Microsoft's Update KB951748, released July, breaks the Virtuozzo 4.0 Service Container. When accessing the Parallels Management Console, you're getting the error "Error 422 (Named Pipe connection failed, error #2 [The system cannot find the file specified)"




Fix:




Reinstall the Service Container.




From the command prompt, type in




vzsveinstall -s 10.184.88.xx -w -f




Lesson learned. Be sure to check updates first on the Virtuozzo website to avoid hassles.