/bin/log

Log my thoughts

Home About GitHub

18 Oct 2012
LAMP archlinux


pacman -S apache php php-apache mysql

grep http /etc/passwd

useradd -d /srv/http -r -s /bin/false -U http

vim /etc/hosts

127.0.0.1 localhost.localdomain localhost yourhostname ::1 localhost.localdomain localhost yourhostname

DAEMONS=(… httpd …)

rc.d start httpd


Include conf/extra/httpd-userdir.conf

$ chmod o+x ~ $ chmod o+x ~/publichtml $ ln -s publichtml www

———————–php———————————-

vim /etc/httpd/conf/httpd.conf

LoadModule php5_module modules/libphp5.so

Include conf/extra/php5_module.conf

TypesConfig conf/mime.types

IMEMagicFile conf/magic

vim /etc/httpd/conf/mime.types

application/x-httpd-php5 php php5

rc.d restart httpd

<?php phpinfo(); ?>

———————-mysql———————————-

mysqladmin -u root password password

mysql -u root -p


Carpe diem,
JZR at 19:30

Home About GitHub