Hi dears
I'm having problems uploading files on wordpress.
When collecting logs with the command:
tail -f /etc/apache2/logs/error_log
It seems to me that it's something with file permissions in the /tmp folder.
logs:
[Mon Oct 11 15:43:04.210050 2021] [access_compat:error] [pid 30622] [client 104.131.60.249:56142] AH01797: client denied by server configuration: /home/irpp/public_html/xmlrpc.php
Failed to start up concurrent users module!
[Mon Oct 11 15:43:04.314329 2021] [cgi:error] [pid 27400] [client 177.55.50.106:50766] AH01215: PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php74, referer: https://www.foo.bar.com.br/wp-admin/media-new.php (fake url for my security)
[Mon Oct 11 15:43:07.748386 2021] [cgi:error] [pid 30810] [client 192.99.10.170:48414] AH01215: PHP Warning: Unknown: open(/tmp/sess_uhrphunbgg7a3g46iucn9fl6c2, O_RDWR) failed: Read-only file system (30) in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php56
[Mon Oct 11 15:43:07.748641 2021] [cgi:error] [pid 30810] [client 192.99.10.170:48414] AH01215: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php56
[Mon Oct 11 15:43:11.560325 2021] [cgi:error] [pid 30810] [client 192.99.10.170:48414] AH01215: PHP Warning: Unknown: open(/tmp/sess_p85hibut76tblie2ohd7f6etp6, O_RDWR) failed: Read-only file system (30) in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php56
[Mon Oct 11 15:43:11.560574 2021] [cgi:error] [pid 30810] [client 192.99.10.170:48414] AH01215: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php56
Unable to create lock file: Read-only file system
I've tried several wordpress tutorials that ask you to specify the path with the command below in a php configuration file and create the /temp folder:
define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');
can someone give me a light at the end of the tunnel
Regards,
I'm having problems uploading files on wordpress.
When collecting logs with the command:
tail -f /etc/apache2/logs/error_log
It seems to me that it's something with file permissions in the /tmp folder.
logs:
[Mon Oct 11 15:43:04.210050 2021] [access_compat:error] [pid 30622] [client 104.131.60.249:56142] AH01797: client denied by server configuration: /home/irpp/public_html/xmlrpc.php
Failed to start up concurrent users module!
[Mon Oct 11 15:43:04.314329 2021] [cgi:error] [pid 27400] [client 177.55.50.106:50766] AH01215: PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php74, referer: https://www.foo.bar.com.br/wp-admin/media-new.php (fake url for my security)
[Mon Oct 11 15:43:07.748386 2021] [cgi:error] [pid 30810] [client 192.99.10.170:48414] AH01215: PHP Warning: Unknown: open(/tmp/sess_uhrphunbgg7a3g46iucn9fl6c2, O_RDWR) failed: Read-only file system (30) in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php56
[Mon Oct 11 15:43:07.748641 2021] [cgi:error] [pid 30810] [client 192.99.10.170:48414] AH01215: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php56
[Mon Oct 11 15:43:11.560325 2021] [cgi:error] [pid 30810] [client 192.99.10.170:48414] AH01215: PHP Warning: Unknown: open(/tmp/sess_p85hibut76tblie2ohd7f6etp6, O_RDWR) failed: Read-only file system (30) in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php56
[Mon Oct 11 15:43:11.560574 2021] [cgi:error] [pid 30810] [client 192.99.10.170:48414] AH01215: PHP Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0: /usr/local/cpanel/cgi-sys/ea-php56
Unable to create lock file: Read-only file system
I've tried several wordpress tutorials that ask you to specify the path with the command below in a php configuration file and create the /temp folder:
define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');
can someone give me a light at the end of the tunnel
Regards,