Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ SELinux security permissions HTTP + PHP service changes     - To compile and install MySQL 5.7.7 RC under CentOS 7.1 (Database)

- To configure Samba to share files with Windows under CentOS (Linux)

- MongoDB polymerization being given (Database)

- Linux unpack the tar file to a different directory (Linux)

- Oracle Client Dedicated and Shared connection mode (Database)

- Spring AOP for logging (Programming)

- Android project and coding specifications (Programming)

- Windows Server 2012 R2 Datacenter install SQL Server 2016 CTP (Database)

- Ubuntu 14.04 build Gitlab (Linux)

- Understanding Linux firewall Iptables (Linux)

- UUID in Java (Programming)

- EChart simple and practical control on chart (Programming)

- Wireless LAN security solutions (Linux)

- Shell script on the variables with double quotation marks grep small problem (Programming)

- Using Linux strace command trace / debug a program commonly used options (Linux)

- Ubuntu Slingscold (Linux)

- Cobbler automatic mass deployment of CentOS 6 and CentOS 7 (Linux)

- PostgreSQL with the C Completing the storage process instances (Database)

- Oracle 11g partition maintenance (Nice) - Truncating And Partitions (Database)

- The first IOS Objective-C program (Programming)

 
         
  SELinux security permissions HTTP + PHP service changes
     
  Add Date : 2018-11-21      
         
         
         
  In PHP using the fopen function real writing, often encounter such as:

PHP Warning: fopen (file): failed to open stream: Permission denied in (filepath) on line (num) errors, especially when based on php.conf in the virtualhost, and specify another directory will be the case may occur (I use Fedora 20), attached himself to use virtualhost configuration list:

< VirtualHost 127.0.0.1:80 >
    ServerAdmin xqbumu @ jx
    DocumentRoot / opt / Workspace / PHP / jx
    ServerName jx
    ErrorLog logs / jx-error_log
    CustomLog logs / jx-access_log common
    < Directory "/ opt / Workspace / PHP / jx /" >
        Options Indexes MultiViews FollowSymLinks
        AllowOverride All
        #Order Allow, deny
        #Allow From all
        #Options None
        Require all granted
    < / Directory >
< / VirtualHost >

By configuring Selinux can solve the problem.

I used shell command as follows:

semanage fcontext -a -t httpd_sys_rw_content_t '/opt/Workspace/PHP/jx/application/controllers/temp(/.*)?'

restorecon -v '/ opt / Workspace / PHP / jx / application / controllers / temp / *'

This can be resolved in / opt / Workspace / PHP / jx / application / controllers / temp / directory literacy problem.
     
         
         
         
  More:      
 
- Installation and operation GAMIT software under Linux operating system (Linux)
- Easy to install Ubuntu 15.04 and Ubuntu 15.04 GNOME on Wayland trial (Linux)
- Install the open source database PostgreSQL 9.4 and phpMyAdmin on Ubuntu (Database)
- Ubuntu dual-card system configuration method (Server)
- To build a private Docker registry (Server)
- Python2 ---- function using dictionaries (Programming)
- Oracle to start to solve the error ORA-27102 (Database)
- Difference LVS three scheduling modes (Server)
- Nginx + ownCloud + PHP + MySQL to build personal private cloud under CentOS7 (Server)
- Six Ways to view slides can be implemented Android (Programming)
- Use C program in JavaScript (Programming)
- Internal class broadcasting needs public and static (Programming)
- JBPM6 Tutorial - Fast Fun JBPM table (Linux)
- MySQL Tutorial: Building MySQL Cluster under Linux (Database)
- Implement Oracle dynamic registration of non-standard port 1521 (Database)
- iptables using summary (Linux)
- Linux system security configuration (Linux)
- Linux System Getting Started Tutorial: How to update outdated version of Ubuntu (Linux)
- Linux Firewall IPCop Profile (Linux)
- How to create a someone project on github (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.