Ubuntu 安装 - 无 LAMP 选项

发布于 2024-10-02 23:19:23 字数 176 浏览 4 评论 0 原文

我计划在 Vmware 中的 ubuntu 上安装 LAMP,但是当我不是 Ubuntu 时,我没有看到教程中所示的“安装 LAMP”选项?我尝试安装服务器版和桌面版几次,但没有显示任何内容。直接安装ubuntu就可以了。我尝试在已安装的 ubuntu 桌面之一上使用包管理器安装 LAMP,但搜索并未在那里找到 LAMP。我做错了什么?

I am planning to install LAMP on ubuntu in Vmware but when I isntall Ubuntu I dont see the 'Install LAMP' option as shown in tutorials? I tried installing a few times both server and desktop versions but nothing shows. It just directly installs ubuntu. I tried to install LAMP with the package manager on one of the installed ubuntu desktop but the search didnt turn up LAMP there. What am I doing wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

素衣风尘叹 2024-10-09 23:19:23

打开终端并将其放入

sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server mysql-client php5-mysql

open a terminal and put this in

sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server mysql-client php5-mysql
带刺的爱情 2024-10-09 23:19:23

LAMP 是:Linux Apache MySQL PHP
你应该安装 Apache MySQL 和 PHP

sudo apt-get update
sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql

然后你应该学习如何配置虚拟主机

LAMP is : Linux Apache MySQL PHP
You should install Apache MySQL and PHP

sudo apt-get update
sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql

Then you should learn how to configure virtualhost

述情 2024-10-09 23:19:23

这些说明过去对我有用。

These instructions have worked for me in the past.

醉态萌生 2024-10-09 23:19:23

灯-> Linux、Apache、MySql、PHP。在 Synaptic 中安装 php-mysql 包应该会安装您需要的一切。有很多教程介绍如何根据您的 Ubuntu 版本配置它以使其正常工作。

LAMP -> Linux, Apache, MySql, PHP. Installing the php-mysql package in Synaptic should install everything you need. There are a lot of tutorials out there for how to configure it to work properly based on you version of Ubuntu.

喵星人汪星人 2024-10-09 23:19:23

如果您愿意,您可以使用一个简单的安装程序 BitNami LAMPStack。

