Solved

CentOS NEW INSTALL trouble creating temp folders

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
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 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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

770 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