installing Linux, Apache, Mysql, PHP

How To Install Linux, Apache, MySQL, PHP (LAMP) stack On CentOS 6

About LAMP


LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the server is already running CentOS, the linux part is taken care of. Here is how to install the rest.

Set Up

The steps in this tutorial require the user on the virtual private server to have root privileges.

Step One—Install Apache


Apache is a free open source software which runs over 50% of the world’s web servers.

To install apache, open terminal and type in this command:

sudo yum install httpd

Once it installs, you can start apache running on your VPS:

sudo service httpd start

That’s it. To check if Apache is installed, direct your browser to your server’s IP address (eg. http://12.34.56.789). The page should display the words “It works!” like this.

How to find your Server’s IP address


You can run the following command to reveal your server’s IP address.

ifconfig eth0 | grep inet | awk '{ print $2 }'

 

Step Two—Install MySQL


MySQL is a powerful database management system used for organizing and retrieving data on a virtual server

To install MySQL, open terminal and type in these commands:

sudo yum install mysql-server
sudo service mysqld start

During the installation, MySQL will ask you for your permission twice. After you say Yes to both, MySQL will install.

Once it is done installing, you can set a root MySQL password:

sudo /usr/bin/mysql_secure_installation

The prompt will ask you for your current root password.

Since you just installed MySQL, you most likely won’t have one, so leave it blank by pressing enter.

Enter current password for root (enter for none): 
OK, successfully used password, moving on...

Then the prompt will ask you if you want to set a root password. Go ahead and choose Y and follow the instructions.

CentOS automates the process of setting up MySQL, asking you a series of yes or no questions.

It’s easiest just to say Yes to all the options. At the end, MySQL will reload and implement the new changes.

By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y                                            
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
... Success!

By default, MySQL comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MySQL
installation should now be secure.

Thanks for using MySQL!

 

Step Three—Install PHP


PHP is an open source web scripting language that is widely used to build dynamic webpages.

To install PHP on your virtual private server, open terminal and type in this command:

sudo yum install php php-mysql

Once you answer yes to the PHP prompt, PHP will be installed.

PHP Modules


PHP also has a variety of useful libraries and modules that you can add onto your server. You can see the libraries that are available by typing:

yum search php-

Terminal then will display the list of possible modules. The beginning looks like this:

php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
php-cli.x86_64 : Command-line interface for PHP
php-common.x86_64 : Common files for PHP
php-dba.x86_64 : A database abstraction layer module for PHP applications
php-devel.x86_64 : Files needed for building PHP extensions
php-embedded.x86_64 : PHP library for embedding in applications
php-enchant.x86_64 : Human Language and Character Encoding Support
php-gd.x86_64 : A module for PHP applications for using the gd graphics library
php-imap.x86_64 : A module for PHP applications that use IMAP

To see more details about what each module does, type the following command into terminal, replacing the name of the module with whatever library you want to learn about.

yum info name of the module

Once you decide to install the module, type:

sudo yum install name of the module

You can install multiple libraries at once by separating the name of each module with a space.

Congratulations! You now have LAMP stack on your droplet!

We should also set the processes to run automatically when the server boots (php will run automatically once Apache starts):

sudo chkconfig httpd on
sudo chkconfig mysqld on

 

Step Four—RESULTS: See PHP on your Server


Although LAMP is installed on your virtual server, we can still take a look and see the components online by creating a quick php info page

To set this up, first create a new file:

sudo nano /var/www/html/info.php

Add in the following line:

<?php
phpinfo();
?>

Then Save and Exit.

Restart apache so that all of the changes take effect on your virtual server:

sudo service httpd restart

Finish up by visiting your php info page (make sure you replace the example ip address with your correct one): http://12.34.56.789/info.php

It should look similar to this.

 

below are the links to our sites

here are our main sites, that we use to for posting our news about ffmpeg, red5 hosting and wowza hosting.

Wowza FFmpeg, red5 Hosting

FFmpeg Servers

FFmpeg Servers

FFmpeg Server

Red5 Hosting – FFmpeg Hosting

FFmpeg Hosting Comparison

FFmpeg Please?

Ethiopian Student

FFmpeg Hosting

European FFmpeg Hosting

Ffmpeg and Red5 Hosting

Wowza Hosting

Wowza Streaming

Wowza Control Panel

FFmpeg Adult Host News

Web Hosting Press Releases and News

Red5

Hosting Marketers News

FFmpeg Hosting House News

Try To Know More About Wowza Server

Owning website in this technology world is not much difficult one since there are many web designing concerns available. Designing and hosting a website is not much difficult one with the assistance of web designers and web hosting service providers. Maintaining the website live in the internet is really a challenging one where there are many difficulties needs to face by the website owners. You can find many websites available in this internet world will never sustain live in the internet due to various reasons. The web server like linux server, wowza server , windows server where your website has been hosted under windows hosting, wowza hosting may be crashed by the virus or any other physical damage. If you are planning to design a static website then you need not to worry about the wowza server and wowza hosting. Only the dynamic websites that contain numerous videos need entire security process and the database for such website should be maintained in an excellent manner. This can be achieved only if the site is hosted under wowza hosting system in any of the available wowza server . Though there are many server types available, this wowza server will be the right choice for video based websites. Only few wowza hosting service providers are available in internet but most of them are providing excellent service. Website owner who doesn’t have any idea about wowza hosting can look over the online reviews and can collect information about wowza server and its hosting types.
There is no doubt that only the online reviews will help every people to get information about wowza hosting and its benefits. Such wowza hosting is available in various types, where the website owner can choose any of their needed one. The shared and dedicated wowza hosting are the two types. Website owners who like to own an individual video website in dedicated server can prefer dedicated wowza hosting with pleasure. The dedicated hosting is highly much important for huge database website. In the dedicated wowza server , only one will be hosted and the videos and contains relate to that website will be available in that server. No more websites will be hosted in a single dedicated server. Since maintaining such type of dedicated server with wowza hosting strategies is really much challenging one, few highly reputable wowza hosting service providers will achieve such type of hosting with pleasure. You can find some website owners don’t bother about the type of hosting hence that website owner can prefer shared wowza hosting.
In this wowza hosting type, numerous websites will be hosted in single wowza server . Most of the highly reputable wowza hosting service providers are now ready to assist the website owners who are with interest to host video based websites. People by looking over the online review sites can find out the topmost wowza hosting service providers and can get space in wowza server for their video websites very easily. Website with numerous videos which is being hosted under such wowza hosting will allow excellent video streaming for the welfare of every interested video lover.

wowza servers

The streaming of audios and videos is the most widely used method of media sharing. You can see that there are lots of websites that provide streaming links to the media contents. Wowza is a specialist in maintaining the media content files. You can keep your files well secured here. The use of wowza hosting is extremely easy. You do not need to be confused about the server. This is the simplest media server that you can ever have. The configuration of the wowza servers is extremely easy. You can configure the web server even if you are new to this. What you need is the get the instructions that are provided on the wowza media website. You will get the application and configure the server easily. This is exceedingly straightforward process. The use of this web server for media exchange is used widely because of its simplicity. There are many other web servers that require many require too much time for the configuration. Therefore, most of the people get frustrated from this. The main reason for their less use is their configuration. However, the wowza servers have the simplest configuration present today.

Today, you can find lots of devices around you. There are devices having some extremely powerful interfaces. The mobile phones have evolved a lot. You can see that there are lots of mobile phones that are offering internet connectivity. The firmware used in different mobiles varies. This must be noticed that not all the mobile firmware types are adapted to play media files as played by a computer. So, the use of some specific web servers is required to offer to stream videos and audios on these devices. The feature that makes wowza hosting different from others is the availability on different platforms. The wowza servers can be accessed through any device capable of internet connectivity. There are different servers for different platforms. These servers provide an effective way for using wowza on any of the devices. You can access wowza from Symbian operated devices, Palm or Web OS devices, Android devices and iOS devices. There are certain other devices such as TVs and set-top boxes having internet connectivity. You can access the media server from these devices too.
There is a cost of everything. Wowza hosting is also not free. You need to pay for getting the proper use of the server. There are several payment options that can be used to access wowza servers. The payments start from $25. This is the lowest payment option available. In this package, you will get 1 TB tariff with 10 GB of storage space. The use of this can package can be done by many people having individual websites. For larger organizations, there are other packages that can be used. The higher amount packages have lager tariff rates and larger storage spaces. You can choose the package that is perfect for you.

Basic FFmpeg command lines

want to convert a avi file to flv? extract the sound from a flv file and save it as mp3? see below:

1. Getting info from a video file

ffmpeg -i video.avi

2. Turn a sequence of images into video

ffmpeg -f image2 -i image%d.jpg video.mpg

3. Turn a video into a sequence of images

ffmpeg -i video.mpg image%d.jpg

4. Encode video for Ipod/IPhone

ffmpeg -i source_video_file.avi -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv -trell 1 -aic 2 -cmp 2 -subcmp 2 -s 320×180 -title X output_file.mp4

5. Encode video for PSP

ffmpeg -i source_video_file.avi -b 300 -s 320×240 -vcodec xvid -ab 32 -ar 24000 -acodec aac output_file.mp4ORffmpeg -i “OriginalFile.avi” -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 320×240 “OutputFile.mp4”

6. Extract audio from a video file and save it as mp3 format

ffmpeg -i source_video_file.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 output_file.mp3

7. Convert a wave file to mp3

ffmpeg -i original_audio_file.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 output_file.mp3

8. Convert a avi video to mpeg

ffmpeg -i original_movie.avi output_file.mpg

9. Convert a mpeg video to avi

ffmpeg -i original_movie.mpg output_file.avi

10. Convert a avi video to uncompressed animated gif

ffmpeg -i original_movie.avi output_file.gif

11. Add audio to an existing video-only file (mix audio and video)

ffmpeg -i son.wav -i original_movie.avi output_file.mpg

12. Convert a avi video to flv (flash video)

ffmpeg -i original_movie.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320×240 -f flv output_file.flv

13. Convert a flv video to mpeg

ffmpeg -i myFile.flv -ab 56 -ar 22050 -b 500 -s 320×240 myFile.mpg

14. Convert a avi video to dv

ffmpeg -i original_movie.avi -s ntsc -r ntsc -aspect 4:3 -ar 48000 -ac 2 output_file.dvORffmpeg -i original_movie.avi -target ntsc-dv output_file.dv

15. Convert a avi video to mpeg specifically for DVD creation

ffmpeg -i source_video.avi -target ntsc-dvd -ps 2000000000 -aspect 16:9 finale_video.mpeg

16. Compress a avi video to Divx

ffmpeg -i original_movie.avi -s 320×240 -vcodec msmpeg4v2 output_file.avi

17. Convert a Ogg Theora video to mpeg specifically for DVD creation

ffmpeg -i original_movie.ogm -s 720×576 -vcodec mpeg2video -acodec mp3 output_file.mpg

18. Convert a avi video to mpeg2 for SVCD creation

ffmpeg -i original_movie.avi -target ntsc-svcd output_file.mpg

19. Convert a avi video to mpeg2 for VCD creation

ffmpeg -i original_movie.avi -target ntsc-vcd output_file.mpg