スポンサーリンク インストール方法 †http://iris.homeunix.net/yayoi/freebsd/inst/install.asp ports †http://www.east.jdmia.or.jp/~tamotsu/how-to-install/install-ports.php #cd /tmp/ #fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/ports/ports.tar.gz #cd /usr/ #tar zxvf /home/src/ports.tar.gz
shell †#chsh
ssh †/etc/ssh/sshd_config Port 22 Protocol 2 PermitRootLogin no PasswordAuthentication no PermitEmptyPasswords no RSAAuthentication no PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys UsePAM no #/etc/rc.d/sshd restart nat †/etc/rc.conf ifconfig_aue0="inet 192.168.101.1 netmask 255.255.255.0" firewall_enable="YES" firewall_type="open" natd_enable="YES" natd_interface="em0" natd_flags="-f /etc/natd.conf" /etc/natd.conf log no verbose no deny_incoming no log_denied yes log_facility security use_sockets yes same_ports yes unregistered_only yes dhcp †
#cd /usr/ports/net/isc-dhcp3-server/ #make #make install #cp /usr/ports/net/isc-dhcp3-server/work/dhcp-3.0.5/server/dhcpd.conf /usr/local/etc/ #vi /usr/local/etc/dhcpd.conf option domain-name "hoge.jp"; option domain-name-servers hogehoge, hoge; default-lease-time 600; max-lease-time 7200; ddns-update-style ad-hoc; log-facility local7; subnet 192.168.101.0 netmask 255.255.255.0 { range 192.168.101.100 192.168.101.200; option routers 192.168.101.1; # option broadcast-address 192.168.101.255; } /etc/rc.conf dhcpd_enable="YES" dhcpd_ifaces="aue0" dhcpd_conf="/usr/local/etc/dhcpd.conf" #/usr/local/sbin/dhcpd aue0 & apache2 †#cd /usr/ports/www/apache22/ #make #make install #vi /etc/rc.conf hostname="***.co.jp" #vi /usr/local/etc/apache22/httpd.conf ServerName ***.co.jp:80 Include etc/apache22/extra/httpd-userdir.conf #vi /etc/hosts ***.*.**.*** ***.co.jp [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter #vi /boot/loader.conf accf_http_load="YES" mysql †#cd /usr/ports/databases/mysql50-server/ #make #make install mkdir /data/mysql chown mysql:mysql /data/mysql mkdir /data/mysql/data chown mysql:mysql /data/mysql/data chmod 700 /data/mysql/data /etc/rc.conf に以下を追加する。 mysql_enable="YES" mysql_dbdir="/data/mysql/data" 参考:http://www.bugbearr.jp/?FreeBSD%2FMySQL #cd /usr/ports/databases/phpmyadmin/ #make #make install jpeglib †#cd /usr/ports/graphics/jpeg/ #make #make install #/usr/local/lib/ pnglib †#cd /usr/ports/graphics/jpeg/ #make #make install #/usr/local/lib/ gd †#cd /usr/ports/graphics/gd/ #make #make install #cd /usr/ports/graphics/ php5-gd/ #make #make install php5 †#cd /usr/ports/lang/php5 #make config Build Apache Module #vi Makefile --with-mysql #make #make install #php5-extensions/ #make #make install #cd /usr/local/etc/apache22/ #vi httpd.conf LoadModule php5_module libexec/apache22/libphp5.so #vi mime.types application/x-httpd-php php application/x-httpd-php-source phps #mysql # mysqladmin -u root password ******** wget †#cd /usr/ports/ftp/wget #make #make install #phpmyadmin #cd /usr/ports/databases/phpmyadmin #make #make install To make phpMyAdmin available through your web site, I suggest that you add something like the following to httpd.conf: Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/" <Directory "/usr/local/www/phpMyAdmin/"> Options none AllowOverride Limit Order Deny,Allow Deny from all Allow from 127.0.0.1 .example.com ***.***.***.**** </Directory> #cd /usr/local/www/phpMyAdmin/ # sudo cp config.sample.inc.php config.inc.php #vi config.inc.php $cfg['blowfish_secret'] = 'aaaaaaaahogehgo' 長くしすぎるとエラー /*$cfg['Servers'][$i]['controluser'] = 'pmausr';*/^M /*$cfg['Servers'][$i]['controlpass'] = 'pmapass';*/^M Total:9042 / Today:1 / Yesterday:3 スポンサーリンク |