Error: [/public_html] folder not writable: GoDaddy Managed Hosting Problem
-
Hello!
First of all, is there something seriously wrong with the search function on this site? It’s not working for me AT ALL. If this issue has already been handled, I apologize.
ok, so I installed Code Profiler on the client’s website. I went to set it up and run it, and it literally says: “The following folder is not writable: /home/[website]/public_html/wp-content/uploads/code-profiler. Please change its permissions or ownership so that Code Profiler can write to it.”
After starting a scan, it says “Cannot create the report: the profiler did not generate a data file (#1). Make sure the following directory is writable: /home/[website]/public_html/wp-content/uploads/code-profiler/. If you are using a caching plugin or an opcode cache, try to disable it. You may also find more details about the error in the “Log” tab.”
I got on a chat yesterday to learn that #1, GoDaddy has slow, arrogant, unhelpful chat reps, and #2, there is no /public_html/ on Managed WordPress Hosting with GoDaddy. It’s something else, like /sssss234234234/html/ or some stuff.
So, the question is, Can I get this to work on that hosting enviroment, and, if so, how?
Thanks so much!
~K
-
Can you connect to your site over FTP, go to the
wp-content/uploads/directory and check the permissions of the/code-profiler/folder?
It should berwxr-xr-x(0755).
If it isn’t, change its permissions torwxr-xr-x(0755).
If it is, try to change it torwxrwxrwx(0777).The fact that the paths are different (/home/[website]/public_html vs /sssss234234234/html/) could be due to a symlink for instance, and doesn’t really matter.
I do have ftp and did change the permissions a bunch of times recursively to 777, but it still can’t write to /home/[website]/public_html/wp-content/uploads/
I had a chat with support at GoDaddy and the guy told me that there is no public_html on managed hosting, so that directory doesn’t exist. However, several plugins seem to think they reside there, but can’t write to the proper directory. I asked him if they edit the htaccess file upon munging up the wordpress directory structure, so that things go to the right place, and he said no they can’t touch customers’ files (or something like that). He said that not all plugins are “managed hosting” compatible and I have to check each one to make sure they are before installing them. Well, how do I do that? I’ve searched for this issue for hours and found nothing. I would think this would be a common problem with a large percentage of plugins not working on GoDaddy’s hosting (or being “incompatible”). Either that or there is something unique about this particular account and it’s just affecting this one site, and maybe it actually has nothing to do with there being a public_html directory or not.
I ask if they can put in another symlink to let things know where they are. I just completed a quiz and now can’t save it and I can’t upload images, so this is a definite issue. I’ll be contacting them again to get it sorted out.
Thanks for your reply!You can check the profiler’s system report for errors with paths and permissions: go to Code Profiler’s main page, click the “Support” tab and look at the
[sysinfo]and[code-profiler]section.Here they are:
[sysinfo] => Array ( [OS] => Linux 4ef476e3-1389-e28e-08e0-6a43a9d0a575.secureserver.net 5.4.206-200.el7.x86_64 #1 SMP Thu Jul 28 14:58:01 UTC 2022 x86_64 [HTTP server] => Apache [PHP] => CGI-FCGI 8.0.27 [Opcode cache] => Zend OPcache (enabled) [Memory limit] => 256M [Peak limit] => 16,598,344 [Max execution time] => 300s [Disabled functions] => [Display errors] => [Temp directory] => [Log errors] => 1 [Error log] => (0 bytes) [Last error] => Array ( [type] => 2 [message] => file_put_contents(/home/*****/public_html/wp-content/uploads/code-profiler/log.php): Failed to open stream: No such file or directory [file] => wp-content/plugins/code-profiler/lib/helper.php [line] => 179 ) [WordPress] => Array ( [version] => 6.2.2 [WP_DEBUG] => [WP_DEBUG_LOG] => ) )[code-profiler] => Array ( [slug] => code-profiler [version] => 1.6.2 [data_dir] => Array ( [path] => /home/*****/public_html/wp-content/uploads/code-profiler [exists] => [writable] => ) [shutdown] => 1 [tick] => 1 [unregister] => 1 [register] => 1 [restore] => 1 )That doesn’t look good. The profiler simply relies on the WordPress wp_upload_dir() function to get the path to the upload directory. Maybe you have either the
WP_CONTENT_DIRorUPLOADSconstant already defined in your wp-config.php file, but it points to the wrong folder (/home/*****/public_html/wp-content/uploads), which would explain why you’re having those problems?
The topic ‘Error: [/public_html] folder not writable: GoDaddy Managed Hosting Problem’ is closed to new replies.