Displaying 20 results from an estimated 6000 matches similar to: "Remote upload apache files"
2015 Jan 22
2
SELinux permissions for apache
Hey all,
I have a simple php app working that writes some info to a text file. The
app will only work correctly if SELinux is disabled. If it's enabled and
try to use the app, it fails. It seems that SELinux is denying the app
ability to write to the text file.
So I tried running the following command:
chcon -R -t httpd_sys_content_t /var/www
And tried veriying the command with the
2007 Jun 10
1
Problems with UserDir directive on CentOS 5
Hi,
I'm currently setting up a local LAMP server to test various apps.
Starting from the out-of-the-box configuration of Apache, I test it, and
it's OK: http://localhost shows Apache's default page OK in Firefox.
Now I edit /etc/httpd/conf/httpd.conf and replace 'UserDir disabled' by
'UserDir public_html'.
I restart Apache.
Then, as a normal user (kikinovak):
$
2015 Jan 22
2
SELinux permissions for apache
Hey Jeremy,
> Have you tried changing the folder where it's writing into with these
> lables? httpd_sys_content_rw_t or httpd_user_content_rw_t
Adding 'rw' to the command did the trick. I tried httpd_sys_content_rw_t and
that works fine! Thanks for the tip!
Tim
On Thu, Jan 22, 2015 at 1:19 PM, Jeremy Hoel <jthoel at gmail.com> wrote:
> Have you tried changing
2017 Sep 04
5
selinux denial of cgi script with httpd using ssl
Thanks for your help.
I did pick up an additional entry in the audit file :
type=AVC msg=audit(1504561395.709:10196): avc: denied { execute } for
pid=19163 comm="/usr/sbin/httpd" name="s.check.cgi" dev="dm-0"
ino=537182029 scontext=system_u:system_r:httpd_t:s0
tcontext=unconfined_u:object_r:httpd_sys_content_t:s0 tclass=file
Unfortunately, I am not sure how the
2017 Feb 21
3
SELInux conflict with Postfixadmin
postfixadmin setup.php is claiming:
*Error: Smarty template compile directory templates_c is not writable.*
*Please make it writable.*
*If you are using SELinux or AppArmor, you might need to adjust their
setup to allow write access.*
This goes away with 'setenforce 0', so it is an SELinux issue. I have
tried both:
restorecon -Rv /usr/share/postfixadmin
and
chcon -R -t
2017 Feb 21
2
SELInux conflict with Postfixadmin
On 02/21/2017 11:46 AM, Zdenek Sedlak wrote:
> On 2017-02-21 17:30, Robert Moskowitz wrote:
>> postfixadmin setup.php is claiming:
>>
>> *Error: Smarty template compile directory templates_c is not writable.*
>> *Please make it writable.*
>> *If you are using SELinux or AppArmor, you might need to adjust their
>> setup to allow write access.*
>>
2015 Jan 22
2
SELinux permissions for apache
>
> The easiest answer is to edit the Selinux config file. By default it is
> set to enforce, which really locks it down.
> cd /etc/selinux
> edit the config file and change SELUNIX=enforcing to SELUNIX=permissive
> Save the file and restart httpd, you should be fine..
Yeah dude, exactly. Except I actually do want to start using it. I've been
disabling SELINUX forever
2006 Apr 19
3
Apache and '(13)Permission denied: access to ...'
I'm attempting to install Hobbit and at the point of web access via
Apache.
The error_log states:
(13)Permission denied: access to /hobbit denied
I've tried a number of things and am still getting this:
1) /hobbit is located in /home/hobbit/server/www
2) Made sure all files are in the apache group
3) I've even chcon
2007 Jul 28
2
Any SELinux gurus around?
Hey all, I'm having some trouble getting PHP5 w/ CentOS 5 to connect to
a remote MySQL server using the standard mysql_connect() call.
Yes, MySQL libraries are installed along with php-mysql...
The only way I can get it to work is to run setenforce Permissive,
otherwise the connection fails.
The annoying thing is that nothing at all shows up in my
/var/log/messages file describing why
2011 Apr 11
5
Best configuration for /var/www/html/
For a long period of time, my Apache root directory has been
/home/httpd. For security reasons, this is not so good as
SELinux has informed me. Now all of the files have been copied
to /var/www/etc with owner and group "root". The privileges are
754 (rwxr-xr--), however apache does not have access to them.
Should the owner be apache? Group?
Todd
--
Ariste Software
Petaluma,
2005 Mar 10
7
Problem with apache in CentOS 4.0 (final)
Hi everyone!
In my new CentOS 4.0 (final ;-) I installed apache and activates
SELinux, When I
tried to enter a page of some user (localhost/~user) said to me that she
did not have permissions
to see it, and this was incorrect, because the permissions was 755
(/home/user/html). After awhile it was happened to me to deactivate
selinux and
I reinitiated the machine and I work!
Somebody knows why
2016 Dec 28
4
Help with httpd userdir recovery
On 12/28/2016 03:32 PM, J Martin Rushton wrote:
>
> On 28/12/16 20:11, Robert Moskowitz wrote:
>>
>> On 12/28/2016 01:53 PM, m.roth at 5-cent.us wrote:
>>> Robert Moskowitz wrote:
>>>> On 12/28/2016 05:11 AM, Todor Petkov wrote:
>>>>> On Wed, Dec 28, 2016 at 5:18 AM, Robert Moskowitz <rgm at htt-consult.com>
>>>>> wrote:
2017 Oct 23
2
Unable to apply mysqld_db_t to mysql directory
Thanks, I managed to fix /var/lib/mysql
# ls -ldZ /var/lib/mysql
drwxr-xr-x. mysql mysql system_u:object_r:mysqld_db_t:s0 /var/lib/mysql
To fix it, I tried:
semanage fcontext -d -e /var/lib/mysql
this command returned:
KeyError: /var/lib/mysql
I tried restorecon anyway:
restorecon -Rv /var/lib/mysql
But not better:
ls -ldZ /var/lib/mysql
drwxr-xr-x. mysql mysql system_u:object_r:var_lib_t:s0
2009 Jul 31
2
Apache not liking directories outside of /var/www
Hi all,
It appears that on my nice little CentOS 5.3 machines Apache only
allows me to store content in directories which are under /var/www/
For instance, putting content in /var/www/test and defining the following alias:
Alias /test /var/www/test
then accessing it under http://hostname/test works great.
Not copy that same content to /home/test, change the alias to:
Alias /test /home/test
2009 Sep 14
4
Contribution to wiki: nagios incompatibility with centos 5.2
Hi
I would like to contribute to the wiki.centos.org:
username: boel
subject: nagios incompatibility with centos 5.2
location: http://wiki.centos.org/HowTos/Nagios
content: A security feature of centos 5.2 SELinux prevents the access
from the apache httpd server to the needed /var/nagios files. The error
manifests itself in the /var/log/messages as "SELinux is preventing the
tac.cgi from
2014 Oct 23
2
httpd on centos 7
I have read the info on apache 2.4...
I added to the bottom of httpd.conf these lines (and restarted httpd)
-------------------------
<Directory /var/www/html>
# old 2.2 config
# Order Allow,Deny
# Allow from all
AllowOverride None
Require all granted
</Directory>
<Directory /home/silentm/public_html/gifs>
AllowOverride None
Require all granted
</Directory>
2009 Feb 06
1
Darned thing is suddenly failing. We had a reboot last night, and I
changed a couple of files today too, so either one could somehow be
responsible. But I can''t figure out how from this crash. First I noticed
that my changes weren''t updating. Then I noticed that puppet wasn''t
running. Then I found that it won''t, in fact, run.
/selinux contains only a
2009 Apr 30
2
Defaults of CentOS Install not working with SELinux
Following a hard drive corruption I have reinstalled the latest
version of CentOS and all current patch files.
For most applications I selected the default options. By doing this I
expected that the packages would play nice with one another and I
could customize as necessary.
Setting SELinux to enforce I encountered all sorts of problems - but
most were resolvable, save for Dovecot,
2006 Jun 21
2
Apache problem
hi
I maintain 10 webservers which is used for add delivery using PHP.sometimes
when the load is high my apache process suddenly dies & i restart apache.
i find the following errors in my /var/log/messages/
server1 kernel: audit(1150892521.827:18474474): avc: denied { write } for
pid=28135 comm="httpd" name="php-mmcache" dev=sda7 ino=2146317
2012 Jan 05
6
SELinux and access across 'similar types'
http://wiki.centos.org/HowTos/SELinux
says:
"Access is only allowed between similar types, so Apache running as
httpd_t can read /var/www/html/index.html of type httpd_sys_content_t."
however the doc doesn't define what "similar types" means. I assumed it
just meant "beginning with the same prefix". However that can't be
right because on my system with