Solved

CentOS NEW INSTALL trouble creating temp folders

Posted on 2014-09-09
5
200 Views
Last Modified: 2014-09-10
I have a "SHOW STOPPER" issue on a brand new install of a CENT OS box. When I installed apache, phpMyAdmin, etc. etc. all from user: ROOT

But the website applicaiton I was running was having trouble creating folders, or temp files. So tried everything including:
1. Changing the Group, user to Apache, Apache
2. Giving all permissions r, w, x to the directory and recursing to all files through filezilla.
3. Creating another user in the system ..

What can be wrong? I have done only default things?

I am in need of urgent help
0
Comment
Question by:Starquest321
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 28

Accepted Solution

by:
Jan Springer earned 500 total points
ID: 40312062
Show an "ls -ldZ" on every file or directory with which you are having a problem.
0
 

Author Comment

by:Starquest321
ID: 40312072
for the /var/www/

drwxr-xr-x. apache apache system_u:object_r:httpd_sys_content_t:s0

now for the html:

drwxr-x---. apache apache system_u:object_r:httpd_sys_content_t:s0

now for the "application" running:

drwxrwx---. apache apache unconfined_u:object_r:httpd_sys_content_t:s0
0
 
LVL 28

Expert Comment

by:Jan Springer
ID: 40312196
What is the output of:

 getsebool -a | grep httpd
0
 

Author Comment

by:Starquest321
ID: 40312228
# getsebool -a | grep httpd
httpd_anon_write --> off
httpd_builtin_scripting --> on
httpd_can_check_spam --> off
httpd_can_connect_ftp --> off
httpd_can_connect_ldap --> off
httpd_can_connect_mythtv --> off
httpd_can_connect_zabbix --> off
httpd_can_network_connect --> off
httpd_can_network_connect_cobbler --> off
httpd_can_network_connect_db --> off
httpd_can_network_memcache --> off
httpd_can_network_relay --> off
httpd_can_sendmail --> off
httpd_dbus_avahi --> off
httpd_dbus_sssd --> off
httpd_dontaudit_search_dirs --> off
httpd_enable_cgi --> on
httpd_enable_ftp_server --> off
httpd_enable_homedirs --> off
httpd_execmem --> off
httpd_graceful_shutdown --> on
httpd_manage_ipa --> off
httpd_mod_auth_ntlm_winbind --> off
httpd_mod_auth_pam --> off
httpd_read_user_content --> off
httpd_run_stickshift --> off
httpd_serve_cobbler_files --> off
httpd_setrlimit --> off
httpd_ssi_exec --> off
httpd_sys_script_anon_write --> off
httpd_tmp_exec --> off
httpd_tty_comm --> off
httpd_unified --> off
httpd_use_cifs --> off
httpd_use_fusefs --> off
httpd_use_gpg --> off
httpd_use_nfs --> off
httpd_use_openstack --> off
httpd_use_sasl --> off
httpd_verify_dns --> off
0
 
LVL 28

Expert Comment

by:Jan Springer
ID: 40312277
Let's try this first:

chcon -t httpd_sys_rw_content_t /path/to/directory
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question