Solved

CentOS NEW INSTALL trouble creating temp folders

Posted on 2014-09-09
5
193 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

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 …
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now