Redhat installation Apache+gd1.8.3+php4+tomcat+sybase+oracle+mysql Golden Guide _php Tutorial

Source: Internet
Author: User
Tags directory create sybase sybase database
Read many online users of PHP, JSP, Sybase, Oracle, Apache and other aspects of the installation experience, found that there are many are repeated and not comprehensive enough, according to my long-term summary of all the above and reference related documents as well as the articles of the netizens, and by their own practice, Now will be in the RedHat6.2 under the apache1.3.12+gd1.8.3+php4.04+tomcat+sybase11.9.2+oracle8.1.6+mysql3.22.27 installation configuration all dedicated to everyone, hope to be helpful to everyone; Operating environment: PⅢ550+256M+20G+530TX lan+sis6326 8m+redhat Linux6.2 installation plan: Sybase installed in/sybase directory Oracle installed in/home/oracle directory GD installed in/usr/ Local directory Apache installed in the/WWW directory tomcat installed in the/usr/local/jakarta-tomcat directory JDK installed in/usr/local/jdk122 directory one, data preparation 1, apache_1312.tar.gz 2 , php-404.tar.gz 3, jakarta-tomcat.tar.gz 4, sybase11.9.2 pack: sybase-common-1192-1i386.rpm sybase-ase-1192-1i386.rpm sybase-monserver-1192-1i386.rpm sybase-openclient-1111-1i386.rpm sybase-sqlremote-602-1i386.rpm sybase-chinese-1192-1i386.rpm 5, Oracle8.1.6.tar 6, mysql3.22.27 bag: mysql-3.22.27-1.i386.rpm mysql-devel-3.22.27-1.i386.rpm mysql-client-3.22.27-1.i386.rpm 7, jdk1_2_2-linux-i386.tar.gz 8, mod-jserv.so 9, gd183.tar.gz Second, the Environment Configuration 1, the system installs the Linux system to create the directory/www,/sybase and/home and assigned to the respective larger space for storing database data and Web page files; 2. Environment variables Configure the Java Runtime Environment variables running Oracle and Tomcat and Java to log in to the system with the root user #vi/etC/profile Add the following line Oracle_home=/home/oracle export oracle_home java_home=/usr/local/jre export Java_home ORACLE_SID= Dblee (here Dblee can be changed to your own name) export Oracle_sid oracle_term=xterm export oracle_term oracle_owner=oracle8 export Oracle_ OWNER tns_admin=/home/oracle/config/8.1.6 export tns_admin classpath= $ORACLE _home/jdbc/lib/classes111.zip:. Classpath=/usr/local/jdk/lib:/usr/local/jre/lib: $CLASSPATH export CLASSPATH path= $PATH:/usr/local/jre/bin:/usr/ Local/jdk/bin:/bin:/sbin path= $PATH:/usr/bin:/usr/sbin:/usr/local/bin: $ORACLE _home/bin path= $PATH:/usr/local/ Sbin:/usr/bin/x11:/usr/x11r6/bin:. Export PATH exit re-login, is set to take effect three, file installation 1, Sybase installation if you have Sybase's installation CD, can be installed in the graphical interface of Linux, Sybase provides a graphical interface under the Installation Wizard This article uses the manual RPM package installation; (1) Log in as root (2) in the various RPM packages of Sybase, you must first install the SYBASE-COMMON-1192-1I386.RPM package, which is the necessary content for other packages to run #rpm--prefix=/sybase-hiv. sybase-common-1192-1i386.rpm #rpm--prefix=/sybase-hiv./sybase-ase-1192-1i386.rpm #rpm--prefix=/sybase-hiv. sybase-monserver-1192-1i386.rpm #rpm--prefix=/sybase-hiv./sybase-openclient-1111-1i386.rpm #rpm--prefix=/sybase-hiv./sybase-sqlremote-602-1-i386.rpm #rpm--prefix=/sybase-hiv. SYBASE-CHINESE-1I386.RPM This completes the installation of Sybase components, requires database creation and necessary configuration to run (3) permissions to set directory files #chown-R sybase/sybase #chgrp-R Sybase/ Sybase (4) Sets the Sybase user password #passwd Sybase (5) Exits the system, logs in with the Sybase user, the system gives a hint, selects N and returns, (6) creates the directory where the Sybase database file exists #mkdir/sybase/data (7) Create a database in the/sybase/bin directory create and run two files required to edit srvbuild.adaptive_server.rs and srvbuild.backup_server.rs files Srvbuild.adaptive_ Examples of server.rs files are as follows: Sybinit.release_directory:/sybase sybinit.product:sqlsrv sqlsrv.server_name:kevin_sybase (set to the Sybase database service name you want to use here) Sqlsrv.new_config:yes Sqlsrv.do_add_server:yes sqlsrv.network_protocol_list:tcp sqlsrv.network_hostname_list:192.168.18.19 (set here as your server IP address) sqlsrv.network_port_list:4000 (the port used by the Sybase database) Sqlsrv.master_device_physical_name:/sybase/data/master.dat Sqlsrv.master_device_size:USE_DEFAULT sqlsrv.master_ Database_size:use_default Sqlsrv.errorlog:USE_DEFAULT Sqlsrv.do_upgrade:no Sqlsrv.sybsystemprocs_device_physical_name:/sybase/data/sybsystem.dat Sqlsrv.sybsystemprocs_device_size:USE_DEFAULT Sqlsrv.sybsystemprocs_database_size:USE_DEFAULT Sqlsrv.sybsystemdb_device_physical_name:/sybase/data/ Sybsystemdb.dat Sqlsrv.sybsystemdb_device_size:USE_DEFAULT Sqlsrv.sybsystemdb_database_size:USE_DEFAULT SQLSRV.DEFAULT_BACKUP_SERVER:KEVIN_SYBASE_BK (Set the backup service name for your Sybase database here) The Srvbuild.backup_server.rs file example is as follows: Sybinit.release_directory:/sybase sybinit.product:bsrv BSRV.SERVER_NAME:KEVIN_SYBASE_BK (set here as the backup service name set at home) Bsrv.do_add_backup_server:yes bsrv.network_protocol_list:tcp bsrv.network_hostname_list:192.168.18.19 (IP address of the server) BSRV.NETWORK_PORT_LIST:4100 (the port used by the Sybase backup server) Bsrv.language:USE_DEFAULT Bsrv.character_set:USE_DEFAULT bsrv.tape_ Config_file:use_default Bsrv.errorlog:USE_DEFAULT (8) Create a database (the current user is still Sybase) #cd/sybase/bin #./srvbuild-r. Srvbuild.adaptive_server.rs #./srvbuild-r./srvbuild.backup_server.rs After the run is complete, two new files will be generated in the/sybase/install directory Run_kevin _sybase and Run_kevin_SYBASE_BK, the installation and configuration of the Sybase database and the creation of the database have been completed; (9) Start the database (the current user is still Sybase) #cd/sybase/install #./startserver-f./run_kevin_ Sybase #./startserver-f./RUN_KEVIN_SYBASE_BK after seeing some hints, if you do not report an error, it means that the database has been started and you can run the./showserver view in the current directory. #./showserver will return the currently running Sybase database service, which should normally be two services, adative and backup, where your Sybase database is fully installed. You can access the Sybase database through your server IP and port 4000 using tools such as Sybase's client or PowerBuilder, and (10) Experience Tip If you see an error in step 8th or 9th, check that your machine network settings are You must ensure that your server IP address can be ping on this computer, not ping localhost, it must be ping your IP successfully, this is the secret that Kevin has been experimenting with for an afternoon! ^_^ 2, install JDK #cd/usr/local #tar-zxvf jdk1_2_2-linux.tar.gz #ln-S jdk122 jdk #ln-S JDK122/JRE jdk to complete the JDK installation 3, install Oracle      8.1.6 Before you install Oracle, you must complete setup of environment variables and installation of the JDK [root@oradb/root]$ #以root方式登录 [root@oradb/root]$ groupadd Oracle        #创建oracle用户组 [root@oradb/root]$ useradd oracle-g Oracle #在oracle组中建新用户oracle [root@oradb/root]$ passwd Oracle #修改oracle用户口令 [root@oradb/root]$ useradd apache-g Oracle #创建apache用户 Note: Oracle Group and Oracle users are required for Oracle installation Note: When you create an Oracle user, Lin UX system automatically in/home directory to create the/home/oracle directory for Oracle users, Oracle users have all the permissions for this directory, for convenience, this example installs the Oracle system in the Oracle user's own directory [root@oradb/oracle]$ Exit #退出, log back in with the Oracle user (all of the following are Oracle users) [oracle@oradb/oracle]$ [oracle@oradb/oracle]$ ls-l [oracle@oradb/or acle]$ tar zxvf oracle8161_tar.gz #解压oracle压缩包到当前目录 [oracle@oradb/oracle] $mv oracle8ir2 orainst #为了写起来方便, I renamed the catalog and you can Unchanged [oracle@oradb/oracle]$ startx #启动X-windows, enable a terminal (Xterm), (graphics window) #在该终端中运行runInstaller [oracle@ oradb/oracle]$ CD Orainst [oracle@oradb/orainst]$./runinstaller #执行oracle安装程序, Linux executes a program that is available./Invoke execution At this point you can see the new graphical oui Welcome screen running with JRE and follow the prompts to proceed with the installation process: Welcome: Press Next File Locations: Press Next UNIX Group Name: Nothing is added, press Next error, Prompt to run "/home/oracle/orainstroot.sh ctrl+alt+f2 with root privileges, open a new console (character window) to log in as root [root@oradb/root]$ cd/home/oracle at this point,/ home/oracle/directory Only one file orainstroot.sh, run it [root@oradb/oracle]$ sh orainstroot.sh ctrl+alt+f7, back to the Installation Interface (graphics window) Press the Retry button, You can continue to install, Available products: Choose oracle8i Enterprise Edition 8.1.6.1.0, press Next Installation Types: Select Typical (540MB), press Next, then a progress ruler is appearing in the upper right corner of the screen database Identification:global database Name: Enter Oracle8 (can be arbitrary) SID: Reserved ORCL Press Next Database File location: Any directory, this example is set to "/home/oracle/", press Next, then the upper right corner of the screen progress ruler continues to advance Appear summary, you want to install the product to make a summary press install, appear install screen, wait ... You can see the installation log file directory at the bottom of the window, which can be queried later. Pop-up setup Privileges window Tip: Before the installation continues, you need to run a script "/home/oracle/root.sh" with Root, ctrl+alt+f2, and go back to the 2nd terminal window you just ran to execute the file as root, [ root@oradb/oracle]$ sh root.sh screen display: Enter The full pathname of the local bin dire

http://www.bkjia.com/PHPjc/509178.html www.bkjia.com true http://www.bkjia.com/PHPjc/509178.html techarticle read the online many netizens on the PHP, JSP, Sybase, Oracle, Apache and other aspects of the installation experience, found that there are many are repetitive and not comprehensive enough, according to my long-term summary of all the above ...

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