Unable to Create Directory Uploads/2018/08. Is Its Parent Directory Writable by the Server? Error

#1 Tue, 05/08/2018 - 06:39

Virtualmin and file Permissions on /public_html

Hullo all, I am facing a trouble which seems to be a common simply couldnt find the real solution. I am lookin for couple of days on cyberspace to detect the Solution without success. So start of all, the State of affairs: I am using these components - VPS Ubuntu 16.04 LTE - Webmin version 1.81 - Virtualmin half dozen.03 . Virtualserver with FCGId manner - PHP Version 7.one.vii

Now the Trouble When i create a virtual Server on virtualmin, it completes the installation without whatever Problems. Now i install a wordpress on /dwelling/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 change the buying from "virtaulservernam:virtualservername to "www-data" on /public_html directory recursive and see that i can update or install the Plugins without giving the ftp Admission. Information technology works as it should be. i didnt fabricated any changes on the directory public_html with root Access..

I put in user management of "www-data" the proper name of Virtualserver as member of secondry grouping but it wont work. I besides tried to change php mode to CGI and Apache only with same outcome.

Question: What could be incorrect here ? information technology can not be the solution to change Public_html directory with Ownership of "www-data" cuz in this instance the ftp user have no permissions to write on the directory.

It would be overnice if someone could give methe hint to ready the trouble. regards nomi

#two Tue, 05/08/2018 - 08:40

Shouldn't change public_html to www-data at all. All files in user public_html should be owned past the user, as is the default for virtualmin. When you use wordpress to update itself or add plugins, information technology has to know how to admission the public_html binder. Put in the user ftp details. If uneasy about assuasive 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

Then in that location is nothing incorrect with this user Persmission. Not possible that this User which is created by virtualmin could take more rights ? I take put now the FTP Detaisl ins Wordpress config file to easily update and install on WP Backend and it works.

I made this mistake in an other Joomla installation and gave Joomla directory the www-data ownership. At present i changed the ownership to original User (recursiv) and now the page is no more available ,it gives me Error 500. How tin i fix this Problem on virtualmin.

#iv Thu, 05/ten/2018 - 11:15

Welshman

Welshman's picture

Later install of Wordpress yous but need to go to "Limits and Validation - Validate Virtual Servers , then choose the "Ready Permissions" tab, choose the domain to fix and run it. All files will and so be owned by the VS admin and not root and plugins etc will install without any ftp info required..

Chaos Reigns Within, Reverberate, Repent and Reboot, Order Shall Return.

#5 Thu, 05/10/2018 - fourteen:23

Joe

Joe's picture

Virtualmin sets up VirtualHosts with suexec. Ownership of spider web data should ever be domainuser:domaingroup.

If you lot install WordPress using the Install Scripts interface in Virtualmin, everything, including plugins, should But Work. You shouldn't demand to change anything, you shouldn't need to upload anything manually, and you shouldn't demand to configure FTP access in WordPress.

If yous upload files via FTP or ssh as root, you will run into a lot of issues, and we don't recommend information technology. Login every bit the domain possessor user when you're working on a domain, and about things will go the right permissions by default. (But, for WordPress, why not just use the Install Script? It's in the GPL version, and will do all the right things, and can notify you of updates and stuff.)

#six Friday, 05/11/2018 - 01:53

Cheers for your hints. @Welshman: i accept tried this selection only notwithstanding the aforementioned. 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 even i used the option "Fix Permissions"after instlling the Wordpress. :-(

#7 Fri, 05/eleven/2018 - 03:49

Welshman

Welshman's picture

Look at who actually 'owns' the files in the directory. I usually upload WP via an sftp customer and install the old fashioned way rather than a script installer, so all files belong to root, if I practise not ready permissions as I mentioned before I get the ftp credentials need like your getting.

Hope you sort it. Articulate your browser cache while your at it. :) Never know your luck.

Anarchy Reigns Within, Reflect, Repent and Reboot, Gild Shall Return.

#8 Fri, 05/11/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 effort to transfer the new WP by ftp, but i dont blieve it works.

Welshman

Welshman's picture

SFTP is more than secure, winscp.net free client there for Windows, if your that way like I am.

Chaos Reigns Within, Reflect, Repent and Reboot, Guild Shall Return.

#10 Fri, 05/eleven/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

Now the determination or summary of the thread...
- Changed the permissios from www-data to domainuser:domaingroup --> no success WP asks for FTP Details by installing or updating
- Set the permissions past virtualmin: Validate Virtual Servers --> "Fix Permissions . no success WP asks for FTP Details by installing or updating
- Installed WP by Install scripts --> no success WP asks for FTP Details by installing or updating
- checked the directory with ls-50 /dwelling house/domainame/public_html/ all have 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 apply only sftp Connection.

Loving Virtualmin more and more.... :-(

#12 Fri, 05/xi/2018 - 08:05

Howdy

nomi,

when you installed WP from the Virtualmin script did y'all uninstall the previous WP?

Did you delete the previous database and create a new database?

Did y'all move or delete whatever WP config files earlier trying to install from Virtualmin script?

If you attempted to over write or install over a broken WP, i believe y'all may create unexpected results.

I would suspect that the Virtualmin WP script is i of the most widely used of the installers and should work out of the box.

Joe

#xiii Fri, 05/11/2018 - 08:55

@Hello,
I compeletly removed the old WP and database. No Import of whatsoever config files etc at all.
Ist there any way to find out the fault within Virtualmin ?

#14 Fri, 05/xi/2018 - eleven:50

I retrieve you lot may need to "switch to virtualmin virtual servers admin" earlier running the Wordpress Installer script. I suspect you lot are running it as the top lever server/webmin admin or root user. This is a problem i take encountered that produces similar issues sometimes.

Login as virtual server admin and so run wp installer script and meet if file permissions are at present correct.

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

#15 Fri, 05/11/2018 - 11:52

I think you lot may need to "switch to virtualmin virtual servers admin" before running the Wordpress Installer script. I suspect you are running information technology equally the height lever server/webmin admin or root user. This is a problem i have encountered that produces like issues sometimes.

Login as "virtualmin virtual server" admin and so run wp installer script and come across if file permissions are now correct.

AJECreative is the home of $5 webhosting, $15/month VPS servers (1cpu,1gb RAM, 25GB storage)
Centos7, Debian9, or Ubuntu18LTS
Available Control Panels = Centos-Webpanel, Cyberpanel, or Virtualmin

https://ajecreative.com.au

#16 Sat, 05/12/2018 - 05:thirty

Adamjedgar
Do you mean the loging with domainuser or at that place is an other Virtualmin damin login. I commonly login with root access to webmin/virtualmin. Could you please tell me how to creat the admin Account. I can just create an aditional admin for a specific Domain.
regards

Topic locked

obrienoppoichest.blogspot.com

Source: https://archive.virtualmin.com/node/57063

0 Response to "Unable to Create Directory Uploads/2018/08. Is Its Parent Directory Writable by the Server? Error"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel