LAMP 安装 配置

安装 Apache2: 
sudo apt-get install apache2 
安装PHP模块: 
sudo apt-get install php5 
编辑测试页:() 
sudo gedit /var/www/testphp.php 

安装Mysql 
sudo apt-get install mysql-server 
mysqladmin -u root password db_user_password 
#db_user_password替换为密码 

安装Mysql模块 
sudo apt-get install libapache2-mod-auth-mysql 
sudo apt-get install php5-mysql 
sudo apt-get install php5-gd 
sudo /etc/init.d/apache2 restart 

配置php.ini: 
sudo gedit /etc/php5/apache2/php.ini 
把文件在文件后面的: 
#extension=mysql.so 
#extension=gd.so 
的#去掉。 

安装phpmyadmin 
sudo apt-get install phpmyadmin 
测试:http://localhost/phpmyadmin/ 

将URL映射到其他目录 

sudo gedit /etc/apache2/conf.d/alias 

* 在新增的文件内加入下面这几行 

Alias /URL-path /location_of_folder/ 


Options Indexes FollowSymLinks 
AllowOverride All 
order allow,deny 
Allow from all 

重起apache 
sudo /etc/init.d/apache2 restart

先查看自己的php5是否已经安装了curl。方法如下:
1.在web服务器目录( Ubuntu下的通常为 /var/www )新建test.php文件
2.编辑文件,键入下面一行代码:
<?php phpinfo(); ?>
3.保存文件
4.打开浏览器,浏览该网页。(例如:http://localhost/test.php)
5.搜索"curl",看看是否已经安装了curl。没搜到的话肯定是没装了,要装的请看下面。

安装方法很简单,只需要一条命令。(这里选择直接apt-get安装,因为比起自己编译简单多了,不需要自己配置什么)

# sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

恭喜,PHP5 cURL安装完毕。记得重启Apache服务器

# sudo /etc/init.d/apache2 restart

如果仍然有问题,尝试编辑你的php.ini文件(我的是/etc/php5/apache2/php.ini),在最后加上一行:

extension=curl.so

保存文件后重启Apache服务器。

安装gd过程类似,运行下面命令即可:apt-get install php5-gd

转载于:https://www.cnblogs.com/laipDIDI/articles/2200892.html

9.16华为OD机试真题 新系统 - 矩阵螺旋遍历 (Java/Py/C/C++/Js/Go) 阅读详情

相关推荐

RDP Wrapper失效了?别慌!教你如何手动为Windows 10/11最新版本添加rdpwrap.ini配置

本文详细介绍了当RDP Wrapper在Windows 10/11最新版本中失效时,如何手动添加rdpwrap.ini配置以恢复多用户远程桌面功能。通过获取最新配置文件、安全替换配置的完整流程以及高级手动配置技巧,帮助用户解决[Not support]问题,确保远程工作流程不受系统更新影响。

weixin_30765577的博客 624

LAMP系统构建论文

毕业论文中文摘要 随着信息技术的不断发展,网络技术的不断完善,各种服务类平台层出不穷。在这样的环境下,Lamp系统架构应运而生了,并且经过不断的完善,俨然已成为国内外首屈一指的大型服务平台之一。   Lamp(Linux-Apache-MySQL-PHP)系统架构是目前国际流行的Web框架。该框架包括:Linux操作系统,Apache网络服务器,MySQL数据库,Perl、PH...

Van_male的博客 3475

整理笔记——二极管

二极管是一种由半导体材料制成的一种具有单向导电性能的电子元器件,二极管的核心是PN结。加在二极管两端的电压和通关的电流被成为,二极管的伏安特性曲线​​​二极管的正向特性:起初正向电压较小时,正向电流几乎没有,称之为死区,此时二极管处于截止状态。当电压差超过截止电压(0.5V或者0.7V),电流随着电压上升,开始增加缓慢,随后急剧增大,二极管的电阻变小进入导通状态,此时电压变化较小。二极管的反向特性:起初反向电流很小,不随电压二变化,此时成为反向饱和电流;当方向电压达到二极管的反向击穿电压。

#include 811

如何将 apache2 URL 映射到 /var/www/ 以外的目录

如何将 apache2 URL 映射到 /var/www/ 以外的目录编辑/etc/apache2/conf.d/alias加入如下内容Alias /URL-path /location_of_folder/ Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all

技术博客 1397

Spring Boot与Apache Ignite集成:构建高性能分布式缓存和计算平台

Apache Ignite是一个高性能的分布式内存计算平台,支持内存缓存、分布式计算、流处理和机器学习等功能。它提供了低延迟的数据访问和强大的计算能力,适用于需要高性能和可扩展性的应用。将Apache Ignite集成到Spring Boot应用中,可以显著提高应用的性能和可扩展性。Spring Boot的简单配置和Ignite的强大功能相结合,使得开发和部署更加高效。首先,创建一个新的Spring Boot项目。可以通过Spring Initializr(https://start.spring.io/)

九天的专栏 2142

光电容积脉搏波PPG信号分析笔记

脉搏波信号PPG分析笔记

teresa_zp的专栏 6478

LAMP YUM安装配置实战

今天继续给大家介绍Linux运维的相关知识,本文主要内容是LAMP的YUM安装与配置实战。 一、YUM源配置 二、Apache安装 三、PHP安装 四、数据库安装 五、PHP与数据库联动

永远是少年 2314

vLLM显存逆向计算:如何得到最优gpu-memory-utilization参数

本文提出了一种**逆向工程**的思路:基于vLLM显存占用的底层机制,通过精确计算模型权重、KV缓存、激活内存等各组件的显存需求,**倒推出最优的gpu-memory-utilization参数**。这种方法让我们能够在部署前就准确预估资源需求,实现一次配置、稳定运行。本文我们将从vLLM显存计算的核心原理出发,构建完整的倒推计算框架和源码,并通过大量实验验证其准确性(会有误差,但基本可以直接使用)。

羊城迷鹿的博客 1949

Linux lamp安装配置

http://hi.baidu.com/cynial/item/a22483c5c21dc37488ad9efc   PHP开发和服务器运行环境首选LAMP组合,即Linux+Apache+Mysql+Php/Perl /Python,能最优化服务器性能。如何在本地电脑Ubuntu 中安装和配置LAMP环境搭建?Ubuntu9.10本身就是基于Linux内核,所以Linux是现成的了。使用U

随便写写 785

作物生长模型Oryza V3实战1:为什么要研究它

ORYZAV3是水稻生长模拟模型ORYZA2000的最新升级版本(3.5版),作为作物生长模型,它通过数学方法和计算机技术模拟水稻生长发育过程及其与环境条件的相互作用。主要功能包括:模拟不同条件下的水稻生长和产量形成、评估环境胁迫影响、分析土壤碳氮动态以及进行区域尺度模拟。国内应用广泛,科研机构用于气候变化影响评估、灌溉模式比较等研究,并开展参数敏感性分析和应用培训。使用流程分为六个步骤:确定输入参数(气象、土壤、作物三类)、参数校准、设置模拟环境、运行模型、分析结果(输出50个参数)和计算产量(穗干重×收

504

Windows2008使用-解决漏洞-CVE-2010-2730

随着硬件的升级,操作系统也逐渐进行了版本更新。目前阶段,Windows2016Server、Windows2022Server逐渐成为了以Windows系列的服务器平台系统。对于有些应用而言,由于其业务的固定,可能仍只能运行在Windows2008Server或者Windows2012Server上。有时候我们为安全需要,需要将相关的操作系统涉及的漏洞做修复。最近碰到在一个Windows2008R2 的操作系统漏洞CVE-2010-2730,一顿操作,终于找到了合适的方案,这里分享给大家。

mystonelxj的博客 2314

LAMP安装及配置

来源:实验楼 LAMP介绍及安装 1. LAMP是什么? LAMP,包含Linux + Apache + PHP + Mysql。 LAMP适用环境 适用于追求极致稳定的WEB环境,缺点是需要消耗更多资源。 除了LAMP之外,大家应该也经常听到LNMP,不同之处就是Apache换成了Nginx。Apache的工作模式默认采用prefork工作模式

陈 浩 3610

仿真学习系列(四十九):Sigrity仿真之电容库制作

在高速电路设计中,电源完整性(PI)是确保系统稳定、可靠运行的关键因素。随着电子产品对性能的要求不断提升,PDN(电源分配网络)的设计与优化变得尤为重要。为了确保电源网络在高速工作状态下不会引发电压波动和信号干扰,我们需要在设计中精确地选择电容器进行优化,而电容库的制作则是这一过程的核心。 OptimizePI作为一个强大的电源完整性优化工具,能够帮助设计师根据不同的目标,批量进行PDN仿真,以得出最佳电容选择。

案例文章,高速信号 227

LAMP安装以及配置

第一 apache 安装HTTPD服务器 http://httpd.apache.org/download.cgi 1.tar zxvf httpd-2.2.9.tar.gz -C /usr/src/ 2.cd /usr/src/httpd-2.2.9 3../configure --prefix=/usr/local/apache2 --enable-so --enable-cgi

MiltonZhong 968

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

RU DOS版、EFI版32bit/64bit BIOS常用工具

DOS版、EFI版的RU工具,可用来查看IO、MEM、PCI、SMBIOS等资源。亲测在EFI SHELL下可用。

lamp安装及配置

 简介 lamp是一个比较常用的web架构,LAMP是Linux Apache(httpd) MySQL PHP的简写,因此,lamp其实就是这几个组件的结合。 关于web服务器工作流程见百度或google。本文主要讲它的安装和配置。顺便放一幅图片让大家了解一下。 lamp环境: 系统:centos 7 IP:172.16.12.128 安装服务:httpd-2.4     mys...

a297420896的博客 801

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

Linux安装LAMP环境,安装配置Discuz论坛

一、Linux安装LAMP环境 一:安装Apache 1、查看是否安装过Apache:rpm -qa | grep httpd 2、有就卸载httpd:yum remove -y "httpd*" 3、重新安装httpd:yum install -y httpd 4、查看启动状态:systemctl status httpd 5、启动httpd:systemctl start httpd 6、添加开机启动:systemctl enable httpd 7、设置防火墙tcp80端口: firew

qq_62157376的博客 871

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

神舟笔记本安装UBUNTU及LAMP的安装配置

神舟笔记本安装UBUNTU及LAMP的安装配置1.windowsxp sp2下用wubi方式安装ubuntu 8。04桌面版--症状:安装时重启后界面进度条停在了第3格处。--解决:安装时进入菜单修改第一项增加参数acpi=off noapic2.wubi方式安装的ubuntu保存在一个虚拟磁盘文件中,所以在安装时的大小应该尽量大一些。否则可在安装好后用LVPM修改大小。注意:新虚拟磁盘同样在

hustchenzj的专栏 1207

LAMP架构及安装配置

1. LAMP架构介绍 LAMP 是Linux Apache MySQL PHP的简写,其实就是把Apache, MySQL以及PHP安装在Linux系统上,组成一个环境来运行php的脚本语言。Apache是最常用的WEB服务软件,而MySQL是比较小型的数据库软件,这两个软件以及PHP都可...

chuyihuan7890的博客 242

安装配置LAMP

httpd 2.4.4 + mysql-5.5.28 + php-5.4.13编译安装过程: 一、编译安装apache 1、解决依赖关系 httpd-2.4.4需要较新版本的apr和apr-util,因此需要事先对其进行升级。升级方式有两种,一种是通过源代码编译安装,一种是直接升级rpm包。这里选择使用编译源代码的方式进行,它们的下载路径为ftp://172.16.0.1/pub/Sour...

qq_38636133的博客 263

CentOS 6.5-minimal 安装与配置LAMP

CentOS 6.5 安装与配置LAMP   软件版本: Linux: CentOS-6.5-minimal Apache:httpd-2.4.9 MySQL:mysql-5.5.38 PHP:    php-5.5.13 准备工作: 1、 下载源码包 创建存放目录:mkdir –p  /usr/local/src/LAMP                        cd /

qinyequan1992的专栏 1791

我的LAMP安装配置经历

本科的时候选修过一门叫做web开发的课程,做的也是类似LAMP的东西。可惜随着时间的推移,以及当时所学的肤浅,以致现今都难以回想起当时具体做的是什么。这次来公司后才了解互联网应用是充满前途,自己之前在校园里对这些方面是一无所知,甚是惭愧。好了,废话这么多,赶紧进入正题。             首先,说一下我的系统环境吧。           操作系统:Fedora 9

小木匠盖大厦 581

LAMP源码安装配置实战

今天继续给大家介绍Linux运维相关知识,本文主要内容是LAMP源码部署实战。 一、LAMP安装准备 二、Apache源码安装 三、MySQL源码安装 四、PHP源码安装 五、安装验证

永远是少年 1126

LAMP之PHP安装配置指南

LAMP之PHP安装配置指南1.1检查apache及mysql的安装情况。[root@c601 mysql-5.1.62]# ll /application/apachelrwxrwxrwx 1 root root 25 Jan 28 19:01 /application/apache -&gt; /application/apache2.2.34[root@c601 mysql-5.1.62]#...

Linux运维学习笔记 541

lamp 配置mysql_LAMP安装配置超详细讲解

LAMP 安装 配置配置环境操作系统:Redhat Enterprise AS 4已安装包:httpd2.0.4, mysql4.1,libxml2.6.16, zlib1.2.1.2,gd2.0.28, libpng1.2.7说明:网上的各种安装说明都不是很好地说明了配置参数的来由,本文将尽可能标明每一步的必要性.已安装包不是必需的,其中mysql可以独立安装,而rpm包形式的httpd因为不是...

weixin_39782782的博客 276

LAMP安装配置手记

配置环境操作系统:Redhat Enterprise AS 4已安装包:httpd2.0.4, mysql4.1,libxml2.6.16, zlib1.2.1.2,gd2.0.28, libpng1.2.7说明:网上的各种安装说明都不是很好地说明了配置参数的来由,本文将尽可能标明每一步的必要性.已安装包不是必需的,其中mysql可以独立安装,而rpm包形式的httpd因为不是mod-so形式安装

denny的专栏 1万+
上一篇: 安装mentohust 64位
下一篇: 如何启动crontab?
dinglangwei5539
博客等级 码龄11年 0粉丝 0原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值