Akeif
Forum Replies Created
-
Forum: Plugins
In reply to: [Yoast SEO] ERROR: Your Sitemap appears to be an HTML pageI’m having the same problem. https://akeif.me/post-sitemap.xml
Currently investigating.Forum: Plugins
In reply to: [WordPress HTTPS (SSL)] some links in mu network still brokenI created a fix for this issue.
Create the file wp-content/mu-plugins/fix-wpml.phpPut this code in the file : https://pastebin.com/nsX7Qwqg
Then it should work! ??
Forum: Localhost Installs
In reply to: Fail to make WP set the umask I wantFor me (on Ubuntu) I had to add umask 002 to /etc/apache2/envvars in order to get WordPress to upload plugins/images with 775 permissions instead of 755 (i.e. allow anyone besides Apache and root to change the uploaded files)
Thanks Will for the reply.
I’ve added
umask 002
to the file a while ago and it didn’t work for me. There must be something I’m missing because it worked for most people.Well, that’s true. It say inside the plugin directory.
I guess I’ll have to update my code ??Ok thanks.
Forum: Localhost Installs
In reply to: Fail to make WP set the umask I wantOk so basicly I haven’t found how to have unzip use correct umask. Everything else use the correct umask.
Sow i’ve fix this by monitoring folder creations in /wp-content/themes and /wp-content/plugins.
When a theme or plugin is installed it create the folder again, so you can run a script to change the permissions as you need.
Install iwatch.
sudo apt-get update sudo apt-get install iwatch
Then, on ubuntu you need to add your commands to /etc/init.d/rc.local
sudo vi /etc/init.d/rc.local
The commands look like this
iwatch -c "/home/ubuntu/bin/fix-permissions %f" -e create /var/www/wp-content/plugins > /dev/null 2>&1 &" iwatch -c "/home/ubuntu/bin/fix-permissions %f" -e create /var/www/wp-content/themes > /dev/null 2>&1 &"
Of course you have to create your own fix-permissions scripts and set it as an executable.
And reboot.
There’s going to be 2 iwatch process that will run and update your permissions as needed.
That’s it.
If you have any other idea or solution please share ??
Forum: Localhost Installs
In reply to: Fail to make WP set the umask I wantOn another note I’ve notice that the unzip command doesn’t preserve file permissions.
It’s probably the source of the issue since the plugins are downloaded by WP in zip format and then unziped.