Posts

Showing posts from August, 2023

[Fix] XAMPP Apache2: 'AH01630: client denied by server configuration'

 If you are seeing this error, read this answer first : Then you just need to update your httpd-vhosts.conf like this, and restart Apache.  Hope it helps someone. NameVirtualHost *:80 <VirtualHost *:80>     DocumentRoot "C:/projects/my_project/"     ServerName my_project .local     ServerAlias *. my_project .local     ErrorLog "logs/ my_project .local-error.log"     CustomLog "logs/ my_project .local-access.log" combined     <Directory "C:/projects/ my_project /" >         Options Indexes FollowSymLinks         AllowOverride All         # apache 2.2         Allow from all         # --New way of doing it - apache 2.4         # Require all granted     </Directory> </VirtualHost> <VirtualHost *:80>     DocumentRoot "C:/xampp52/htdocs/"     ServerName mainproject.local     ServerAlias *. mainproject .local     ErrorLog "logs/ mainproject .local-error.log"     CustomLog "logs/ mainproject .local-

Solved: VirtualBox new disk space not available even after resize

Image
Why making things so complicated? Environment: Oracle VirtualBox Ubuntu Linux 22.04 Server (i.e. CLI only) Problem: In VM I original have 15 GB HD, and extend it to 30GB, but in VM I still see 15GB. Solve: First, make sure you are following this tutorial to add and extend your disk space. But the above tutorial is not completed. You also need to read this post to get an idea on what is missing. But even if you read that, that post is not clear at all. So follow this: Run `lsblk` first to understand what you have In my case, my ubuntu is installed in /dev/sda3, which "said" it has 30GB, but only 14GB is mount to / Run `vgs` to see more Start resize: First, run `pvresize /dev/sda3` to resize your partition Then you run `lvresize -L <SIZE>GB <VG_NAME>/<LV_NAME>` to resize volume group and LV_Name But how to find SIZE, VG_NAME and LV_NAME? SIZE = 30GB To find VG_NAME and LV_NAME, run `sudo lvdisplay` Now you can complete this command, run  `sudo lvresize -L 30

How-To: Sending AWS SES email in Laravel - Success

Image
These would be my record after spending a lot of time testing with Laravel + Amazon SES. Here is my setting in `.env`: MAIL_DRIVER=smtp MAIL_HOST=email-smtp.ap-southeast-1.amazonaws.com MAIL_PORT=587 MAIL_USERNAME=A***************A MAIL_PASSWORD=B***************B MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=noreply@mydomain.com MAIL_FROM_NAME="My Domain" MAIL_LOG_CHANNEL=stack In bullet points style. While it would be useful if you do `composer require aws/aws-sdk-php`, it is actually NOT required. MAIL_DRIVER=smtp: Why it is not "ses" when "ses" is also a valid driver?  Because according to this stackoverflow answer , "you are not using SES SDK but SMTP to send emails".  So the drive is set to "smtp", not "ses" MAIL_HOST: You set this value according to these SES endpoint from Amazon , or getting it from Amazon SES - SMTP settings dashboard, as follow: MAIL_USERNAME/PASSWORD: Referring to these comments in this answer : Your SMTP u