Link to home
Start Free TrialLog in
Avatar of Starquest321
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
ASKER CERTIFIED SOLUTION
Avatar of Jan Bacher
Jan Bacher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Starquest321
Starquest321

ASKER

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
What is the output of:

 getsebool -a | grep httpd
# 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
Let's try this first:

chcon -t httpd_sys_rw_content_t /path/to/directory