最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

HowtoInstallLEMPServerinSlackware14.1_MySQL

来源:动视网 责编:小采 时间:2020-11-09 19:12:53
文档

HowtoInstallLEMPServerinSlackware14.1_MySQL

HowtoInstallLEMPServerinSlackware14.1_MySQL:In this tutorial, I will show you how to install LEMP( Linux/ Nginx/Mysql/Php) serverPlease prepare your machine and follow the steps bellow.Please download nginx fromhttp://slackbuilds.org/repository/14.1/network/nginx/.Source Downloads:ng
推荐度:
导读HowtoInstallLEMPServerinSlackware14.1_MySQL:In this tutorial, I will show you how to install LEMP( Linux/ Nginx/Mysql/Php) serverPlease prepare your machine and follow the steps bellow.Please download nginx fromhttp://slackbuilds.org/repository/14.1/network/nginx/.Source Downloads:ng
 In this tutorial, I will show you how to install LEMP( Linux/ Nginx/Mysql/Php) server

Please prepare your machine and follow the steps bellow.

Please download nginx fromhttp://slackbuilds.org/repository/14.1/network/nginx/.

Source Downloads:
nginx-1.6.0.tar.gz

Download SlackBuild
nginx.tar.gz

Extract:

nginx.tar.gz

put nginx-1.6.0.tar.gz in nginx folder.

cdnginx root@slack1:~/Install/nginx# chmod +x nginx.SlackBuildroot@slack1:~/Install/nginx# ./nginx.SlackBuildusr/man/man8/usr/man/man8/nginx.8.gzSlackware package /tmp/nginx-1.6.0-i486-1_SBo.tgz created.

Start Install Nginx

 installpkg /tmp/nginx-1.6.0-i486-1_SBo.tgz Verifying package nginx-1.6.0-i486-1_SBo.tgz. Installing package nginx-1.6.0-i486-1_SBo.tgz: PACKAGE DESCRIPTION: # nginx (http/imap/pop3 proxy) # # Nginx [engine x] is a high-performance HTTP server and reverse proxy, # as well as an IMAP/POP3 proxy server. # # Nginx was written by Igor Sysoev. # # Homepage: http://nginx.net/ # Executing install script for nginx-1.6.0-i486-1_SBo.tgz. Package nginx-1.6.0-i486-1_SBo.tgz installed.

make nginx’s startup script executable, and start it.

chmod +x /etc/rc.d/rc.nginx/etc/rc.d/rc.nginx startStarting Nginx server daemon...

Mysql

The Slackware 14.1 is using Mariadb by default.

cd /usr/share/mysqlcp my-medium.cnfmy.cnfchmod +x /etc/rc.d/rc.mysqld mysql_install_dbchown -R mysql:mysql /var/lib/mysql/etc/rc.d/rc.mysqld startmysql_secure_installation

PHP

chmod +x /etc/rc.d/rc.php-fpm/etc/rc.d/rc.php-fpm startStarting php-fpm Created directory: /var/lib/net-snmp/mib_indexesdone

Edit/etc/nginx/nginx.conf,

and index.php to the standard location:

 location / {root /var/www/unixmen;indexindex.php index.html index.htm;}

Uncomment the php section.

location ~ /.php$ {	root	 /var/www/unixmen;	fastcgi_pass 127.0.0.1:9000;	fastcgi_indexindex.php;	fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;	include	fastcgi_params;}

Make phpinfo page.

vi/var/www/unixmen/info.php

Restart apache

/etc/rc.d/rc.nginx restartShutdown Nginx gracefully...Starting Nginx server daemon...root@slack1:/usr/share/mysql#

checkhttp://ip/info.php.

phpMyadmin

Download the source and slackbuild fromhttp://slackbuilds.org/repository/14.1/network/phpmyadmin/.

Edit phpmyadmin.SlackBuild

DOCROOT=/var/www/ngdocs# you change it to your root web directory PHPGROUP=root =change to othe ownerorleaveit like this
 makethe build ready ./phpmyadmin.SlackBuildSlackware package /tmp/phpmyadmin-4.1.8-noarch-1_SBo.tgz created.Install Now root@slack1:~/Install/phpmy/phpmyadmin# installpkg /tmp/phpmyadmin-4.1.8-noarch-1_SBo.tgzVerifying package phpmyadmin-4.1.8-noarch-1_SBo.tgz.Installing package phpmyadmin-4.1.8-noarch-1_SBo.tgz:PACKAGE DESCRIPTION:# phpmyadmin (MySQL administration over the web)## phpMyAdmin is a free software tool written in PHP intended# to handle the administration of MySQL over the web.# phpMyAdmin supports a wide range of operations with MySQL# and also includes ability to run SQL statements directly.## Homepage: http://www.phpmyadmin.net/#Package phpmyadmin-4.1.8-noarch-1_SBo.tgz installed.root@slack1:~/Install/phpmy/phpmyadmin#cd /var/www/unixmen/phpmyadmincp config.sample.inc.phpconfig.inc.phpchmod 0755/var/www/unixmen/phpmyadmin/

Restart apache

Load the page http://ip/phpmyadmin.

Enjoy!

For questions please refer to our Q/A forum at :http://ask.unixmen.com/

Share this Article:0000000

文档

HowtoInstallLEMPServerinSlackware14.1_MySQL

HowtoInstallLEMPServerinSlackware14.1_MySQL:In this tutorial, I will show you how to install LEMP( Linux/ Nginx/Mysql/Php) serverPlease prepare your machine and follow the steps bellow.Please download nginx fromhttp://slackbuilds.org/repository/14.1/network/nginx/.Source Downloads:ng
推荐度:
标签: in 14 linux
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top