Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Linux + Apache + PHP + Oracle based environment to build     - Hadoop 2.6.0 standalone configuration and pseudo-distributed configuration under Ubuntu 14.04 (Server)

- MySQL root password reset under CentOS (Database)

- Linux network cut package is not fully defragment (Linux)

- Oracle 11g on Linux system boot from the startup settings (Database)

- Oracle study notes view (Database)

- Ubuntu 12.04 commonly use shortcuts finishing Share (Linux)

- New features of Java 9 HTTP2 and REPL (Programming)

- Ubuntu arm-none-eabi-gcc compiler treated with STM32F10x (Linux)

- C ++ input and output summary _ Input (Programming)

- Linux C source code (sockettype: socket descriptor determination function) (Programming)

- Remove old kernel on Ubuntu (Linux)

- The basic principle of pointers in C ++ (Programming)

- MySQL5.6 based GTID master-slave replication (Database)

- CentOS 5.11 Open VNC access (Linux)

- Top 10: HTML5, JavaScript 3D game engine and framework (Linux)

- CentOS 6.5 installation VNCServer implement graphical access (Server)

- Common Linux system performance monitoring command (Linux)

- 10 practical Java programming technology (Programming)

- Linux system versions organize local root password cracking method (Linux)

- PostgreSQL procedural language learning (Database)

 
         
  Linux + Apache + PHP + Oracle based environment to build
     
  Add Date : 2018-11-21      
         
         
         
  Preface:

Can not guarantee 100% first pass, each system will be more or less the difference, if missing some dependencies, then please forgive me

1, the installation need to compile Apache installation package, download the respective official website

Pcre, Apr, Apr-Util

2, compile and install Apache:

./configure --prefix = / usr / local / apache --with-apr = / usr / local / apr --with-apr-util = / usr / local / apr-util --with-pcre = / usr / local / pcre --with-mpm = prefork --enable-cache --enable-disk-cache --enable-mem-cache --enable-file-cache --enable-nonportable-atormics --enable-mods-shared = most --enable-so

3, PHP installation you need to install the package

(1) YUM mounted, source 163

yum install libxml2-devel curl-devel libpng-devel freetype-devel libjpeg-devel -y

(2) the compiler installed, each software official website to download

Libiconv, libmcrypt

(3) RPM installed, download from Oracle's official website

oracle-instantclient11.2-basic

oracle-instantclient11.2-devel

oracle-instantclient11.2-sqlplus

4, need to update the environment variables

export ORACLE_HOME = / usr / lib / oracle 11.2 / client64 # connection ORACLE session of the location /

export LD_LIBRARY_PATH = $ ORACLE_HOME / lib #LIB position of

export NLS_LANG = AMERICAN_AMERICA.AL32UTF8 # allow non-Chinese garbled display

5, add the host name in the / etc / hosts in

127.0.0.1 BJ-NQ-V-xxx

6. compile and install PHP

./configure --prefix = / usr / local / php --with-config-file-path = / usr / local / php / etc --with-apxs2 = / usr / local / apache / bin / apxs --with -freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir = / usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-force- cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --enable-sockets --with-gettext --with-oci8 = instantclient --with-pdo- oci --with-iconv = / usr / local / libiconv --enable-opcache = no

7, test PHP code that communicates ORACLE

# Test code:

$ Db_server = "localhost"; #ORACLE of IP
$ Db_user = "atyu30"; #ORACLE username
$ Db_pass = "atyu30"; #ORACLE password
$ Db_sid = "atyu30"; #ORACLE the SID
$ Dbconn = OCILogon ($ db_user, $ db_pass, "(DEscriptION = (ADDRESS = (PROTOCOL = TCP) (HOST = 127.0.0.1) (PORT = 1521)) (CONNECT_DATA = (SID = $ db_sid)))");

if ($ dbconn! = false)
{
echo "Connection";
echo "DB server:" $ db_server;.
echo "User:" $ db_user;.
echo "Password:" $ db_pass;.
. Echo "SID:" $ db_sid;
echo "success \ n";
if (OCILogOff ($ dbconn) == true)
{
echo "Close the connection is successful!";
}
}
else
{
echo "Connection failed";
}
?>
     
         
         
         
  More:      
 
- How to handle special characters in JSON (Programming)
- Ubuntu rights management common commands (Linux)
- The first deployment of cross-platform operation Rafy record (Server)
- Linux 4.0+ kernel support for hardware switching module (HW Switch Offload) (Linux)
- Getting case of Python Hello World (Programming)
- Django how to generate content in non-HTML formats (Programming)
- Shell Common Command Summary (Programming)
- Linux commands to access the cheat sheet (Linux)
- GEC2440 easiest a kernel compile Linux2.6.30.4 (Programming)
- BGP routers want to play it by CentOS (Linux)
- CentOS 6.5 dual card configuration, one of the external network, a local area network connection (Linux)
- Elaborate .NET Multithreading: Concepts (Programming)
- Three strategies to teach you to release the device memory (Linux)
- Ubuntu 15.04 installation Powercommands 2.0 (Linux)
- Learning MySQL data types (Database)
- BCP importing and exporting large amounts of data Practice (Database)
- RHEL6 install Python and other packages from source (Linux)
- C # using the HttpClient Note: Preheat the long connection (Programming)
- The basic method RHEL6 (CentOS6) used in the source package compiled RPM: Upgrade OpenSSH articles (Linux)
- Nginx version of helloworld (Server)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.