Linux, Open Source, Quantum Physics and more...

και λίγα λόγια για μένα!

  • Πολιτική απορρήτου

Solaris Apache MySql PHP

17/06/2006

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

 

Posted in: Solaris Corner Tagged: apache, mysql, php, solaris, web server
← Fix MySql UTF8 export
Intel και OLPC →

Πρόσφατα άρθρα

  • 39α σε docker
  • Πέθανε ο John Warnock
  • Προσοχή καταστρέφετε ο κόσμος
  • ναι είναι γεγονός
  • MS Linux 1.0

Ιστορικό

  • Νοέμβριος 2024
  • Αύγουστος 2023
  • Οκτώβριος 2022
  • Απρίλιος 2018
  • Νοέμβριος 2016
  • Φεβρουάριος 2016
  • Νοέμβριος 2015
  • Μάιος 2015
  • Φεβρουάριος 2015
  • Οκτώβριος 2014
  • Σεπτέμβριος 2014
  • Ιούλιος 2014
  • Δεκέμβριος 2013
  • Ιούλιος 2013
  • Μάρτιος 2013
  • Οκτώβριος 2012
  • Ιούνιος 2012
  • Ιανουάριος 2012
  • Δεκέμβριος 2011
  • Οκτώβριος 2011
  • Ιούλιος 2011
  • Ιανουάριος 2011
  • Δεκέμβριος 2010
  • Οκτώβριος 2010
  • Σεπτέμβριος 2010
  • Ιούνιος 2010
  • Μάιος 2010
  • Μάρτιος 2010
  • Φεβρουάριος 2010
  • Δεκέμβριος 2009
  • Οκτώβριος 2009
  • Σεπτέμβριος 2009
  • Αύγουστος 2009
  • Μάιος 2009
  • Φεβρουάριος 2009
  • Ιανουάριος 2009
  • Ιούνιος 2008
  • Μάιος 2008
  • Απρίλιος 2008
  • Μάρτιος 2008
  • Φεβρουάριος 2008
  • Ιανουάριος 2008
  • Ιούνιος 2006
  • Μάρτιος 2006
  • Νοέμβριος 2005
  • Οκτώβριος 2005
  • Ιανουάριος 2005
  • Μάιος 2004
  • Μάρτιος 2004
  • Ιανουάριος 2004
  • Νοέμβριος 2003
  • Ιανουάριος 2003

Kατηγορίες

  • GNU & άλλα..
  • Solaris Corner
  • Άκρος κουλά και απίθανα
  • Άρθρα για το Linux
  • Γενικού ενδιαφέροντος
  • Δελτία Τύπου
  • Εγκαταστάσεις
  • Ηλεκτρονικά
  • Ηλεκτρονικά Projects
  • Μικρά και χρήσιμα
  • Προγράμματα – Projects

Ψυχανάλυσε με


(αν μπορείς :Ρ)
Dimokritos

Copyright © 2025 Linux, Open Source, Quantum Physics and more....

Me WordPress Theme by themehall.com