GeddeDev
Forum Replies Created
-
Forum: Installing WordPress
In reply to: WP Installer doesn’t work with Mysql SocketOk, I got it working. It had nothing to do with my php settings.
Instead of using
localhost:/run/mysql/mysqld.sockI had to remove the localhost and just use
:/run/mysql/mysqld.sockNotice you must keep the : at the front.
This might be because I have networking disabled in my mysql config.I tested the WP Installer again and the installer worked!
Forum: Installing WordPress
In reply to: WP Installer doesn’t work with Mysql SocketThanks Dion Designs, I will take a look. I figured when using mysqli_connect that passing the socket path would also tell PHP to use that path. I think that PHP setting is only if you don’t specify a socket as it is labeled “default”, but I am specifying one. I will still give it a try though.
I am using PHP-FPM and prefer to do all changes in the FPM Pool file so I will try that first and let you know if that makes a difference.
- This reply was modified 7 years ago by GeddeDev.
The url is as expected with ” as the ACL.
Having it as ‘public_read’ has the url as expected as well, but it just adds the Everyone read access on the S3 object, which I don’t want.Have it as ‘private’ does not add any permissions to the S3 Object which is good, but it changes the url in WP to include access keys.
OK, the best way I found was to add this filter in my functions.php
add_filter('as3cf_upload_acl', function($acl){ return ''; });You will also need to do for resized images:
add_filter('as3cf_upload_acl_sizes', function($acl){ return ''; });Please let me know if that is the best method or if there is another preferred way.
It seems that the default is ‘public-read’. ‘private’ is AWS default, but setting it to private causes Offline Media to add Authentication to the urls instead of following the domain I set in the config. Setting it to blank seems to do the trick.
PS, I could not find any documentation on this method. I had to scan through the plugin code. Would be nice to have some documentation on that and other Hooks and Filters.
Would be nice if this was just a setting in the Admin Panel.
Thanks
Ok, thanks
Maybe just ignore if list is greater then 100 or something like that.
Would have been nice to see for the Theme folder to verify that is scanned certain files, but not a huge deal.Thanks, I didn’t notice you could click on the radio button label to drill down. Sort of a hidden option.
Thanks, that worked.
However, still nothing happens when clicking on “X Scanned Files”.
The other links seem to work fine except for that one.