miércoles, 20 de febrero de 2013

Apache PHP Mysql NetBSD

NAPM Server NetBSD

#cd /usr/pkgsrc/www/apache2
#make install clean
#cd /usr/pkgsrc/www/php4/
#make install clean

Now we gonna install the module for php on apache

#cd /usr/pkgsrc/www/ap-php/
#make install clean
#cd /usr/pkgsrc/databases/php-mysql
#make install clean

we need to add the mysql.so extention on to php.ini

#vi /usr/pkg/etc/php.ini
then we add extension=mysql.so where “Dynamic Extensions” is
#cd /usr/pkgsrc/databases/mysql4-server
#make install clean

mysql will install the mysql-client too at the end you just need
to do:
#cp /usr/pkg/share/examples/rc.d/mysqld /etc/rc.d/

if the file goes as rc.d into /etc/rc.d just rename it to mysqld
then add

#echo “mysqld=YES” >> /etc/rc.conf

and then

/etc/rc.d/mysqld start

Starting MySQL ….
After the tables are set up and the MySQL server is running,
please remember to set a password for the MySQL root user!
This is done by running both:

#/usr/pkg/bin/mysqladmin -u root -p password ‘new-password’
#/usr/pkg/bin/mysqladmin -h `hostname` -u root -p password ‘new-password’

The “Enter password:” prompt is asking for the existing password.
As there is no existing password, just press the Return key.
thats it enjoy it


No hay comentarios:

Publicar un comentario

Nota: solo los miembros de este blog pueden publicar comentarios.