用ubuntu server8.10做php
以前在windows下面做过web服务器,但是还从来没有在linux下做过。今天,终于下定了决心,试着做一个,顺便学点知知识。 在windows下架服务器很容易,但是服务器维护对于相我这样的小菜来说却是十份头疼的事。主要还是因为树大招风的原因。现在新出了个linux
以前在windows下面做过web服务器,但是还从来没有在linux下做过。今天,终于下定了决心,试着做一个,顺便学点知知识。
在windows下架服务器很容易,但是服务器维护对于相我这样的小菜来说却是十份头疼的事。主要还是因为树大招风的原因。现在新出了个linux版本ubuntu,并且也有ubuntu server版本,所以就拿来一试。
首先,做好准务工作:
先在ubuntu网站下一个ubuntu server 8.10 ,首先给大家介绍一下,ubuntu server 8.10是ubuntu在08年10月份推出的,这个版本集成了:DNS、LAMP、MAIL、DATABASE、SMB、VIRTUAL MACHINE等这几个软件。
在ubuntu server8.10的安装过程中会有选项让你选择所要安装的功能,我选了LAMP、DATABASE这两个,主要是为了做php-web服务器用。
安装好了之后,会提示要进行重启。
重启完了之后会自动进入命令行模式,因为ubuntu server版本没有GUI,所以,所有的工作只能在命令行模式下进行了,当然,你如果对命令行一壳不通,那你也可以弄个GUI上去。不过,很是麻烦的,我也试了,最后还没放弃了。装完重启之后会进入命令行界面。
完善apache2程序
因为各种php源码对php环境要求不一样,所以这一步并不是必须的,主要是看你的php源码的要求了。我用的是hbcms,对环境要求有一点,就是必须要有zendoptimizer-3.3.3-linux-glibc23-i386程序,在这里我搞了好半天,才搞好的。主要原因是:一、系统虽然能上网,但是在命令行模式下,不方便下东西。所以,也不能直接从网上下zendoptimizer这个文件。二、安装系统的时候,好相中国的ubuntu源不能用(或者是非常的慢),不能通过软件库安装。最后,实在没办法,只能通过另外一台机器上网上下了一个程序,地址是:http://www.zend.com/en/products/guard/downloads 去选择相应的版本下载。当然,你觉得慢的话,也可以去baidu或google上下载。
[1] [2] [3]

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

Working with database in CakePHP is very easy. We will understand the CRUD (Create, Read, Update, Delete) operations in this chapter.

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Validator can be created by adding the following two lines in the controller.

Logging in CakePHP is a very easy task. You just have to use one function. You can log errors, exceptions, user activities, action taken by users, for any background process like cronjob. Logging data in CakePHP is easy. The log() function is provide

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c
