I just recently migrated the wiki to a new environment. It was on a SLES
11 SP4 server running in a lampp and installed via Bitnami. Because of security issues, I built a new server, CentOS 7.x. This is a MediaWiki v1.25.2 environment. What should the owner and group be set to? Currently, they're set to root/daemon. That was what Bitnami had the owner and group set to in the initial installation. I copied the entire site to the new system retaining the permissions. Now users are getting errors uploading images. The errors that users are receiving are similar to: [a10a3fd5] /mediawiki/Special:Upload MWException from line 1856 of /var/www/html/mediawiki/includes/filerepo/file/LocalFile.php: Could not acquire lock for 'Andorra.png.' Research keeps pointing to permission issues, but the permissions are the same in both environments. I do have another environment that was set up on another server. It still uses lampp, but it does not use Bitnami. After the experience with Bitnami, I decided to eliminate it, and just install MediaWiki directly. Anyway, the ownership and permissions are a bit different on that installation. Owner and group are both root, and the permission on the images directory are 777. I personally think that wide open permission on the images directory is a bad idea and will not set those same permissions on the new installation. But, I've read a number of times in different forums that was what resolved this for others having the same errors. I hesitate just changing the owner and group on the wiki to root/root and open up the images directory to the world. So, what are the best permission settings? What should the owner and group be, and what permissions does the images directory have to be? Thanks Daryl _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
What username does the web service use? www? Whatever user account it uses
needs write permission to the images diectory. On Mon, Nov 27, 2017 at 9:20 AM Daryl Rose <[hidden email]> wrote: > I just recently migrated the wiki to a new environment. It was on a SLES > 11 SP4 server running in a lampp and installed via Bitnami. Because of > security issues, I built a new server, CentOS 7.x. This is a MediaWiki > v1.25.2 environment. > > What should the owner and group be set to? Currently, they're set to > root/daemon. That was what Bitnami had the owner and group set to in the > initial installation. I copied the entire site to the new system retaining > the permissions. Now users are getting errors uploading images. > > The errors that users are receiving are similar to: > > [a10a3fd5] /mediawiki/Special:Upload MWException from line 1856 of > /var/www/html/mediawiki/includes/filerepo/file/LocalFile.php: Could not > acquire lock for 'Andorra.png.' > > Research keeps pointing to permission issues, but the permissions are the > same in both environments. > > I do have another environment that was set up on another server. It still > uses lampp, but it does not use Bitnami. After the experience with > Bitnami, I decided to eliminate it, and just install MediaWiki directly. > Anyway, the ownership and permissions are a bit different on that > installation. Owner and group are both root, and the permission on the > images directory are 777. I personally think that wide open permission on > the images directory is a bad idea and will not set those same permissions > on the new installation. But, I've read a number of times in different > forums that was what resolved this for others having the same errors. > > I hesitate just changing the owner and group on the wiki to root/root and > open up the images directory to the world. So, what are the best > permission settings? What should the owner and group be, and what > permissions does the images directory have to be? > > Thanks > > Daryl > _______________________________________________ > MediaWiki-l mailing list > To unsubscribe, go to: > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l > MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
I see. httpd.conf file has the user and group set to apache/apache.
Simple resolution. I'm able to upload images. Thanks John. Daryl On Mon, Nov 27, 2017 at 8:25 AM, John <[hidden email]> wrote: > What username does the web service use? www? Whatever user account it uses > needs write permission to the images diectory. > > On Mon, Nov 27, 2017 at 9:20 AM Daryl Rose <[hidden email]> wrote: > > > I just recently migrated the wiki to a new environment. It was on a SLES > > 11 SP4 server running in a lampp and installed via Bitnami. Because of > > security issues, I built a new server, CentOS 7.x. This is a MediaWiki > > v1.25.2 environment. > > > > What should the owner and group be set to? Currently, they're set to > > root/daemon. That was what Bitnami had the owner and group set to in the > > initial installation. I copied the entire site to the new system > retaining > > the permissions. Now users are getting errors uploading images. > > > > The errors that users are receiving are similar to: > > > > [a10a3fd5] /mediawiki/Special:Upload MWException from line 1856 of > > /var/www/html/mediawiki/includes/filerepo/file/LocalFile.php: Could not > > acquire lock for 'Andorra.png.' > > > > Research keeps pointing to permission issues, but the permissions are the > > same in both environments. > > > > I do have another environment that was set up on another server. It > still > > uses lampp, but it does not use Bitnami. After the experience with > > Bitnami, I decided to eliminate it, and just install MediaWiki directly. > > Anyway, the ownership and permissions are a bit different on that > > installation. Owner and group are both root, and the permission on the > > images directory are 777. I personally think that wide open permission > on > > the images directory is a bad idea and will not set those same > permissions > > on the new installation. But, I've read a number of times in different > > forums that was what resolved this for others having the same errors. > > > > I hesitate just changing the owner and group on the wiki to root/root and > > open up the images directory to the world. So, what are the best > > permission settings? What should the owner and group be, and what > > permissions does the images directory have to be? > > > > Thanks > > > > Daryl > > _______________________________________________ > > MediaWiki-l mailing list > > To unsubscribe, go to: > > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l > > > _______________________________________________ > MediaWiki-l mailing list > To unsubscribe, go to: > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l > MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l |
Free forum by Nabble | Edit this page |