Archive for June, 2007

Microsoft does not support the use of FAT file systems or FAT32 file systems with Internet Information Services (IIS)

Saturday, June 30th, 2007

For more information check –

http://support.microsoft.com/?id=907733

Nivio, a Windows-based Online Desktop.

Tuesday, June 19th, 2007

Many others like me must be waiting for something like this — Nivio, a Windows-based Online Desktop.

An idea of having your desktop online sounds really great :)

Google, eyeOS, YouOS are already in this race but Nivio going far ahead taking your windows desktop online.

News is flashing all over internet and news channels - “A dozen creative young programmers at a Delhi-based start-up has announced the “world’s first Windows-based online desktop.” Called Nivio, it helps one to create a full-fledged, but entirely virtual, desktop of one’s own — on the web.”

Website : http://www.nivio.com/

I am off to register the Beta version http://www.nivio.com/Registration.aspx

Cheers
Sachin
ThinkSupport.net

How to get Plesk Admin password ?

Saturday, June 16th, 2007

Plesk Linux Server :

cat /etc/psa/.shadow.psa

Plesk Windows Server :

Login to RDP >> Open command prompt >> Change directory to Swsoft >> Plesk >> Admin >> Bin >>

Run Command —

plesksrvclient.exe -get

Thank you :)

Plesk configuration - get open_basedir working for a subdomain

Wednesday, June 13th, 2007

Learn how to remove the open_basedir restriction for a special directory that Plesk automatically creates for subdomains.

Steps to fix open_basedir restriction for subdomains

We assume that the domain name is $domain.com, the name of the subdomain is $subDomName. You have to replace these values with the appropriate values.

Our goal is to open access to the public website directory and the /tmp directory for the special subdirectory. The directories are mentioned in the php_admin_value open_basedir

  1. Create a special vhost.conf file for the subdomain.
    Create /srv/www/vhosts/$domain.com/subdomains/$subDomName/conf/vhost.conf with the following content:

    <Directory /srv/www/vhosts/$domain.com/subdomains/
    $subDomName
    /httpdocs>
    <IfModule sapi_apache2.c>
    php_admin_flag engine on
    php_admin_flag safe_mode off
    php_admin_value open_basedir “/srv/www/vhosts/$domain.com/httpdocs:/srv/www/vhosts/
    $domain.com/subdomains/$subDomName/httpdocs:/tmp”
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_flag engine on
    php_admin_flag safe_mode off
    php_admin_value open_basedir "/srv/www/vhosts/$domain.com/httpdocs:/srv/www/vhosts/
    $domain.com/subdomains/$subDomName/httpdocs:/tmp”
    </IfModule>
    </Directory>

  2. The next step is to apply the created configuration and recreate the apache configuration.
    Execute the following command on the command line to update the Plesk configuration:
    /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.tld
  3. Final and last step is to restart apache
    service httpd restart

That’s all, now your open_basedir restriction is gone away.

Plesk subdomain working as catch-all

Wednesday, June 13th, 2007

Learn how to configure Plesk to use one subdomain as catch-all subdomain for non-existing subdomains

In this article you’ll learn to configure Plesk that it uses one subdomain as catch-all for all non-existing subdomains.

Why would you need catch all subdomains

Maybe you have a few subdomains. But sometimes your visitors are accessing non-existing subdomains. So the best solution would be to either redirect them to your main website or at least show them a list of available pages.
Here comes the catch-all subdomain : There you can either configure Apache that it redirects all accesses to the main webpage (via 301, as written e.g. in this article Migrate domain names with .htaccess ) or just have a static (or dynamic, of course) page displayed to the user.

Step-by-step configuration

  1. Create a subdomain z-WILDCARD in Plesk - of course in the admin section of the right domain.
    Why do we need this name? ’cause this entry should be the last entry in the list of subdomains, otherwise this “trick” will not work. So if you have a domain as e.g. zabalula , than you should maybe name the subdomain zzzz-WILDCARD or similar.
  2. Add special configuration (catchall for all subdomains) to the vhosts.conf file of this subdomain.
    Normally it’s located in /srv/www/vhosts/domain.com/subdomains/z-WILDCARD/conf/vhosts.conf. You have to create it - normally you need the root user to do this. Copy the following content into the file:
    ServerAlias *.domain.com
  3. Apply the new configuration - recreate the Apache configuration. You have to run the tool websrvmng which is a Plesk tool that manages and creates the webserver configuration. Execute the following as root user.
    /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com
  4. Finally - restart Apache to load the new configuration, also as root.
    service httpd restart

That’s it - now you can try accessing non-existing subdomains as e.g. doesnotexists.domain.com and you should see the Plesk page displayed for new pages. Next step would be to e.g. add the 301 redirect or use a custom page.

Note: This has been tested with Plesk 8 and Suse Linux. Please drop a note if this also works on other version of Plesk / linux - or something did not work.

Plesk subdomain accessible with www

Wednesday, June 13th, 2007

Solution - follow the following steps to make your subdomain accessible with www

1. Add one line to the special configuration file for the subdomain.

Normally this file is located in

/var/www/vhosts/domain/subdomains/subdomain/conf/vhost.conf .
Create the file, if there is no file yet. Add the following line, save it and exit the editor.
ServerAlias www.subdomain.domain.com

What does ServerAlias www.subdomain.domain.com mean?

This is a Apache configuation that says that Apache will also serve the subdomain if you access it with www. This is normally used for the domain name, but also working for sub-domains.

2. (optional - maybe necessary in Plesk 7/7.5, but works without in Plesk 8)

1. Add a A record type in the DNS zone of the domain for the subdomain starting with www. Select the following menu entries.

2.Server => Domains => domain.com => DNS

3. There you’ll see a list of DNS entries for the domain. Check the IP address for the subdomain entry - copy to clipboard or write it down, if you don’t know it

4. Now you create a new entry with the button Add new entry  - use the following value

  • Record type: A
  • Domain name: www.subdomain (Plesk 8)
  • IP address: enter the IP address that you copied in step 2.2, e.g. 111.111.111.111

Press OK to add the new entry to the DNS.

5 .Check if there is a new entry wit the following value:
www.subdomain.domain.com A 111.1111.111.111

3. Recreate the Plesk / Apache configuration for the whole domain
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com

4. Restart Apache to read the new configuration and serve pages with www.subdomain.domain.com

service httpd restart

:)

***** Important release of cPanel 11 update *****

Friday, June 8th, 2007

Since the release of cPanel 11, we have noticed a number of instances where the cPanel 11 release update failed to complete. The symptoms can vary, including blank pages being drawn from certain features, with the most commonly reported issue being that account creations are exiting prematurely, claiming immediately that the account creation is complete. Additionally, account creation, suspension, unsuspension and removal may fail.

======================================================

This is occurring because /scripts/updatenow was executed (or run from update system software in whm) without a subsequent call to upcp. As a result, /scripts is updated to the latest available modules available with cPanel 11, while the rest of the system
remains configured for the older builds.

You can confirm whether or not this is the case on your system by executing from the command line:

perl -c /scripts/wwwacct

If this command returns errors, then you will need to update. Here is what you can expect to see if a problem exists:

root@localhost [~]# perl -c /scripts/wwwacct
Can’t locate Whostmgr/Accounts/Create.pm in @INC (@INC contains:
/usr/local/cpanel /scripts /usr/lib/perl5/5.8.7/i686-linux
/usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux
/usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at
/scripts/wwwacct line 10.
BEGIN failed–compilation aborted at /scripts/wwwacct line 10.
root@localhost [~]#

Suggested Fixes:

If you wish to stay with cPanel 10.x, you will need to execute the
following commands from the command line:

/usr/local/cpanel/bin/checkperlmodules
echo “CPANEL=stable” >> /etc/cpupdate.conf
/scripts/upcp –force

If you would like to continue with the cPanel 11 updates (recommended),
you will need to execute the following commands from the command line:

/usr/local/cpanel/bin/checkperlmodules
/scripts/upcp –force

If the problems persists after applying the updates, please contact our support team ASAP with an outline of the symptoms and the login credentials for the system, and we will take care of it with the utmost priority.

NOTE : You can download the installer at: http://layer2.cpanel.net

Cpanel will also release a new 10.9 STABLE build on 06/08/2007 that will handle downgrades from cPanel 11.x more gracefully.

Thanks :)

What FFMPEG-PHP can do and how to use the most out of it

Thursday, June 7th, 2007

You’ve probably heard of ffmpeg-php and it’s wide usability mostly in sites that involve with videos such as YouTube or any other similar site. Here’s a bit of an introduction to it and how to use it.

First thing, you’ve got to check that your web hosting provider actually has ffmpeg & ffmpeg-php extension installed on your account and then you could get started with ffmpeg. You can check if it’s installed by creating a PHP script and executing the following code:

extension_loaded(’ffmpeg’) or die(”ffmpeg extension not loaded”);

If you get “ffmpeg extension not loaded” then your web hosting provider does not have ffmpeg installed, if you get nothing, then you’re one the good track!

