Cpanel upcp Yaml Syck problem

July 6, 2007

Some Cpanel systems miss Yaml::Syck package and /scripts/upcp display a bunch of errors. To fix this problem you may install YAML-Syck package by downloading tar package (at this time of writing the filename: YAML-Syck-0.91.tar.gz ) or you can always run perl Cpan shell to install it the easy way ;)

(login to root account and execute in shell:)

perl -MCPAN -e shell

install YAML::Syck

Enjoy ;)

Replace multiple file text string using grep and perl

June 19, 2007

If you have a folder with a lot of files in a directory and with a specific string that you want to change you can do it in seconds using grep and perl command line:

grep -R –files-with-matches ‘OLDSTRING’ . | sort | uniq | xargs perl -pi~ -e ’s/OLDSTRING/NEWSTRING/’

Where OLDSTRING is the string you want to find and replace with NEWSTRING.

Streaming technologies for Flash video

Flash streaming has been lately the king of all Internet streaming formats. YouTube uses it, Google Video uses it.

There are many solutions how to stream or offer progressive downloads of flash video files - free and paid streaming servers. Large companies with deep pockets usually use Flash Media Server, but many folks prefer to use progressive download “streaming” over HTTP protocol - it is cost-effective, easy to set-up and reliable.

Currently, flash progressive downloads are possible with simple php hack for apache web server, or you can even use lighttpd web server or nginx that fully support flash streaming. There is also an open source alternative to real flash streaming servers RED5 (with RTSP support). It offers real time flash streaming as well as mp3 streaming and it’s code is based on Java.

FFmpeg installation problem on the Linux

June 12, 2007

If you are installing ffmpeg from the SVN and getting the following error log after running ./configure:

./configure
Unable to create and execute files in /tmp.  Set the TMPDIR environment
variable to another directory and make sure that /tmp is not mounted
noexec.
Sanity test failed.
If you think configure made a mistake, make sure you are using the latest
version from SVN.  If the latest version fails, report the problem to the
ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file “config.err” produced by configure as this will help
solving the problem.

This means that your /tmp directory has noexec flag and you need to disable it for a while.

Check your /etc/fstab

and locate /tmp

It probably shows something similar below:

LABEL=/tmp              /tmp                    ext3    defaults,noexec,nosuid        1 2 

Remove noexec and it should be something like:

LABEL=/tmp              /tmp                    ext3    defaults,nosuid        1 2

Issue

umount /tmp && mount /tmp

And you are set, proceed with the installation of ffmpeg.

If you are  getting the following error after running umount and/or mount:

umount: /tmp: device is busy 

Then some process is having a file handle open to /tmp directory. You will need to shutdown the daemon before issuing mount commands.

Wordpress blog hosting using cluster technology

June 5, 2007

For large Wordpress blog owners we have some great news. Today, Linux Admin has launched pre-beta cluster technology hosting for Wordpress blogs that require high reliability and availability.

Mr. J.Lejj, the CEO of LinuxAdmin: “Our technology incorporates load balancing and full failover front-ends and back-ends, thus, allowing big blog owners to concentrate more on their business — forget dealing with the current host for uptime and low latency problems. At this point, I am confident to say that our Wordpress cluster technology hosting will be shortly available to public and currently, we are working with some quite large blog network owners to test our solution.”.

LinuxAdmin has been always offering quality services and we do not plan on stepping back.

Why choose virtual private server

June 4, 2007

Many experts have said that the best environment for E-commerce sites are those which used a dedicated server. Dedicated servers have become quite popular because they offer uses a great deal of security and the ability to customize their settings. The whole server if yours, and you can do whatever you want with it. However, the biggest down side to this is the cost involved with purchasing a dedicate server. Unless you have between $250 to $7000 to spend each month for you start up budget, you will need to either lease it, or you will need to co-locate the server on the data center of someone you know. It is also possible for you to pay for a large internet connection to your central location.

One good solution to a dedicated server is a Virtual Private Server. This is a service that essentially offers you shared hosting, and you will be given a single account. When you use a Virtual Private Server, the resources and hardware will be partitioned into a number of environments that are isolated. Each environment will function as its own small dedicated server. Every Virtual Private Server will have its own degree of control over the software, parsers, and resources. Virtual Private Servers are very useful because they reduce many of the problems that commonly occur with shared hosting. The user will have resources that are guaranteed, and the operating environment will have a high level of security.

There are a large number of advantages to a Virtual Private Server, and the first is control. While you may not be given the ability to make calibrations near the central operating system, you can update your PHP, as well as the configuration for MySQL and various other applications. With a dedicated server, you can make some serious errors if you aren’t sure what you’re doing, but you don’t have to worry about this with a VPS. The reason for this is because you will not be allowed to access things that can compromise the ability for the VPS to operate. This is a very useful feature for those who are interested in becoming skilled with web server administration.

Another powerful advantage of a VPS is that users are allowed to have multiple websites. You can have a large number of domains, and while there may be restrictions, some services allow you to have as many as 100 domains. One issue that should always be taken into consideration is security. Every Virtual Private Server will operate within an individual environment, and the files that are stored on this server cannot be seen by other Virtual Private Servers, even if they are on the same central server. Virtual Private Servers are known for having a high level of security in comparison to other server options.

The last and perhaps most important advantage of a Virtual Private Server is the cost. While dedicated servers will generally start at about $250 per month, most Virtual Private Servers will start at $30 per month, and will be as much as $100 per month. As you can see, there is a large price difference. This is an excellent option for small to medium sized businesses that can’t afford to use a dedicate server.

List all installed rpm packages and it’s size

June 3, 2007

Virtual Private Server disk space are usually limited so it’s always good to know how much space on the hard drive takes some rpm package. You can delete it later - you will save your disk space and of course some bandwidth if updates are released later on.

rpm -qa –qf ‘%10{SIZE}\t%{NAME}\n’ | sort -k1,1n

This applies to Linux environment servers only.