本文目录
- ubantu下如何配置lamp
- 如何安装LAMP环境部署wordpress
- lamp 只允许登录https 怎么配置
- 如何搭建LAMP环境
- 怎么搭建lamp wordpress
- 如何在windows上搭建LAMP环境
- 如何centos使用yum方式安装lamp环境
- Linux系统怎么配置LAMP环境
- Centos7搭建LAMP
- 什么是LAMP怎么做
ubantu下如何配置lamp
零基础不适合自学的ubuntu本身就内置了lamp-server的单独配置amp,需要apt很多包的,做为程序员只是搭个开发环境,大可不必像网络服务器那样配置,可以使用tasksel在root管理员权限下直接安装lamp-server套件(ubuntu自带的)。使用tasksel安装lamp-server很简单:1 你按ctrl+alt+t 打开命令行的终端窗口,执行命令:sudo passwd root,回车后提示要输入当前用户密码,验证通过后会提示设置root密码,重复密码。再重新启动用root登陆。 如果没安装tasksel要先安装sudo apt-get install tasksel2在终端窗口,执行命令 :sudo tasksel install lamp-server,安装过程中会提示你输入mysql的root密码。3在文件夹/var/www/下,创建个php文件用浏览器测试下,如果看到内容就成功了,如果提示是否保存这个php文件?执行命令:sudo /etc/init.d/apache2 restart, 重新启动apache就可以了当然另一种简单可行方案就是 用集成开发包 xampp 等
如何安装LAMP环境部署wordpress
安装程序支持的环境是支持一款开源的程序,能够是否顺利运行的前提。如果你的环境不支持lamp,那么就以为着你的环境不支持运行php环境。既然我们已经安装好了lamp,那么接下来就是在安装wordpress的时候的必要配置了。在lamp环境配置好了之后,我们的默认网站目录在var/www/html环境下,大家需要被wordpress安装到这个目录下面,才能保证wordpress生效。首先,让我们切换用户目录到var/www/html,使用cd命令,紧接着就是下载wordpress安装包到这个目录下使用如下命令:
lamp 只允许登录https 怎么配置
lamp组建是:Linux+Apache+Mysql/MariaDB+Perl/PHP/Python按照以上环境是Apache配置方法:APACHE安装SSL证书:https://www.gworg.com/ssl/106.htmlApache自动跳转到 HTTPS:https://www.gworg.com/ssl/130.html
如何搭建LAMP环境
首先为了搭建一个稳定的lamp的练习环境,确保你的虚拟机可以连网,这里我们使用的yum安装,它可以帮助我们解决软件自己的依赖关系.我还在后面加了postgresql数据库如果不需要的话可以去掉和postgresql的参数.命令如下
yum -y install
5
如果上述进展顺利,那我们接下来进行mysql数据库的配置
命令如下:
启动: /etc/rc.d/init.d/mysqld start
检查启动结果: netstat -tulnp | grep :3306
修改root密码: mysqladmin -u root password ‘你想设置的密码’
6
进入mysql数据库,创建demo库和用于测试的person表,并插入测试数据
7
最后编写php连接mysql的测试代码,检测mysql是否能正常配合php工作
END
怎么搭建lamp wordpress
安装程序支持的环境是支持一款开源的程序,能够是否顺利运行的前提。如果你的环境不支持lamp,那么就以为着你的环境不支持运行php环境。既然我们已经安装好了lamp,那么接下来就是在安装wordpress的时候的必要配置了。在lamp环境配置好了之后,我们的默认网站目录在var/www/html环境下,大家需要被wordpress安装到这个目录下面,才能保证wordpress生效。首先,让我们切换用户目录到var/www/html,使用cd命令,紧接着就是下载wordpress安装包到这个目录下使用
如何在windows上搭建LAMP环境
++++++++++++++++++++++++++++++++++++++++++++++Windows下LAMP环境搭建++++++++++++++++++++++++++++++++++++++++++++++操作系统 : [windows xp professional sp3]服务器 : [apache-2.2.8]PHP : [php-5.2.17]数据库 : [mysql-5.1.49]数据库管理工具 : [phpmyadmin-3.3]++++++++++++++++++++++++++++++++++++++++++++++准备安装软件(download) 1》 [apache_2.2.8-win32-x86-openssl-0.9.8g] http://archive.apache.org/dist/httpd/binaries/win32/apache_2.2.8-win32-x86-openssl-0.9.8g.msi 2》 [php-5.2.17-Win32-VC6-x86] http://windows.php.net/downloads/releases/php-5.2.17-Win32-VC6-x86.zip 3》 [mysql-5.1.49] http://www.mysql.com/downloads/mirror.php?id=398365(需注册) 4》 [phpMyAdmin-3.3.9-all-languages] http://sourceforge.net/projects/phpmyadmin/files%2FphpMyAdmin%2F3.3.9%2FphpMyAdmin-3.3.9-all-languages.zip/download#!md5!3d5ec3d2023946bbca9c4dd182722c8b++++++++++++++++++++++++++++++++++++++++++++++开始安装(安装前建立目录[D:/lamp])D:/lamp --apache2.2 --php --mysql --sites----------------------------------------------------------------------------1》 【apache】---------------------------------------------------------------------------- 1.1》 Welcome to the Installation Wizard for Apache HTTP Server 2.2.8 #单击[Next》] 1.2》 License Agreement #选择(I accept the terms in the license agreement)-》单击[Next》] 1.3》 Read This First #单击[Next》] 1.4》 Server Information Network Domain(e.g.somenet.com): [helloworld.com] Server Name(e.g.www.somenet.com): [www.helloworld.com] Administrator’s Email Address(e.g.webmaster@somenet.com): [helloworld@helloworld.com] #选择(for All Users, on Port 80, as a Service -- Recommended.), 单击[Next》] 1.5》 Setup Type #选择(Custom), 单击[Next》] 1.5》 Custom Setup 单击[Change...], 1.5.1》 Change Current Destination Folder Folder name: [D:/lamp/apache2.2/], 单击[OK], #单击[Next》] 1.6》 Ready to Install the Program #单击[Install] 1.7》 Installaction Wizard Completed #单击[Finish] ---------------------------------------------------------------------------- 2》 【php】 2.1》 将php-5.2.17-Win32-VC6-x86.zip解压到[D:/lamp/php]----------------------------------------------------------------------------3》 【mysql】 3.1》 Welcome o the Setup Wizard for MySQL Server 5.1 #单击[Next》] 3.2》 Setup Type #选择Custom, 单击[Next》] 3.3》 Custom Setup 3.3.1》 单击[Change...], 3.3.2》 Change Current Destination Folder Folder name: [D:/lamp/mysql/] 单击[OK] #单击[Next》] 3.4》 Ready to Install the Program #单击[Install] 3.5》 A MySQL Enterprise subscription is the most... #单击[Next》] 3.6》 The MySQL Enterprise Monitor Service #单击[Next》] 3.7》 Wizard Completed #勾选[Configure the MySQL Server now] #单击[Finish] 3.8》 Welcome to the MySQL Service Instance Configuration Wizard 1.0.17.0 #单击[Next》] 3.9》 MySQL服务器实例配置[MySQL Server Instance Configuration] Detailed Configuration-详细配置 Standard Configuration-标准配置 #选择默认[Detailed Configuration] #单击[Next》] 3.9.1》 服务器类型[Please select a server type. This will influence memory, disk and CPU usage.] [Developer Machine]-开发服务器, 占用内存较少 [Server Machine]-多个服务器共用, 占用内存中等 [Dedicated MySQL Server Machine]-专用服务器, 占用内存较多 #选择默认[Developer Machine] #单击[Next》] 3.9.2》 数据库用途[Please select the database usage] [Multifunctional Database]-多功能数据库,优化InnoDB,MyISAM [Transactional Database Only]-事务数据库,优化InnoDB,MyISAM也可用 [Non-Transactional database Only]-非事务性数据库,适用于简单的网络监控或记录的应用发有分析仅非事务的MyISAM引擎 #选择默认[Multifunctional Database] #单击[Next》] 3.9.3》 InnoDB的数据文件的存放位置[Please select the driver for the InnoDB datafile, if you do not want to use the default settings]s #选择默认 #单击[Next》] 3.9.4》 设置并发连接到服务器的大致数量[Please set the approximate number of concurrent connections to the server] [Decision Support(DSS)/OLAP]-并发数20 [Online Transaction Processing(OLTP)]-并发数500 [Manual Setting]-并发数自定义 #选择[Manual Setting], Concurrent connections #单击[Next》] 3.9.5》 [网络选项]Please set the networking options [Enable TCP/IP Networking]-启用TCP/IP网络 [PortNumber:]-端口 [Add firewall exception for this port]-添加到防火墙例外 [Enable Strict Mode]-启用严格模式 #选择默认[Next》] 3.9.6》 [选择字符集]Please select the default character set. [Standard Character set]-默认Latine 适用于英文或其它西欧语言 [Best Support For Multilingualism]-支持多种语言 [Manual Selected Default Character Set/Collation]-自定义 #选择[Best Support For Multilinguatilsm] #单击[Next》] 3.9.7》 设置Windows选项[Please set the Windows options] [Install As Windows Service[安装为windows服务] [Launch the MySQL Server automatically[自启动] [Include Bin Directory in Windows PATH[加入环境变量] #选择默认 #单击[Next》] 3.9.8》 设置安全选项[Please set the security options] [Current root password]-旧密码,留空 [New root password]-新密码, [Confirm]-确认新密码 [Enable root access from remote machines]-启用root帐号远程访问 [Create An Anonymous Account]-创建匿名帐号 #输入密码和确认密码, 其它默认 #单击[Next》] 3.9.9》 准备执行[Ready to execute...] #单击[Execute] 3.9.10》 Processing configureation... #单击[Finish]---------------------------------------------------------------------------- 4》 【phpMyAdmin】 4.1》 将phpMyAdmin-3.3.9-all-languages.zip解压到[D:/lamp/sites/phpmyadmin/]----------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++【apache配置】 5.1》 httpd.conf(D:/lamp/apache2.2/conf) 5.1.1》 #功能: 加载php模块 #说明: 搜索LoadModule, 在其后面添加 LoadModule php5_module “D:/lamp/php/php5apache2_2.dll“ 5.1.2》 #功能: 设置工作目录 #说明: 搜索DocumentRoot, 修改为 DocumentRoot “D:/lamp/sites“ 5.1.3》 #功能: 设置目录选项 #说明: 搜索《Directory “D:/lamp/apache2.2/htdocs“》, 修改为 《Directory “D:/lamp/sites“》 5.1.4》 #功能: 设置默认文档 #说明: 搜索《Directory /》, 添加 DirectoryIndex index.php index.html 5.1.5》 #功能: 增加php类型 #说明: 在文件末尾加入 AddType application/x-httpd-php .html .php #功能: php.ini所在目录 #说明: 在文件末尾加入 PHPIniDir “D:/lamp/php“ 功能: 不允许访问目录 说明: 搜索Options Indexes FollowSymLinks项,并注释 #Options Indexes FollowSymLinks 5.2》 注意: 修改配置文件后, 重启apache才能生效 5.3》 在D:/lamp/sites/建立文件 #phpinfo.php 输入内容: 《?php phpinfo(); ?》 访问:http://localhost/phpinfo.php 【php配置】 6.1》 php.ini 6.1.1》 D:/lamp/php/php.ini, 复制php.ini-recommended并重命名为php.ini 6.1.2》 #功能: 指定扩展库所在目录 extension_dir = “D:/lamp/php/ext/“ #功能: 开启扩展 #说明: 根据需要开启相应扩展模块, 去掉前面的分号 extension=php_gd2.dll extension=php_mbstring.dll extension=php_mcrypt.dll extension=php_mysql.dll extension=php_mysqli.dll #功能: 设置时区 #说明: PRC表示中国 date.timezone = PRC #功能: 显示错误信息 display_errors = On 6.2》 复制libmysql.dll, libmcrypt.dll(D:/lamp/php)到C:/WINDOWS/system32/ 6.3》 重启apache,访问http://localhost/phpinfo.php,查看相应扩展是否加载成功++++++++++++++++++++++++++++++++++++++++++++++
如何centos使用yum方式安装lamp环境
1、配置防火墙,开启80端口、3306端口vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT #允许3306端口通过防火墙备注:很多人把这两条规则添加到防火墙配置的最后一行,导致防火墙启动失败,正确的应该是添加到默认的22端口这条规则的下面1、安装Apacheyum install httpd #根据提示,输入Y安装即可成功安装 /etc/init.d/httpd start #启动Apache 2、安装MySQLyum install mysql mysql-server #询问是否要安装,输入Y即可自动安装,直到安装完成/etc/init.d/mysqld start #启动MySQLchkconfig mysqld on #设为开机启动cp /usr/share/mysql/my-medium.cnf /etc/my.cnf #拷贝配置文件(注意:如果/etc目录下面默认有一个my.cnf,直接覆盖即可)设置数据库密码:mysql -uroot -p 直接回车use mysql;Update user SET password=PASSWord(“root123“) Where user=’root’;flush privileges;exit;3、安装PHP53.1、安装PHP5yum install php根据提示输入Y直到安装完成 3.2、安装PHP组件,使 PHP5 支持 MySQLyum install php-mysql php-gd libjpeg* php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-bcmath php-mhash libmcrypt这里选择以上安装包进行安装,根据提示输入Y回车/etc/init.d/mysqld restart #重启MySql/etc/init.d/httpd restart #重启Apche提示:查询各个软件的安装位置rpm -ql httpdrpm -ql mysqlrpm -ql phpok完成!
Linux系统怎么配置LAMP环境
Linux下现在热门的有centos和Redhat。而LAMP服务器(Apache+PHP5+MySQL)的多见于centos,因为这个是免费使用的。不过centos和Redhat其实方法差不错,可以参考Redhat下的方法,一样也使用centos.鉴于你没说清楚你的系统版本,我推荐你查看Redhat下的 LAMP方法,查看《Linux就该这么学》的第10章节,有大致的介绍内容。如果需要详细的步骤可以查看中级教程。
Centos7搭建LAMP
yum install httpd -y 安装web服务器
yum install mysql-server -y 安装mysql数据库
yum install php php-mysql php* -y 安装php以及php扩展
systemctl start httpd && systemctl enable httpd 启动web服务器并加入开机启动项
systemctl start mysqld && systemctl enable mysqld 启动mysql数据库并加入开机启动项
systemctl start php-fpm && systemctl enable php-fpm 启动php-fpm并加入开机启动项
接下来就是修改配置文件 httpd.conf php.ini 等操作 , 具体内容自行搜下
希望可以帮助你 请采纳 谢谢
什么是LAMP怎么做
LAMP:就是Linux Apache MySQL Php的缩写,几乎是最强的架站组合。如何安装?LAMP第一课:介绍与安装(感谢Linuxsir的dsj)Linux+Apache+PHP+MySQL=LAMPLinux的安装就不多说了,以后详细再说吧!下面是dsj兄的安装介绍,贴下来学习:一、软件下载分别下载软件以下软件:Apache-2.0.43 (www.apache.org)Php-4.2.3 (www.php.net)Mysql-3.23.53 (www.mysql.com)二、准备安装将所有软件的源代码放置在目录 /home/src 下 ,安装目录为 /server ,下载后的源代码包在/root目录下,故执行以下操作:mkdir /home/srcmkdir /servergroupadd mysqluseradd -g mysql -d /home/mysql mysql //建立mysql组及用户cd /home/srctar zxvf /root/mysql-3.23.53.tar.gztar zxvf /root/更改php.ini时差了一步,没有把register_globals = Off改为register_globals = On还有httpd.conf要把AddDefaultCharset ISO-8859-1改为:AddDefaultCharset gb2312才行,不然老是乱码