Wordpress Unable to Create Directory Uploads/2018/03. Is Its Parent Directory Writable by the Server
#i Tue, 05/08/2018 - 06:39
Virtualmin and file Permissions on /public_html
Howdy all, I am facing a problem which seems to exist a common but couldnt discover the real solution. I am lookin for couple of days on cyberspace to discover the Solution without success. Then kickoff of all, the Situation: I am using these components - VPS Ubuntu xvi.04 LTE - Webmin version 1.81 - Virtualmin half dozen.03 . Virtualserver with FCGId mode - PHP Version 7.i.seven
Now the Problem When i create a virtual Server on virtualmin, information technology completes the installation without whatsoever Problems. At present i install a wordpress on /home/virtualservername/public_html and it runs so far fine. Now i want to install some plugins etc in WP Backend and WP brings a windows and ask for FTP cresidentials. :-( Now i alter the ownership from "virtaulservernam:virtualservername to "www-information" on /public_html directory recursive and run across that i tin can update or install the Plugins without giving the ftp Access. Information technology works as information technology should be. i didnt made whatever changes on the directory public_html with root Admission..
I put in user management of "www-data" the name of Virtualserver equally fellow member of secondry group but it wont work. I too tried to modify php mode to CGI and Apache but with same consequence.
Question: What could be wrong here ? it can not be the solution to change Public_html directory with Ownership of "www-data" cuz in this case the ftp user accept no permissions to write on the directory.
It would exist nice if someone could requite methe hint to ready the problem. regards nomi
#2 Tue, 05/08/2018 - 08:twoscore
Shouldn't change public_html to www-information at all. All files in user public_html should be owned past the user, as is the default for virtualmin. When you utilize wordpress to update itself or add plugins, it has to know how to access the public_html binder. Put in the user ftp details. If uneasy about allowing WP to ftp in, then download the plugin manually and FTP it to the public_html binder via an FTP program.
#3 Thu, 05/10/2018 - 06:10
And then there is nothing wrong with this user Persmission. Non possible that this User which is created by virtualmin could have more than rights ? I have put now the FTP Detaisl ins Wordpress config file to easily update and install on WP Backend and information technology works.
I fabricated this mistake in an other Joomla installation and gave Joomla directory the www-information ownership. Now i inverse the ownership to original User (recursiv) and now the page is no more than available ,it gives me Error 500. How tin can i fix this Problem on virtualmin.
#four Thu, 05/10/2018 - xi:15
Welshman
Afterward install of Wordpress yous just need to become to "Limits and Validation - Validate Virtual Servers , and then cull the "Fix Permissions" tab, choose the domain to fix and run it. All files will so exist owned by the VS admin and not root and plugins etc volition install without whatsoever ftp info required..
#v Thu, 05/ten/2018 - 14:23
Joe
Virtualmin sets up VirtualHosts with suexec. Ownership of web data should always be domainuser:domaingroup.
If you lot install WordPress using the Install Scripts interface in Virtualmin, everything, including plugins, should Just Work. You shouldn't demand to modify annihilation, y'all shouldn't need to upload anything manually, and you shouldn't need to configure FTP admission in WordPress.
If you upload files via FTP or ssh every bit root, you will run into a lot of problems, and nosotros don't recommend it. Login as the domain owner user when yous're working on a domain, and near things volition get the right permissions by default. (But, for WordPress, why not just use the Install Script? Information technology'southward in the GPL version, and will do all the right things, and can notify you of updates and stuff.)
#half-dozen Friday, 05/11/2018 - 01:53
Cheers for your hints. @Welshman: i have tried this option but still the same. WP asks till for ftp details. @Joe: I tried to install WP by using the install scripts but with the same result. WP asks till for the FTP Details fifty-fifty i used the option "Fix Permissions"later on instlling the Wordpress. :-(
#7 Friday, 05/11/2018 - 03:49
Welshman
Expect at who actually 'owns' the files in the directory. I commonly upload WP via an sftp customer and install the former fashioned mode rather than a script installer, so all files belong to root, if I do not fix permissions as I mentioned earlier I get the ftp credentials demand like your getting.
Hope y'all sort information technology. Articulate your browser cache while your at information technology. :) Never know your luck.
#8 Fri, 05/xi/2018 - 05:17
This is the strange thing what i obersiving. The ownership ist all the time domainuser:domaingroup on all the directories and files.
Now will try to transfer the new WP by ftp, but i dont blieve information technology works.
Welshman
SFTP is more than secure, winscp.cyberspace complimentary customer there for Windows, if your that way similar I am.
#x Fri, 05/xi/2018 - 05:32
Yes you are right. I am using only sftp. I worte in thread in short words.
#11 Fri, 05/11/2018 - 05:43
At present the conclusion or summary of the thread...
- Changed the permissios from www-information to domainuser:domaingroup --> no success WP asks for FTP Details by installing or updating
- Fix the permissions by virtualmin: Validate Virtual Servers --> "Prepare Permissions . no success WP asks for FTP Details by installing or updating
- Installed WP past Install scripts --> no success WP asks for FTP Details past installing or updating
- checked the directory with ls-l /domicile/domainame/public_html/ all accept the permissions domainuser:domaingroupe
- Only possible to install Plugins or update to put FTP Details in WP Config file but feeling not well cauz of security issue.
- I use only sftp Connexion.
Loving Virtualmin more and more.... :-(
#12 Fri, 05/11/2018 - 08:05
Hello
nomi,
when you installed WP from the Virtualmin script did you lot uninstall the previous WP?
Did you delete the previous database and create a new database?
Did you lot move or delete whatsoever WP config files earlier trying to install from Virtualmin script?
If you attempted to over write or install over a broken WP, i believe you may create unexpected results.
I would suspect that the Virtualmin WP script is 1 of the most widely used of the installers and should work out of the box.
Joe
#thirteen Fri, 05/eleven/2018 - 08:55
@Howdy,
I compeletly removed the quondam WP and database. No Import of any config files etc at all.
Ist at that place any way to observe out the mistake within Virtualmin ?
#xiv Friday, 05/11/2018 - 11:50
I remember you may need to "switch to virtualmin virtual servers admin" before running the Wordpress Installer script. I doubtable you are running it as the elevation lever server/webmin admin or root user. This is a problem i have encountered that produces similar bug sometimes.
Login as virtual server admin so run wp installer script and see if file permissions are now correct.
#15 Fri, 05/11/2018 - eleven:52
I call up yous may need to "switch to virtualmin virtual servers admin" before running the Wordpress Installer script. I suspect you are running it as the pinnacle lever server/webmin admin or root user. This is a problem i accept encountered that produces like bug sometimes.
Login as "virtualmin virtual server" admin then run wp installer script and see if file permissions are now correct.
#16 Sat, 05/12/2018 - 05:30
Adamjedgar
Practice yous mean the loging with domainuser or there is an other Virtualmin damin login. I unremarkably login with root access to webmin/virtualmin. Could you please tell me how to creat the admin Account. I tin just create an aditional admin for a specific Domain.
regards
Source: https://archive.virtualmin.com/node/57063
0 Response to "Wordpress Unable to Create Directory Uploads/2018/03. Is Its Parent Directory Writable by the Server"
Post a Comment