You may be conversant with the terms LAMP and WAMP. This means a stack of applications.
For LAMP = Linux, Apache, Mysql and Php/Perl/Python.
For WAMP = Windows, Apache, Mysql and Php/Perl/Python.
To get your new Solaris 11 installation SAMP ready, we need to install Apache, Mysql and Php.
kilo@kilo:~$ sudo -s
Password:
root@kilo:/home/kilo#
root@kilo:/home/kilo# pkg refresh
root@kilo:/home/kilo# pkg install amp
Packages to install: 12
Create boot environment: No
Services to restart: 1
DOWNLOAD PKGS FILES XFER (MB)
database/mysql-51 3/12 554/729 59.0/75.2
When done, enable the apache and mysql service.
root@kilo:/home/kilo#svcadm enable apache22
root@kilo:/home/kilo#svcadm enable mysql
By default, the mysql root user has no password.
root@kilo:/home/kilo# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.1.37 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>;
We can set the password for the root user in mysql using
If you get the error -
It means that the command mysqladmin is not in the path.
root@kilo:/home/kilo# which mysqladmin
which: no mysqladmin in (/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin)
To solve this, use the full path for the command.
root@kilo:/home/kilo# find / -name mysqladmin
/usr/mysql/5.1/bin/sparcv9/mysqladmin
/usr/mysql/5.1/bin/mysqladmin
/usr/mysql/5.1/bin/mysqladmin -u root password "PASSWORD"
For LAMP = Linux, Apache, Mysql and Php/Perl/Python.
For WAMP = Windows, Apache, Mysql and Php/Perl/Python.
To get your new Solaris 11 installation SAMP ready, we need to install Apache, Mysql and Php.
kilo@kilo:~$ sudo -s
Password:
root@kilo:/home/kilo#
root@kilo:/home/kilo# pkg refresh
root@kilo:/home/kilo# pkg install amp
Packages to install: 12
Create boot environment: No
Services to restart: 1
DOWNLOAD PKGS FILES XFER (MB)
database/mysql-51 3/12 554/729 59.0/75.2
When done, enable the apache and mysql service.
root@kilo:/home/kilo#svcadm enable apache22
root@kilo:/home/kilo#svcadm enable mysql
By default, the mysql root user has no password.
root@kilo:/home/kilo# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.1.37 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>;
We can set the password for the root user in mysql using
root@kilo:/home/kilo#mysqladmin -u root password "PASSWORD"
If you get the error -
bash: mysqladmin: command not found
It means that the command mysqladmin is not in the path.
root@kilo:/home/kilo# which mysqladmin
which: no mysqladmin in (/usr/gnu/bin:/usr/bin:/usr/sbin:/sbin)
To solve this, use the full path for the command.
root@kilo:/home/kilo# find / -name mysqladmin
/usr/mysql/5.1/bin/sparcv9/mysqladmin
/usr/mysql/5.1/bin/mysqladmin
/usr/mysql/5.1/bin/mysqladmin -u root password "PASSWORD"
No comments:
Post a Comment