Building Web Server(1) in BSD

Posted on June 11th, 2008 in Linux Networking by justi

Web server is place to publication all of information to public using internet or intranet about all information by individu, group, organisation, goverment or enterprise. web server support by php, OpenSSL, Mysql etc..popular application use to web server is Apache HTTP server.

to continue this articel follow step below:

Download

you must get this application from internet to build Web Server, there are is Apache v2.2.3, Mysql v5.0.22, OpenSSL v0.9.8d and PHP v5. you can searching using google or other.

MySql Installation

note: using ports to install mysql,,step:

root# cd/use/ports/database/mysql51-server

root# sudo make install

root# sudo portupgrade-rR mysql51-server

to activate mysql at booting open file /etc/rc.conf and add this code :

mysql_enable=”yes”

copy file configuration mysql:

# sudo cp/usr/local/share/mysql/my-medium.cnf /var/db/mysql/my.cnf

# sudo chgrp mysql /var/db/mysql/my.cnf

running command below to activated MySQL daemon.

# root /usr/local/etc/rc.d/mysql-server start

if succesful, you must see this line at running the commands ps ax | grep mysql:

678 p0- I 0:00.01 /bin/sh /usr/local/bin/mysqld_safe –defaults-extra-file=/var/db/mysql/my.cnf –user=mysql –datadir=/var/db/mysql
701 p0- S 383:04.45 /usr/local/libexec/mysqld –defaults-extra-file=/var/db/mysql/my.cnf –basedir=/usr/local –datadir=/var/db/mysql

create password for MySQL root user :

# sudo mysqladmin -u root password ‘pas-root-mysql’

try to enter to MySQL console use the password root

$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 603704 to server version: 5.0.22

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> \q
Bye

Next articel is OpenSSL installation, Apache Installation, PHP Installation

thanks to –>

http://www.bowe.id.au/michael/isp/webmail-server.htm#MYSQL
http://httpd.apache.org/docs/2.2/
http://www.google.co.id

Post a comment