1. Install Ubuntu 10.04 Server by select guide Install and set software openssh-server
2. Edit sources list new
http://porpramarn.blogspot.com/2012/04/ubuntu-update-sources-list.html
3. Install apache2 use code apt-get install apache2
4. Setting Vbox ---> Network Adapter1 : Bridged Adapter for get ip real.
5. in ubuntu use command in terminal ifconfig for looking ip for network.
6. Test Apache by open browser and insert address ip in (5.) if browser show It Works. it ok.
7. Set ip new in network. by use command nano /etc/network/interfaces
edit dhcp to static and remote look server2 file nano /etc/network/interfaces or use command
-
- iface eth0 inet static
- address 192.168.0.9
- netmask 255.255.255.0
- network 192.168.0.0
- broadcast 192.168.0.255
- gateway 192.168.0.2
-
8. restart network by use command /etc/init.d/networking restart
9. Test apache by (6.) . by use new ip.
10. if (9.) not work. use command check LAN (
) or (
for look etc and use
and restart networking) .
if it ready not use command in (10).
11. install MySql-server by use command (
- apt-get install mysql-server
and set password root) step install select apache2 and set password 3 times
12. Test phpmyadmin by open browser get address IP/phpmyadmin and insert user and password
13. Copy file backup for server and extract and create new database in phpmyadmin is name same database real.
14. import database
15. Install webmin by copy file backup to server2/var/www/cc. by use ftp in ubuntu or other method.
16. use code in terminal for servertest (
)
for download file insert home for server test. Or use method other by
computer is install apache it can shared file for other computer
download. by paste in var/www/cc.
17. install webmin by use command (
- dpkg -i webmin_1.580_......name file
).step install you must set password for sa. if step install error some packet. so use command (
). And test webmin by open browser insert address IP:10000 (https)
After
install webmin finish. you can use webmin upload file or delete file
and extract file in program webmin. by insert menu other and select file
manager. or you can use command
18. copy file for web to
servertest. by copy file extarnet.tar.gz and paste in cc for computer is
run apache example paste in server2/var/www/cc by use ftp for ubuntu or
use upload file in webmin.
19. use command in terminal for servertest (
) for download file paste in home for servertest.
20. extract file in home by use command (
- tar -zxvf extranet....file name
)
21. enter in var and www by use command cd var, cd www
22. move all file in folder to /var/www/ by use command (
)
24. delete file index.html in program webmin in folder /var/www/ and test run web by enter ip.
25. if web not run or error. you must install packet by use command (
- apt-get install php5-sybase
) and test run web
26. edit file getNews.php by change split to explode.
Finished install web Extranet and phpmyadmin
Install syslog
1. install ntp by use command (
)
2. edit server (
change server to 192.168.0.252 << NTP Server IP
use ssh enter to ip. for copy command in blog paste so not typing.
by run terminal in ubuntu computer and use command
insert password of servertest
And see this blog. Method install syslog
http://porpramarn.blogspot.com/2012/04/ubuntu-centralized-log-with-logzilla.html
1. step difference.
in 1.
if you copy file logzilla_v2...file name to server2/var/www/cc you can use command
in 1.
- mv php-syslog-ng logzilla
you must move to file /var/www/
2.
difference step 2.Edit /etc/syslog-ng/syslog-ng.conf . by copy เฉพาะ
Code ตรง ส่วน ### Sources ### ไปวางต่อท้าย ไฟล์ดังกล่าว ไม่ต้องทับหมด
- ### Sources ###
- source s_local {
- # message generated by Syslog-NG
- internal();
- # standard Linux log source (this is the default place for the syslog()
- # function to send logs to)
- unix-stream("/dev/log");
- # messages from the kernel
- file("/proc/kmsg" log_prefix("kernel: "));
- };
-
- ### Destinations ###
- destination d_logzilla {
- program("/var/www/logzilla/scripts/db_insert.pl"
- template("$HOST\t$FACILITY\t$PRIORITY\t$LEVEL\t$TAG\t$YEAR-$MONTH-$DAY\t$HOUR:$MIN:$SEC\t$PROGRAM\t$MSG\n")
- );
- };
-
- ### Logs ###
- log {
- source(s_local);
- destination(d_logzilla);
- };
-
3. difference step 3.
in step install you must answer ok and yes
And install
after install fist command.
4. difference step 5. set time
you mush select 2 and enter.
5. difference step 6. step install LogZilla setup is not font red in page. if have font red you must edit file.
- nano /etc/php5/apache2/php.ini
- nano /etc/php5/cli/php.ini
ตาม error นั้น ค้นหาและ แก้ไฟล์ save