Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-01-2023, 03:38 AM   #1
Registered: Jul 2007
Posts: 45

Rep: Reputation: 0
Exclamation Apache - Selinux - php - svn


I need some help, I'm trying to configure apache with php on a new server located on cloud.
Selinux is enabled and I never used selinux.

web app. are located on a svn server, so for importing the web app, I use svn co.
But with selinux, I have some problem for manage access right.

<my user> is a normal user with sudo right.
My actual tree is :

/mnt/www rwxr-S--- <my user>:apache
With <my user> I cannot access to /mnt/www, I must sudo and call mc

The direcoty for one of my web's app :
drw-r-x---. 10 <my user> apache 4096 Jan 31 17:13 xinos

and under this folder, php files for running the app.
Example of file:
-rw-r--r--. 1 <my user> apache 992 Jan 30 17:02 menu.php

But the problem is : when i do a svn update, the group id change and apache cannot read the file.
And sometime I must reset right with chmod 0640 the file.

so, how I can have a secure www directory, permit to update my web applications easily.

I also have problem with php and mysql connection (mysql 8), so this installation become a nightmare for me.

thank you for your help
Old 02-01-2023, 05:08 AM   #2
Registered: Jul 2007
Posts: 45

Original Poster
Rep: Reputation: 0

I found a part of the proble: SELinux is preventing /usr/bin/svn from setattr access... how can I resolve that ?


apache, php, selinux, svn

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
copy svn working dir without svn hidden dirs and files? erinspice Linux - Software 4 03-29-2011 05:58 PM
Svn client on FC10: remote SVN server update errs: timed out waiting for srvr ... Amol Tupe Linux - Software 0 10-01-2010 03:25 AM
SVN: Could not open requested SVN filesystem rfkrocktk Linux - Server 1 11-24-2009 04:28 PM
anon svn read-only over apache: '.svn/entries': No such file hedpe Linux - Software 2 04-29-2009 05:31 AM
svn checkout -bash svn command not found Anauj0101 Linux - Newbie 6 04-20-2008 05:50 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration