How to get Plesk mysql password
Today I lost my MySQL server admin password. The server has a Plesk cp install and I was wondering if it doesn’t store it anywhere. Funny enough it does, even in plain text. You can find it in /etc/psa/.psa.shadow. It’s a good idea to keep the file inaccessible for anybody else but root.
Apache with multiple PHP Versions
This is the third part of our Gentoo tutorials. In the first two parts we have installed Gentoo from the minimal installation disc and added some interesting applications and utilities. In this third part we will install an apache webserver with several different php versions. I will use php4 and php5,...
PHP Checkbox values
This one puzzled me for some time… may be I’ve overlooked the php documentation, but I couldn’t find how to make use of the standard checkbox and return the selected values as an array from a simple form. In the end, it turned to be easy. Consider that we have the following form: <html> <form...
How to remove the last character of a string
Remove the last character in PHP In Perl, the chop function removes the last character in a string, but in PHP it removes trailing white spaces only. To get the same functionality into PHP you can use the substr_replace() function. For example: $string = substr_replace($string,”",-1); will remove...
Setup your own server with Ubuntu 7.10 server edition
In this article we will guide you through the Ubuntu 7.10 server edition installation process. If you have an old piece of hardware and would like to make it a server or you need a LAMP server where you can host your website you can easily setup the Ubuntu server edition and take advantage of one of...
PuTTY with tab management
How often do you use PuTTY and how many times have you prayed to god that its developer will add tabs management in the next version? Many? Yes, same here. We all use this lovely piece of software, which misses only key feature. Not anymore. A nice guy has created a software, which adds this important...