Instalando o Nginx, MySQL, PHP e phpMyAdmin no ubuntu 8

preview_player
Показать описание
###Como Instalar o Nginx, MySQL, PHP e phpMyAdmin no ubuntu 8###

1 - Use os comandos de instalação abaixo:
$sudo apt-get update
$sudo apt-get install mysql-server

2 - Crie uma senha.

3 - Use os comandos de instalação abaixo:
$sudo mysql_install_db
$sudo /usr/bin/mysql_secure_installation
$sudo apt-get install nginx
$sudo service nginx start

4 - Editar o arquivo default em: /etc/nginx/sites-available
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
##

# You should look at the following URL's in order to grasp a solid understanding

# of Nginx configuration files in order to fully unleash the power of Nginx.

#

# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.

#

# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.

##

# Default server configuration

#
server {

listen 80;

root /usr/share/nginx/html;

location / {

}

root /usr/share/nginx/html;

}

location ~ \.php$ {

try_files $uri =404;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

include fastcgi_params;

}

}

#

# You can move that to a different file under sites-available/ and symlink that

# to sites-enabled/ to enable it.

#

#server {

# listen 80;

# listen [::]:80;

#

# root /usr/share/nginx/html;

#

# server_name SEUIPAQUI;

#

# location / {

# }

#

#

# root /usr/share/nginx/html;

# }

#

# location ~ \.php$ {

# try_files $uri =404;

# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

# include fastcgi_params;

# }

#}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

5 - Use o comando de instalação abaixo:
$sudo apt-get install php5-fpm php5-mysql

8 - Use os comandos de instalação abaixo:
$sudo service php5-fpm restart
$sudo service nginx restart

9 - texto do arquivo:
"SINAL DE MENOR QUE"?php
phpinfo();
?"SINAL DE MAIOR QUE"

10 - Use os comandos de instalação abaixo:
$sudo apt-get update
$sudo apt-get install phpmyadmin
$sudo ln -s /usr/share/phpmyadmin /usr/share/nginx/html
$sudo php5enmod mcrypt
$sudo service php5-fpm restart
Рекомендации по теме