OAMP+PhpMyadmin+ffmpeg –> streaming server

August 6, 2008 at 12:40 pm (Tutorial) (, , )

Platform : OpenBSD 4.3

This tutorial using pkg_add to fetch the installer,,

And I use apache server with include in the first install of OpenBSD

In this case, your network is already configured with internet enable

In my machine, I must set the gateway and proxy

(*)network configuration

#route add default 10.xx.xx.xx // ß IP gateway

#export http_proxy=http://10.xx.xx.xx:[port proxy,by default 3128]

#echo “nameserver 10.xx.xx.xx” >> /etc/resolv.conf

!— finish configure the network –!

(*) Instalation Mysql-server

#export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.3/packages/`machine -a`/

#pkg_add –i –v mysql-server

parsing mysql-server-5.0.51a

mysql-server-5.0.51a:parsing mysql-client-5.0.51a

mysql-server-5.0.51a:mysql-client-5.0.51a: complete

mysql-server-5.0.51a:parsing p5-DBD-mysql-4.005

mysql-server-5.0.51a:parsing p5-DBI-1.59

mysql-server-5.0.51a:parsing p5-PlRPC-0.2018p0

mysql-server-5.0.51a:parsing p5-Net-Daemon-0.43

mysql-server-5.0.51a:p5-Net-Daemon-0.43: complete

mysql-server-5.0.51a:p5-PlRPC-0.2018p0: complete

mysql-server-5.0.51a:p5-DBI-1.59: complete

mysql-server-5.0.51a:p5-DBD-mysql-4.005: complete

adding group _mysql

adding user _mysql

installed /etc/my.cnf from /usr/local/share/mysql/my-medium.cnf****** | 96%

mysql-server-5.0.51a: complete

— mysql-server-5.0.51a ——————-

(*) After finish install the mysql server, do the configuration..

Install default MySQL database

By default MySQL database is not initialized, enter the following command to create a default database:

#/usr/local/bin/mysql_install_db

Start MySQL server

Now you have MySQL server installed. Start the server daemon, enter:

#/usr/local/share/mysql/mysql.server start

Create MySQL startup and stop script

Finally, you need a script to start and stop MySQL Server.

In order to start MySQL server at boot time, enter following command in /etc/rc.conf.local file:

#echo “mysql=\”YES\”" >> /etc/rc.conf.local

#vi /etc/rc.local

# MySQL startup

if [ X"${mysql}" == X"YES" -a -x /usr/local/bin/mysqld_safe ];

then echo -n ” mysqld ” /usr/local/bin/mysqld_safe –user=_mysql &

fi

//Save and close the file.

Permalink 4 Comments