_php Tutorials for installing Oracle and PHP environments under Linux

Source: Internet
Author: User
Write a rough, make a look! Oracle is more cumbersome under Linux! ^0^ one. Redhat7.2 installation of the operating system: two. MySQL source installation: >groupadd mysql >useradd–g mysql mysql >tar–zxvf mysql-version.tar.gz >cd mysql-version >./co nfigure--prefix=/usr./local/mysql >make >make install >chown–r root/usr/local/mysql >chown–r Mysql/usr/lo Cal/mysql/var >chgrp-r mysql/usr/local/mysql >CP support-files/my-medium.cnf/etc/my.cnf >cd/usr/local/ Mysql/bin >./safe_mysqld--user=mysql & Three. Installation of Oracle8.1.7:1. Install the following packages: compat-libstdc++-6.2-2.9.0.16 compat-glibc-6.2-2.1.3.2 compat-egcs-c++-6.2-1.1.2.16 compat-libs-6.2-3 Compat-egcs-6.2-1.1.2.16 compat-egcs-objc-6.2-1.1.2.16 (with the above packages in Redhat installation disc Disk1 and DISK2) 2. Installation jdk118_v3-glibc-2.1.3.tar.bz2 bunzip2 jdk118_v3-glibc-2.1.3.tar.bz2 tar–xvf jdk_v3-glibc-2.1.3.tar ln–s jdk118_v3 Java 3. Prepare the user Environment Groupadd Oinstall groupadd dba groupadd oper Useradd oracle–g oinstall–g dba,oper 4. Create the installation directory: Mkdir/oracle chown oracle.dba/oracle chmod 775/oracle 5. Setting environment variables: in the/etc/profile fileAdd the following: Oarcle_base=/oracle/app/oracle oracle_home=/oracle/app/oracle/product/8.1.7 ORALCE_SID=ORCL ORA_NLS=/ Oracle/app/oracle/product/8.1.7/ocommon/nls/admin/data ora_lang= "Simplified Chinese" CLASSPATH=.:/ Oracle/app/oracle/product/8.1.7/jdbc/lib/classes111.zip Ld_library_path=/oracle/app/oracle/product/8.1.7/lib Path= $PATH: $OACLE _home/bin: $ORACLE _home/dbs:/etc Export oracle_base oralce_home oracle_sid ora_nls Nls_lang LD_IBRARY View environment variables:. /etc/profile Env|grep Oracle See if Oracle's settings correctly add the following to the/home/oracle/.bash_profile file:. /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh export ld_assume_kernel=2.2.5. /home/oracle/.bash_profile Gcc–v to see if it has been replaced. 6. Install exit to install with an Oracle user login: >su root >tar-xvf linux1701.tar >cd Disk1 >./runinstaller for installation. Click Next and the popup will prompt you to run the orainstroot.sh >su >cd $ORACHE _home >./orainsroot.sh continue the installation and pop-up dialog asking to run root.sh >CD $ORACLE _home >./root.sh exit installed, hit an ORACLE patch >CP glibc-2.1.3-stubs.tar.gz $ORACLE _home >tar–zxvf glibcs-2.1.3-stubs.tar.gz >./setup_stubs.sh Installation is complete start the Oracle >SVRMGRL >connect internal >startup >quit start the listening window: >lsnrctl >start >quit Four. Apache PHP installation >tar–zxvf apache_1.3.26.tar.gz >tar–zxvf php_4.1.2.tar.gz >cd apache_1.3.26 >./configure--PR Efix=/usr/local/apace >CD. /php-4.1.2 >./configure--with-mysql–with-apache=/usr/local/apache_1.3.26--with-oci8=/oracle/app/oracle/ product/8.1.7–with-oracle=/oracle/app/oracle/product/8.1.7--enable-track-vars >make >make Install >CP Php.ini-dist/usr/local/lib/php.ini >CD. /apache_1.3.26 >./configure--activate-module=src/modules/php4/libphp4.a >make >make install launch Apache >/ Usr/local/apache/bin/apachectl start Five. Configure Apache and PHP >cd/usr/local/apache/conf >vi httpd.conf To set the path you want to set. >cd/usr/local/lib >VI php.ini Configure the Oracle boot module.

http://www.bkjia.com/PHPjc/531791.html www.bkjia.com true http://www.bkjia.com/PHPjc/531791.html techarticle write a rough, make a look! Oracle is more cumbersome under Linux! ^0^ one. Redhat7.2 installation of the operating system: two. MySQL source installation: >groupadd mysql >useradd–g mysql m ...

  • 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.