php+mysql+apache在SUSE 10上安装笔记~

原创 2006年06月16日 17:59:00
SUSE 10自带装好的apache不知道是哪里的问题
一直提示403出错,
GOOGLE一下,发觉这问题的人还真不少,
无奈之下,只好重装
有外国网友建议用Yast删除他,想想就算了,还是留着吧,最多不让他占用80口子



安装一个原则:多看手册

以下是PHP提供的,还不错
Example 2-4. Installation Instructions (Apache 2 Shared Module
   Version)
1.  gzip -d httpd-2_0_NN.tar.gz
2.  tar xvf httpd-2_0_NN.tar
3.  gunzip php-NN.tar.gz
4.  tar -xvf php-NN.tar
5.  cd httpd-2_0_NN
6.  ./configure --enable-so
7.  make
8.  make install

    Now you have Apache 2.0.NN available under /usr/local/apache2,
    configured with loadable module support and the standard MPM prefork.
    To test the installation use your normal procedure for starting
    the Apache server, e.g.:
    /usr/local/apache2/bin/apachectl start
    and stop the server to go on with the configuration for PHP:
    /usr/local/apache2/bin/apachectl stop.

9.  cd ../php-NN

10. Now, configure your PHP.  This is where you customize your PHP
    with various options, like which extensions will be enabled.  Do a
    ./configure --help for a list of available options.  In our example
    we'll do a simple configure with Apache 2 and MySQL support.  Your
    path to apxs may differ, in fact, the binary may even be named apxs2 on
    your system.

      ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql  注意这时,有时会报错:,因为SUSE上没装FLEX和bison赶紧去gnu去下,一路安装,绿灯,就OK了
/

11. make
12. make install

    If you decide to change your configure options after installation,
    you only need to repeat the last three steps. You only need to
    restart apache for the new module to take effect. A recompile of
    Apache is not needed.

    Note that unless told otherwise, 'make install' will also install PEAR,
    various PHP tools such as phpize, install the PHP CLI, and more.

13. Setup your php.ini

    cp php.ini-dist /usr/local/lib/php.ini

    You may edit your .ini file to set PHP options.  If you prefer having
    php.ini in another location, use --with-config-file-path=/some/path in
    step 10.

    If you instead choose php.ini-recommended, be certain to read the list
    of changes within, as they affect how PHP behaves.

14. Edit your httpd.conf to load the PHP module.  The path on the right hand
    side of the LoadModule statement must point to the path of the PHP
    module on your system.  The make install from above may have already
    added this for you, but be sure to check.

    For PHP 4:

      LoadModule php4_module libexec/libphp4.so

    For PHP 5:

      LoadModule php5_module libexec/libphp5.so

15. Tell Apache to parse certain extensions as PHP.  For example,
    let's have Apache parse the .php extension as PHP.  You could
    have any extension(s) parse as PHP by simply adding more, with
    each separated by a space.  We'll add .phtml to demonstrate.

      AddType application/x-httpd-php .php .phtml

    It's also common to setup the .phps extension to show highlighted PHP
    source, this can be done with:

      AddType application/x-httpd-php-source .phps

16. Use your normal procedure for starting the Apache server, e.g.:

      /usr/local/apache2/bin/apachectl start



........

相关文章推荐

wamp-win10-apache24-mysql56-php7安装配置

帮助新人搭建开发环境,减少对集成环境的依赖性。

Win10&Linux下Apache2+PHP7+Mysql安装以及创建Laravel项目

Win10开启开发者选项,可以安装Linux子系统,系统为:Ubuntu 14.04.5 LTS。进入cmd命令行,输入bash命令,可进入Linux bash(第一次需要安装)。进入bash后,和在...
  • junzia
  • junzia
  • 2017年03月30日 02:28
  • 1290

Suse Linux 10 MySql安装与配置

安装环境: 操作系统:suse Linux 10 数据库:MySQL 5.0.22 希望能认识更多高手,互相学习讨论技术! 首先发泄一下再这,网上看了N多安装mysql的文章,大多大同...
  • adermxl
  • adermxl
  • 2012年02月27日 15:29
  • 775

[学习笔记]SUSE10linux上Oracle 11g安装

一. 检查环境      1.检查软件包是否安装       binutils-, compat-libstdc++-, elfutils-libelf,  glibc, gcc, elfutil...

FreeBSD 安装Mysql apache PHP 个人笔记

1 安装MySql5.1 先添加mysql组和mysql用户 # pw addgroup mysql # pw adduser mysql 开始安装 # cd /usr/ports/databases...
  • elim051
  • elim051
  • 2011年07月20日 16:00
  • 2093

ubuntu14.04安装apache+php+mysql笔记

根据这篇文章安装的
  • HScccc
  • HScccc
  • 2014年04月24日 11:13
  • 2577

Ubuntu 下快速部署安装 Apache + PHP + MySQL + phpMyAdmin 笔记

转自:http://laravelacademy.org/post/3285.html (Laravel学院) 安装 Apache sudo apt-get install apache2 ...

CentOS5.6安装Apache Mysql PHP笔记

首先可以执行 yum -y update 更新一下系统。yum -y install ntp                //安装ntp(在5.6版本中已经默认安装了)ntpdate pool.nt...
  • elim051
  • elim051
  • 2011年07月15日 11:03
  • 838

Apache2.2.17+PHP5.2.5+MySQL5安装说明配置遇到问题解决笔记

Apache2.2.17+PHP5.2.5+MySQL5安装说明 C:\Program Files\Apache Software Foundation\Apache2.2\conf ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:php+mysql+apache在SUSE 10上安装笔记~
举报原因:
原因补充:

(最多只允许输入30个字)