Starquest321
asked on
CentOS NEW INSTALL trouble creating temp folders
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What is the output of:
getsebool -a | grep httpd
getsebool -a | grep httpd
ASKER
# 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_dir s --> 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_winbin d --> 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_writ e --> 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
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_
httpd_can_network_connect_
httpd_can_network_memcache
httpd_can_network_relay --> off
httpd_can_sendmail --> off
httpd_dbus_avahi --> off
httpd_dbus_sssd --> off
httpd_dontaudit_search_dir
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_winbin
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_writ
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
Let's try this first:
chcon -t httpd_sys_rw_content_t /path/to/directory
chcon -t httpd_sys_rw_content_t /path/to/directory
ASKER
drwxr-xr-x. apache apache system_u:object_r:httpd_sy
now for the html:
drwxr-x---. apache apache system_u:object_r:httpd_sy
now for the "application" running:
drwxrwx---. apache apache unconfined_u:object_r:http