how to install apache, PHP and MySQL on Linux
how to install apache, PHP and MySQL on Linux
This tutorial explains the installation of Apache web server, bundled with PHP and MySQL server on a Linux machine. The tutorial is primarily for SuSE 9.2, 9.3, 10.0 & 10.1 operating systems, but most of the steps ought to be valid for all Linux-like operating systems.
Contents:
MySQL 5 Installation
Prerequisites
Download the Source
Unpack, Copy, Configure
Create my.cnf File
Additional Settings
Start Server, Check It, Connect
Set the Root Password
Restart MySQL Server
Automatic Startup
Apache 2 Installation
PHP 5 Installation
MySQL 5.0 installation
Since Apache and MySQL servers must be installed prior to the PHP installation, I recommend installing the triad in this order: MySQL, Apache, PHP. You may well have some MySQL server already installed – in that case you can skip directly to the Apache 2 installation. However, it's a good idea to reinstall everything, in order to have the most recent versions of the software.
There are several options for how to install MySQL:
using YaST – the easiest and fastest way. However, the version of MySQL bundled with SuSE installation is usually NOT the best (i.e. the most recent) available,
RPM installation – supposedly also fast and simple, I've never tried though. The only drawback here is that MySQL is not installed into a single destination – it's scattered across several directories. I like to keep things tidy, so I skipped this option,
installing binaries – downloading precompiled files from the mysql.com website, copying them into a directory of your choice, and doing some simple configuration. I tried this, but it didn't work for me – for some reason the MySQL server wouldn't start,
installing from source – I would recommend this. Yes, it takes some time and effort, but you will get the most recent MySQL installed in a single location on your system, and everything will be configured accord
相关文档:
linux下 mysql 的卸载和安装
关键字: linux下 mysql 的卸载和安装
一、前期准备:
1
.由于redhat Enterprise 5 中自带一个mysql的版本,如果在安装linux前未选择mysql的安装此步就可跳过,因为我当时安装了现在将其卸载
,步骤如下:
&nb ......
我这里说的一天学会是有前提的,首先你需要有编程的经验(不管何种语言),还有这里只是说学会,不是精通。由于我学习php也是为了搞个个人网站玩玩的,不是为了吃饭的,呵呵。
首先,讲语法PHP的语法。
嵌入方法:
类似ASP的,PHP中也可以。一般使用<?php ?>这样形式
逻辑运算:
......
Installing the MySQL Driver
先查看所缺失的相关包:
$ apt-cache search libmysqlclient
libcrypt-mysql-perl - Perl module to emulate the MySQL PASSWORD() function.
libglpk0 - linear programming kit with integer (MIP) support
libmysqlclient16 - MySQL database client library
libmysqlclient16-dev - ......
一、问题的提出
在应用系统开发初期,由于开发数据库数据比较少,对于查询SQL语句,复杂视图的的编写等体会不出SQL语句各种写法的性能优劣,但是如果将应用系统
提交实际应用后,随着数据库中数据的增加,系统的响应速度就成为目前系统需要解决的最主要的问题之一。系统优化中一个很重要的方面就是SQL语句的优化。 ......
MySQL易学易用,且附带丰富的技术文档,这二个因素使之被广泛应用。然而,随着MySQL发展之迅速,即使一个MySQL老手有时也会为该软件出其不意的功能感叹。本文将为你介绍这些不为人知的特性。
以XML格式查看查询结果
通过使用传统—xml
选项调用MySQL命令行客户程序,你可以以XML格式(而不是传统的列表形式)来查看M ......