Prota veveonomaste oti yparxoun ta parakato paketa
pkginfo SUNWapchr SUNWapchu SFWmphp SUNWzlib SUNWmysqlr SUNWmysqlu
RITHMISH THS MYSQL
Meta kanoume initialize thn mysql
su
/usr/sfw/bin/mysql_install_db
dinoume to root password
/usr/sfw/bin/mysqladmin -u root password ‘pass’
/usr/sfw/bin/mysqladmin -u root -h linuxer password ‘pass’
meta dimiourgoume enan xrhsth gia thn mysql
groupadd mysql
useradd -g mysql mysql
chgrp -R mysql /var/mysql
chmod -R 770 /var/mysql
installf SUNWmysqlr /var/mysql d 770 root mysql
katopin trexoume thn mysql
/usr/sfw/sbin/mysqld_safe &
kai elenxoume an ontos trexei sosta
cd /usr/sfw/mysql/mysql-test
./mysql-test-run
Meta gia to boot
kanoume copy to mysql.server sto init.d
cp /etc/sfw/mysql/mysql.server /etc/init.d/mysql
ln /etc/init.d/mysql /etc/rc3.d/S99mysql
ln /etc/init.d/mysql /etc/rc0.d/K00mysql
ln /etc/init.d/mysql /etc/rc1.d/K00mysql
ln /etc/init.d/mysql /etc/rc2.d/K00mysql
ln /etc/init.d/mysql /etc/rcS.d/K00mysql
Dimiourgoume to my.cnf sto /etc na periexei
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
# this version on solaris have a bug with setings for character set on client side!
#character-sets-dir = /usr/sfw/share/mysql/charsets
#default-character-set = greek
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
net_buffer_length = 2K
thread_stack = 64K
server-id = 1
character-sets-dir = /usr/sfw/share/mysql/charsets
default-character-set = greek
language=greek
[mysqldump]
quick
max_allowed_packet = 16M
character-sets-dir = /usr/sfw/share/mysql/charsets
default-character-set = greek
[mysql]
no-auto-rehash
[isamchk]
key_buffer = 8M
sort_buffer_size = 8M
[myisamchk]
key_buffer = 8M
sort_buffer_size = 8M
[mysqlhotcopy]
interactive-timeout
[ODBC]
default-character-set = greek
!Simiosh gia to config tou webmin
To path gia ta binaris einai to /usr/sfw/bin
To Command to start MySQL server /etc/init.d/mysql start
To Command to stop MySQL server /etc/init.d/mysql stop
Path to MySQL shared libraries directory
/usr/sfw/lib/mysql
gia na mporesoume na diaxiristoume thn mysql sosta apo to webmin prepei na egatastathoun ta
paketa
DBI kai DBD::mysql
ths perl
Sto istalation dinoume ths parakato metavlites perivalontos gia na treksei sosta
Makefile.PL arguments CC=’gcc -B/usr/ccs/bin/’ LD=’gcc -B/usr/ccs/bin/’ LDFLAGS=’-L/usr/local/lib’ LDDLFLAGS=’-G -L/usr/local/lib’ OPTIMIZE=’-O’ CCCDLFLAGS=’-fPIC’ CCFLAGS=’-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64′
Makefile.PL environment variables
PATH /usr/bin:/usr/sfw/bin:/usr/ccs/bin
!!EGATASTASH APACHE KAI PHP
/opt/sfw/apache/x_postinstall
cp /etc/apache/httpd.conf-php-example /etc/apache/httpd.conf
Alazoume mesa sto httpd.conf ta:
<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>
ServerName 111.111.111.111
kai meta kanoume restart ton Apache
/usr/apache/bin/apachectl restart
!Seimiosh ta path gia na mpoun sto webmin einai
Path to httpd.conf /etc/apache/httpd.conf
Path to srm.conf /etc/apache/srm.conf
Path to access.conf /etc/apache/access.conf
Path to mime.types /etc/apache/mime.types
Apache server root directory /var/apache/htdocs
Path to httpd executable /usr/apache/bin/httpd
Path to the apachectl command /usr/apache/bin/apachectl
!simiosh gia to sendmail
An deis kati san to parakato me dmesg
unable to qualify my own domain name (yourname) — using short name
Tote repei sto /etc/hosts na mpei to parakato
xxx.xxx.xxx.xxx yourname.com yourname
opou xxx fisika h ip tou mhxanimatos sou