"Wife" LAOP installation process

Source: Internet
Author: User
Haha, it's just a joke, just for your own memo. & Ldquo; wife & rdquo; refers to LAOP, that is, Linux + Apache + Oracle + PHP, the development and application environment of our company. & Nbsp; I chose Ubuntu6.10Server for Linux, which is easier to use than other Linux configurations. "Wife" refers to LAOP, that is, Linux + Apache + Oracle + PHP, which is the development and application environment of our company. Since I thought it was more concise and convenient to use than other Linux configurations, I chose Ubuntu 6.10 Server for Linux, which is already available for Oracle database servers, therefore, only Oracle XE client is installed. The following is the actual process record: I. basic installationInstall Ubuntu 6.10 server, Apache, PHP, etc. if you are lazy, you can install LAMP when installing Ubuntu. The specific installation process can refer to the documents on the http://www.ubuntu.org.cn, here I do not nagging. II. install Oracle XE clientTo log on to and edit the apt source list file using sudo's common users

Sudo vi/etc/apt/sources. list

Add the following lines to the sources. list file:

Deb http://oss.oracle.com/debian unstable main non-free

Save the disk and run the following command:

Sudo groupadd oracle; sudo groupadd dba

Sudo useradd-d/home/oracle-g oracle-G dba-m-s/bin/bash oracle

Sudo apt-get update

Sudo apt-get install bc libaio

Sudo apt-get install oracle-xe-client

After oracle-xe-client is installed, oracle users still need to configure various environment parameters.

/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin/oracle_env.sh

Or directly add the environment parameters to your. bash_profile file.

After installing the client, run sqlplus to connect to the Oracle database to verify whether the client is correctly installed.

3. install PHP oci8 extension

Or run the following command as a normal user that can use sudo:

Sudo apt-get install build-essential

Sudo apt-get install php5-dev for php-pear

Sudo pecl install oci8

Enter the actual path of $ ORACLE_HOME after the following prompt (my own is/usr/lib/oracle/xe/app/oracle/product/10.2.0/client ):

Sail @ ubuntu :~ $ Sudo pecl install oci8

Downloading oci8-1.2.2.tgz...

Starting to download oci8-1.2.2.tgz (71,806 bytes) ...... done: 71,806 bytes

10 source files, building

Running: phpize

Processing ING:

PHP Api Version: 20041225

Zend Module Api No: 20050922

Zend Extension Api No: 220051025

Please provide the path to ORACLE_HOME dir. Use instantclient,/path/to/instant/client/lib if youre compiling against Oracle Instant Client [autodetect]:

After the system is compiled and installed, there should be an oci8.so file in the/usr/lib/php5/20051025 (my php version is 5.1.6) directory. Run the following command:

Sudo vi/etc/php5/apache2/php. ini

Add

Extension = oci8.so

Restart apache2 after saving the disk

Sudo/etc/init. d/apache2 restart

Now, our "wife" is done! Verify it with a browser!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.