Category: Uncategorized

On-rev hosting

wingfinger.on-rev.com:2083 26/4/24: Deleted all sites in public_html. But haven’t emptied trash yet. Also associated domains on this server

Stopping spam registrations

https://wordpress.stackexchange.com/a/170233 Added this to .htaccess # force pdfs to be saved to disc ForceType application/octet-stream Header set Content-Disposition attachment RewriteEngine On #RewriteCond %{HTTP_HOST} ^(.*)rosevilleleeds\.org\.uk$ [NC] #RewriteRule ^(.*)$ https://www.chapeltowncohousing.org.uk/$1 [R=301,L] #RewriteCond %{HTTP_HOST} ^chapeltowncohousing\.org\.uk$ [NC] #RewriteRule ^(.*)$ https://www.chapeltowncohousing.org.uk/$1 [R=301,L] # Fix for move from old /2012/ folder to /live/ folder RewriteRule ^2012/(.*)$ https://www.chapeltowncohousing.org.uk/$1 [R=301,L] ### start of… Read more »

Switching to https//:

I’m assuming it’s worth getting VM working with https – otherwise all of the changes would have to be done on the live site and git would become useless… There’s three pages of vvv relevant vvv documentation at 8. TLS and HTTPS Billtest1 20/1/24: Switched this site by editing wp-config.php (live site) Also added this… Read more »

“Headers already sent” error on ChaCo servers

This is the error that’s clogging up the php-errors.log on both the local and live servers. [09-Dec-2023 17:00:55 Europe/London] PHP Warning: session_start(): Cannot start session when headers already sent in /home/chapelto/public_html/live/wp-content/themes/wfs2_child1/functions.php on line 62 [09-Dec-2023 17:00:55 Europe/London] Headers already sent in on line 0 There’s a good overview at How to fix “Headers already sent”… Read more »

known_hosts

Problems using lpull with cpool. Problem was with known_hosts file on the remote server, not the one on my Mac. Solution came from the Atlassian forum – see this answer. See also Remove key from known_hosts. admins-iMac-3:~ bill$ curl https://bitbucket.org/site/ssh bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDQeJzhupRu0u0cdegZIa8e86EG2qOCsIsD1Xw0xSeiPDlCr7kq97NLmMbpKTX6Esc30NuoqEEHCuc7yWtwp8dI76EEEB1VqY9QJq6vk+aySyboD5QF61I/1WeTwu+deCbgKMGbUijeXhtfbxSxm6JwGrXrhBdofTsbKRUsrN1WoNgUa8uqN1Vx6WAJw1JHPhglEGGHea6QICwJOAr/6mrui/oB7pkaWKHj3z7d1IC4KWLtY47elvjbaTlkN04Kc/5LFEirorGYVbt15kAUlqGM65pk6ZBxtaO3+30LVlORZkxOh+LKL/BvbZ/iRNhItLqNyieoQj/uh/7Iv4uyH/cV/0b4WDSd3DptigWq84lJubb9t/DnZlrJazxyDCulTmKdOR7vs9gMTo+uoIrPSb8ScTtvw65+odKAlBj59dhnVp9zd7QUojOpXlL62Aw56U4oO+FALuevvMjiWeavKhJqlR7i5n9srYcrNV7ttmDw7kf/97P5zauIhxcjX+xHv4M= bitbucket.org ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBPIQmuzMBuKdWeF4+a2sjSSpBK0iqitSQ+5BM9KhpexuGt20JpTVM7u5BDZngncgrqDMbWdxMWWOGtZ9UgbqgZE= bitbucket.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIazEu89wgQZ4bqs3d63QSMzYVa0MuJ2e2gKTKqu+UUO admins-iMac-3:~ bill$ ss Which site? cpool… Read more »

Learning Bash

Superuser question: How do I learn bash shell scripting? – a useful list of resources Bash Scripting Tutorial – Linux Shell Script and Command Line for Beginners – a single page guide https://tldp.org/LDP/Bash-Beginners-Guide/html/index.html https://www.makeuseof.com/tag/beginners-guide-mac-terminal/ nano Command Manual grep grep -r ‘text goes here’ path_goes_here Bash HereDoc Tutorial With Examples bashrc vs. bash_profile: What Is the… Read more »

Common contribution calcs

Wealth 17 Leopold Park Road: £128,700 Cash 1.2.23 approx £191,743 Possessions ??? Maybe £10k? Total approx £330k Income Bill DWP: £6,808 Canada Life: £3,870 Ali DWP: £9,255 TP: £1,119 Total approx £21,052 per annum

Bitbucket shenanigans

Bitbucket app passwords 🙁 Generated completely new TinkerBill-Bitbucket pair of SSH keys and added them to Bitbucket. Deleted original TinkerBill account from Sourcetree and created new SSH OAuth version using App Password and Connect button – which worked! I think. admins-iMac-3:~ bill$ cd .ssh admins-iMac-3:.ssh bill$ ls -al total 168 drwx—— 19 bill staff 608… Read more »

Outgoings

Gas (DD – SSE approx £46/month. £528.92 projection pa) Electricity (DD – Good Energy) Projected approx £500 pa Water – YW paid on bill – typically £80/quarter House insurance (DD Direct Line – not contents) Virgin Media (DD £60.75/m + usage) broadband landline Ali’s phone Bill’s phone – 1pMobile – topped up online TV licence… Read more »

Errors: ChaCo Live server

Carousel without Jetpack [28-Aug-2021 14:28:57 Europe/London] PHP Notice: Array to string conversion in /home/chapelto/public_html/live/wp-content/plugins/carousel-without-jetpack/carousel/jetpack-carousel.php on line 252 30/8/21: Sorted this one by removing plugin and replacing with Simple Lightbox 2.8.1. Useful info at An In-Depth Guide to the WordPress Gallery. blacklist_keys deprecated [29-Aug-2021 18:14:49 Europe/London] PHP Deprecated: get_option was called with an argument that is… Read more »