ffmpeg-php is very simple to learn, what it is pretty much is an interface that works with the ffmpeg software to make it easier for PHP developers to access.

Like any object in PHP, you’ll have to start with creating a new instance of it. You can do that by using the following line:

$ffmpegInstance = new ffmpeg_movie(“/path/to/movie/”);

Now that you’ve had that, you can use that instance to use the many features of ffmpeg-php which are from knowing the duration of the movie/audio in seconds to retrieving the bitrate of the movie/audio file.

Once here, it’s pretty much like object oriented programming, ex:
$ffmpegInstance->getDuration(); // Gets the duration in secs.
$ffmpegInstance->getVideoCodec(); // What type of compression/codec used

This can be very helpful when coding anything that has to do with uploading videos because you can know a lot of information about it.

Installing FFMPEG – :)

Thursday, June 7th, 2007

A lot of people are getting hiring people to install FFMPEG as they think it’s a difficult task, but it’s much easier than you think if you follow these instructions. You should have root access & basic Linux knowledge to the server to follow these instructions.

1. Create a directory to do our work in
mkdir ~/ffmpeg
cd ~/ffmpeg

2. Get all the source files
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/ essential-20061022.tar.bz2
wget http://rubyforge.org/frs/download.php/9225/ flvtool2_1.0.5_rc6.tgz
wget http://easynews.dl.sourceforge.net/sourceforge/ lame/lame-3.97.tar.gz
wget http://superb-west.dl.sourceforge.net/sourceforge/ ffmpeg-php/ffmpeg-php-0.5.0.tbz2
wget http://downloads.xiph.org/releases/ ogg/libogg-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/ vorbis/libvorbis-1.1.2.tar.gz

3. Extract all the source files
bunzip2 essential-20061022.tar.bz2; tar xvf essential-20061022.tar
tar zxvf flvtool2_1.0.5_rc6.tgz
tar zxvf lame-3.97.tar.gz
bunzip2 ffmpeg-php-0.5.0.tbz2; tar xvf ffmpeg-php-0.5.0.tar
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz

4. Create the codecs directory & import them
mkdir /usr/local/lib/codecs/
mv essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

5. Install SVN/Ruby (Depends on OS, this is for RHEL/CentOS)
yum install subversion
yum install ruby
yum install ncurses-devel

6. Get the latest FFMPEG/MPlayer from the subversion
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer

7. Compile LAME
cd ~/ffmpeg/lame-3.97
./configure
make
make install

8. Compile libOGG
cd ~/ffmpeg/libogg-1.1.3
./configure
make
make install

9. Compile libVorbis
cd ~/ffmpeg/libvorbis-1.1.2
./configure
make
make install

10. Compile flvtool2
cd ~/ffmpeg/flvtool2_1.0.5_rc6
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install

11. Compile MPlayer
cd ~/ffmpeg/mplayer
./configure
make
make install

12. Compile FFMPEG
cd ~/ffmpeg/ffmpeg
./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx –enable-shared
echo ‘#define HAVE_LRINTF 1′ >> config.h
make
make install

13. Finalize the codec setups
ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51

14. Compile FFMPEG-PHP
cd ~/ffmpeg/ ffmpeg-php-0.5.0
phpize
./configure
make
make install

15. Install FFMPEG-PHP (make sure the php.ini path is correct.)
echo ‘extension=/usr/local/lib/php/extensions/ no-debug-non-zts-20020429/ffmpeg.so’ >> /usr/local/Zend/etc/php.ini

16. Restart Apache to load FFMPEG-PHP (Depends on OS, this is for RHEL/CentOS)
service httpd restart

17. Verify if it works
php -r ‘phpinfo();’ | grep ffmpeg

If you get a few lines such as
ffmpeg
ffmpeg support (ffmpeg-php) => enabled
ffmpeg-php version => 0.5.0
ffmpeg.allow_persistent => 0 => 0

Then everything is installed and working. FFMPEG, FFMPEG-PHP, MPlayer, MEncoder, flv2tool, LAME MP3 encoder & libOGG.

IonCube Error zend_hash_destroy

Wednesday, June 6th, 2007

If you come across error after installing ioncube

/home/username/public_html/ioncube/ioncube_loader_lin_5.2.so: undefined symbol: zend_hash_destroy in

Follow this –

This can occur if PHP is configured with the option
–enable-versioning
This option can prevent the export of global PHP API symbols, causing failure when attempting to link libraries such as the Loader or Zend Optimiser. PHP must be rebuilt without that option so that the PHP API is correctly visible. A phpinfo page should show at the top of the page what options were used to configure PHP, and should confirm that the option had been used.

Thanks