Following Are The Steps for MySql Server Installation
1. To download MySql Source Go To Below link
Note: There Are 2 Versions Available For MySql
1) Community Edition: (It’s a Free Edition)
2) Enterprise Edition: (You Have To Purchase License For MySql)
http://dev.mysql.com/downloads/
2. In This Example We Are Going To Install Mysql-communitiry Edition
Rpm Package for MySql MySQL-server-community-5.1.34-0.rhel5.i386.rpm
Note: For Example if you are Using Fedora, Redhat, CentOS, Then You Have to Download RPM Package .
If You Are Using Debian, Ubuntu Then You have to download deb Package
3. For Mysql-Server Installation Type the Following Command on Terminal
rpm -ivh MySQL-server-community-5.1.34-0.rhel5.i386.rpm
You Can Also Install MySql Server on Server Using the Following command
yum install mysql-server
To start Mysql Automatically After System Reboot
chkconfig mysqld on
To Check Whether mysql Server is Installed or Not
rpm -q mysql
This command Give the Output of Mysql Installed Version on Server
To Restart, Stop, Start Mysql Use the Following Command
/etc/init.d/mysqld restart
/etc/init.d/mysqld stop
/etc/init.d/mysqld start
4. For MySql Administration you have to install Mysql-administrator And MySql-Query-Browser
To Do This
Yum install mysql-Query-browser
Yum install mysql-administrator
How to Install Apache2 on Linux Server ?
1. Apache2 Is Installed by Default in Many Version of Linux If You Select WebServer Option during Your Linux Server Installation
2. You Can Also Manually Install Apache2 using Following RPMS on your Linux distribution CD
rpm -ivh httpd
rpm -ivh httpd-devel
3. To Install Apache2 with Yum Type The Following Command
Yum install httpd
To check whether apache2 is installed or not
rpm -q httpd
To Start Apache2 When System boots
Chkconfig httpd on
To Restart , Stop , Start apache2 Use The Following command
/etc/init.d/httpd restart
/etc/init.d/httpd stop
/etc/init.d/httpd start
Note: /var/www/html/ is Root Folder for Apache2. You have To Put Your Application In /var/root/html/ Folder To Run Your Site
How to Install PHP on Linux Server ?
PHP Is Installed By Default In Many Linux Edition. To Install PHP Type The Following Command
1. Yum install php
Note : php.ini File Is Located On /etc/ Folder .
How to Install FFMPEG on Linux Server ?
1. Install PHP, necessary extensions and supporting software.
Open Terminal & Type the Following Command
2. Yum -y install php-devel php-gd php-mbstring gcc gcc-c++ libtool svn git yasm gsm-devel libogg-devel libvorbis-devel libtheora-devel;
3. wget http://downloads.sourceforge.net/ffmpeg-php/ffmpeg-php-0.5.3.1.tbz2; \
4. tar -jxvf ffmpeg-php-0.5.3.1.tbz2; \
5. cd ffmpeg-php-0.5.3.1; \
6. phpize; \
7 ./configure –prefix=/usr; \
8. make; \
9. make install; \
10. cd ..;
11. add ffmpeg.so extension to php.ini file
Extension=ffmpeg.so
12. Restart httpd Service
/etc/init.d/httpd restart
13. To Verify ffmpeg Installation run phpinfo file on server & Find ffmpeg Entry
14. To download ffmpeg php Extension Go to Below Link
http://sourceforge.net/projects/ffmpeg-php/
open above link and click in Download ffmpeg-php -0.6.0
HI..WHENEVER I TRY TO INSTALLMYSQL,REAL PLAYER,VLC I GET THIS ERROR OMLY…SO PLZZZZZZZZ HELP ME
Loading “installonlyn” plugin
Setting up Install Process
Setting up repositories
http://ftp-stud.fht-esslingen.de/pub/Mirrors/rpm.livna.org/repo/6/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Date: Fri, 11 Sep 2009 01:55:30 GMT
Server: Apache/2.2.11 (Fedora)
Vary: accept-language,accept-charset
Accept-Ranges: bytes
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Content-Language: en
Trying other mirror.
ftp://mirrors.tummy.com/pub/rpm.livna.org/repo/6/i386/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
http://rpm.livna.org/repo/6/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Date: Fri, 11 Sep 2009 01:54:58 GMT
Server: Apache/2.2.3 (Red Hat)
Content-Length: 308
Content-Type: text/html; charset=iso-8859-1
Trying other mirror.
http://wftp.tu-chemnitz.de/pub/linux/livna/repo/6/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Date: Fri, 11 Sep 2009 01:55:35 GMT
Server: Apache/2.2.3 (Scientific Linux)
Content-Length: 338
Content-Type: text/html; charset=iso-8859-1
Trying other mirror.
Error: Cannot open/read repomd.xml file for repository: livna
[root@localhost ~]#
I have gone through the steps in “How to Install FFMPEG on Linux Server ?”—till step 7 (means ffmpeg installed successfully)there is no problem.
(problem is with compilation of ffmpeg-php)
when I gave make command there comes various errors as follows:
****************************************************
[root@prapod ffmpeg-php-0.5.3.1]# make
/bin/sh /usr/local/src/ffmpeg-php-0.5.3.1/libtool –mode=compile gcc -I. -I/usr/local/src/ffmpeg-php-0.5.3.1 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.5.3.1/include -I/usr/local/src/ffmpeg-php-0.5.3.1/main -I/usr/local/src/ffmpeg-php-0.5.3.1 -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -I/opt/lampp/include/php -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c -o ffmpeg-php.lo
gcc -I. -I/usr/local/src/ffmpeg-php-0.5.3.1 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.5.3.1/include -I/usr/local/src/ffmpeg-php-0.5.3.1/main -I/usr/local/src/ffmpeg-php-0.5.3.1 -I/opt/lampp/include/php -I/opt/lampp/include/php/main -I/opt/lampp/include/php/TSRM -I/opt/lampp/include/php/Zend -I/opt/lampp/include/php/ext -I/opt/lampp/include/php/ext/date/lib -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -I/opt/lampp/include/php -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c -fPIC -DPIC -o .libs/ffmpeg-php.o
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c:40:17: error: php.h: No such file or directory
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c:45:21: error: php_ini.h: No such file or directory
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c:46:25: error: php_globals.h: No such file or directory
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c:47:31: error: ext/standard/info.h: No such file or directory
In file included from /usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c:49:
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffmpeg_module_entry’
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:59: warning: data definition has no type or storage class
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:59: warning: type defaults to ‘int’ in declaration of ‘PHP_MINIT_FUNCTION’
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:59: warning: parameter names (without types) in function declaration
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:60: warning: data definition has no type or storage class
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:60: warning: type defaults to ‘int’ in declaration of ‘PHP_MSHUTDOWN_FUNCTION’
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:60: warning: parameter names (without types) in function declaration
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:61: warning: data definition has no type or storage class
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:61: warning: type defaults to ‘int’ in declaration of ‘PHP_RINIT_FUNCTION’
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:61: warning: parameter names (without types) in function declaration
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:62: warning: data definition has no type or storage class
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:62: warning: type defaults to ‘int’ in declaration of ‘PHP_RSHUTDOWN_FUNCTION’
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:62: warning: parameter names (without types) in function declaration
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:63: warning: data definition has no type or storage class
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:63: warning: type defaults to ‘int’ in declaration of ‘PHP_MINFO_FUNCTION’
/usr/local/src/ffmpeg-php-0.5.3.1/php_ffmpeg.h:63: warning: parameter names (without types) in function declaration
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ffmpeg_module_entry’
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c:72: warning: data definition has no type or storage class
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c:72: warning: type defaults to ‘int’ in declaration of ‘ZEND_GET_MODULE’
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c:72: warning: parameter names (without types) in function declaration
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c:81: warning: return type defaults to ‘int’
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c: In function ‘PHP_INI_BEGIN’:
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c:81: error: expected declaration specifiers before ‘PHP_INI_ENTRY’
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c:119: error: expected declaration specifiers before ‘PHP_MSHUTDOWN_FUNCTION’
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c:132: error: expected declaration specifiers before ‘PHP_MINFO_FUNCTION’
/usr/local/src/ffmpeg-php-0.5.3.1/ffmpeg-php.c:147: error: expected ‘{‘ at end of input
make: *** [ffmpeg-php.lo] Error 1
****************************************************
please help
thanks.
It is truly a nice and useful piece of information. I?m glad that you simply shared this helpful info with us. Please stay us informed like this. Thank you for sharing.