Home > Article > Backend Development > PHP server environment construction and Oracle support
Install epel source:
Install remi source:
Enable remi, edit source settings vim /etc/yum.repos.d/remi.repo Modify enable=1 Install base packages:
Install php+ mysql, complete the configuration of the php server, and build the php environment: yum -y install nginx mysql-server php-fpm php-cli php-pdo php-mysql php-mcrypt php-mbstring php-gd php-tidy php-xml php-xmlrpc php-pear php-pecl-memcache php-eaccelerator Modify the user and group of /etc/php-fpm.conf to nginx (apache-->nginx) Modify /var/lib/php/session (so that php can save the session), and the web user group is nginx
Set up auto-start
Install oci8 support Download oracle-instantclient-basic, oracle-instantclient-devel Installation: rpm -ivh oracle-instantclient11.2-basic Download oci8 class library:
After compilation is completed vim /etc/php.d/oci8.ini Add extension=oci8.so php configuration Total configuration: /etc/php.ini Startup configuration: /etc/php.d/ (directory), /etc/php-zts.d/ (directory) nginx configuration Total configuration: /etc/nginx/nginx.conf Sub-configuration: /etc/nginx/conf.d/ (directory) php-fpm configuration Total configuration: /etc/php-fpm.conf Sub-configuration: /etc/php-fpm.d/ (directory) php server environment setup and configuration (apache and iis two methods) How to build a php server environment Configuring php server environment under ubuntu php and mysql server configuration instructions php class to get server information An alternative way to obtain server-side information using php php code to get server information |