它可以本地安装(即在 Ubuntu 终端中执行 bin)、云中(Amazon AMI)或某种捆绑包(即带有 bitnami lamp stack 已安装并配置。

If you wish, you can use an easy installer for it, BitNami LAMPStack.

It can be installed nativelly (ie executing the bin in your Ubuntu terminal) , in the cloud(Amazon AMIs), or in a sort of bundle, that is, an ubuntu VM with the bitnami lamp stack already installed and configured.

蘸点软妹酱 2024-10-09 23:19:23

Ubuntu 上的 Lamp stack 和 Zend Framework 安装指南

请以 root 用户身份登录

sudo apt-get install tasksel 
sudo tasksel 
select lampt with space and press tab

and click ok
Provide the password for MYSQL root user 

要安装 PEAR

sudo apt-get install php-pear 
sudo pear channel-update pear.php.net 
sudo pear upgrade-all 

到 intsall php doc
sudo pear 频道-发现 pear.phpdoc.org
sudo pear 远程列表 -c phpdoc
sudo pear config-set data_dir /var/www
sudo pear install --alldeps PhpDocumentor
sudo pear 安装 phpdoc/phpDocumentor
sudo mkdir /var/www/PhpDocumentor-输出
sudo chown www-data /var/www/PhpDocumentor-output
安装 phpmd
sudo pear 频道-发现 pear.phpmd.org
sudo pear 远程列表 -c phpmd
sudo pear 安装 phpmd/PHP_PMD
安装代码嗅探器
sudo pear 安装 PHP_CodeSniffer
安装 phpdepend
sudo pear 频道-发现 pear.pdepend.org
sudo pear 远程列表 -c pdepend
sudo pear 安装 pdepend/PHP_Depend
检查应用程序lear包
sudo pear 列出所有
其他有用的命令
sudo pear 升级全部
安装 php 单元测试

sudo apt-get install phpunit 

如何安装 Zend Framework
在桌面上下载最新版本的 zend
sudo cp Desktop/ZendFramework-1.12.3.tar.gz /usr/local/
cd /usr/local
提取文件如下
sudo tar -xzvf ZendFramework-1.12.3.tar.gz
重命名文件夹
sudo mv ZendFramework-1.12.3 ZendFramework
须藤 chmod 0755 ZendFramework
创建如下符号链接
ln -s /usr/local/ZendFramework/bin/zf.sh /usr/bin/zf
跑步
zf -h

Zend 框架文档继续
打开apache2文件夹下的php.ini文件运行以下命令
sudo vi /etc/php5/apache2/php.ini

取消注释 php include_path

;include_path =”.: /usr/share/php”

添加 zend 库路径,在我的例子中它是

/usr/local/ZendFramework/library

所以include_path

=”.: /usr/share/php:/usr/local/ZendFramework/library ”

使用 vi 编辑器编辑主机文件

vi /etc/hosts

添加新的本地 IP 和名称,

如该文件末尾的

127.0.0.1 1.1 test.local

转到

cd /etc/apache2/mods-enabled
sudo touch rewrite.load
sudo gedit rewrite.load
当新文件打开时,在其中添加以下行并保存并退出文件

LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

goto
cd /etc/apache2/sites-available

类型

vi 默认值

更改为

选项索引 FollowSymLinks 多视图
允许覆盖无
订单允许、拒绝
允许所有人

选项索引 FollowSymLinks 多视图
允许覆盖全部
订单允许、拒绝
允许所有人

保存并退出,

输入 vi test.local

并添加以下内容,可以在名为 README.txt 的文档文件下找到

文档根目录“/var/www/test/public”
ServerName test.local

# 生产环境中应该省略这个
SetEnv APPLICATION_ENV 开发

选项 索引 多视图 FollowSymLinks
允许覆盖全部
订单允许、拒绝
允许所有

重新启动 apache

sudo /etc/init.d/apache2 重新启动

转到浏览器并输入

test.local

Lamp stack and Zend Framework installation guide on Ubuntu

Please login as root user

sudo apt-get install tasksel 
sudo tasksel 
select lampt with space and press tab

and click ok
Provide the password for MYSQL root user 

To install the PEAR

sudo apt-get install php-pear 
sudo pear channel-update pear.php.net 
sudo pear upgrade-all 

To intsall php doc
sudo pear channel-discover pear.phpdoc.org
sudo pear remote-list -c phpdoc
sudo pear config-set data_dir /var/www
sudo pear install --alldeps PhpDocumentor
sudo pear install phpdoc/phpDocumentor
sudo mkdir /var/www/PhpDocumentor-output
sudo chown www-data /var/www/PhpDocumentor-output
To Install phpmd
sudo pear channel-discover pear.phpmd.org
sudo pear remote-list -c phpmd
sudo pear install phpmd/PHP_PMD
To install code sniffer
sudo pear install PHP_CodeSniffer
To install phpdepend
sudo pear channel-discover pear.pdepend.org
sudo pear remote-list -c pdepend
sudo pear install pdepend/PHP_Depend
To check app lear packages
sudo pear list all
other useful commands
sudo pear upgrade-all
to install php unit test

sudo apt-get install phpunit 

How to install Zend Framework
Download the latest version of zend on desktop
sudo cp Desktop/ZendFramework-1.12.3.tar.gz /usr/local/
cd /usr/local
extract files as below
sudo tar -xzvf ZendFramework-1.12.3.tar.gz
rename folder
sudo mv ZendFramework-1.12.3 ZendFramework
sudo chmod 0755 ZendFramework
create a symbolic link as below
ln -s /usr/local/ZendFramework/bin/zf.sh /usr/bin/zf
run
zf -h

Zend Framework documentation continue
open the php.ini file under apache2 folder run the below command
sudo vi /etc/php5/apache2/php.ini

uncomment the php include_path

;include_path =”.: /usr/share/php”

add the zend library path to it in my case it is

/usr/local/ZendFramework/library

so the

include_path =”.: /usr/share/php:/usr/local/ZendFramework/library ”

edit the hosts file with vi editor

vi /etc/hosts

add the new local IP and name

like at the end of this file

127.0.1.1 test.local

goto

cd /etc/apache2/mods-enabled
sudo touch rewrite.load
sudo gedit rewrite.load
when the new file opens add the line below in it and save and exit from the file

LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

goto
cd /etc/apache2/sites-available

type

vi defaults

change from

Options Indexes FollowSymLinks MultiViews
AllowOverride none
Order allow, deny
allow from all

To

Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

Save and exit

type vi test.local

and add the below lined in it which can be found under the docs file called README.txt

DocumentRoot "/var/www/test/public"
ServerName test.local

# This should be omitted in the production environment
SetEnv APPLICATION_ENV development

Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all

Restart the apache

sudo /etc/init.d/apache2 restart

goto browser and type

test.local

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文