Blog

Auto Deploy SFTP AWS

User Make auto deploy to server from git master branch sftp aws Assistant To set up automatic deployment from the master branch of your Git repository to an AWS server via SFTP, you can use Git hooks or a CI/CD service like GitHub Actions, GitLab CI/CD, or Bitbucket Pipelines. Here’s a step-by-step guide using a […]

Make Laravel Writable

User aws file_put_contents(/var/www/shareyourthoughts/storage/framework/views/51ccfd09d6fab0c76d9bb376e714d1c2.php): Failed to open stream: Permission denied make shareyourthoughtswritable Assistant To resolve the "Permission denied" error when trying to write to the storage directory in your Laravel application, you need to ensure that the storage directory is writable by the web server user. Here’s how you can make the `shareyourthoughts` directory writable: 1. […]

Laravel Log Permission Issue

User The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied The exception occurred while attempting to log: The stream or file "/var/www/html/storage/logs/laravel.log" Assistant This error indicates that the Laravel application doesn't have the necessary permissions to write to the `laravel.log` file located in the `/var/www/html/storage/logs/` directory. […]

Switch from Vim to VS Code

User Switch Windsurf VIM to vscode Assistant To switch from using Vim to VS Code while maintaining efficiency, here's how you can transition smoothly: — ### **1. Install VS Code** – Download and install [VS Code](https://code.visualstudio.com/) if you haven’t already. — ### **2. Add Vim Keybindings to VS Code** – Install the **Vim Extension** in […]

Switch DDEV Editor to VSCode

User change windsurf from VIM to vscode Assistant To switch your DDEV setup from using Vim to VS Code as the default editor, you can follow these steps: ### Step 1: Update your DDEV global configuration 1. Open your terminal and type: ddev config global –editor=vscode ### Step 2: Verify the changes 1. Run the […]

Install Angular in DDEV

User Install Angular In ddev Assistant To install Angular in a DDEV environment, follow these steps: 1. **Navigate to Your DDEV Project**: Open your terminal and go to your DDEV project directory. 2. **Start Your DDEV Environment**: If you haven't already, start your DDEV environment with: ddev start 3. **Enter the Web Container**: Access the […]

Elementor Admin Slow Loading

User I've updated every thing but still admin elementor loading very slow Assistant If Elementor in the admin area is loading very slowly despite all updates, there could be several causes. Let’s troubleshoot step-by-step: — ### **1. Check Server Resource Usage** – **High CPU/RAM usage** or **low server resources** can slow down Elementor loading. – […]

Git Ignore Vite Config

User vite.config.js file is different for local and server how put it into git ingnore Assistant To handle different `vite.config.js` files for local and server environments without putting them into Git, follow these steps: ### 1. **Add `vite.config.js` to `.gitignore`:** – Open your `.gitignore` file and add the following line: vite.config.js ### 2. **Create a […]

DDEV Project Path Update

User Failed to start project(s): stat /mnt/d/dockerServer/f4y-docker/ddev-projects/shareyourthoughts: no such file or directory I've just moved folder Assistant The error occurs because DDEV is still trying to reference the old folder path. To fix this issue after moving your project folder, follow these steps: ### 1. **Update DDEV Configuration** – Navigate to your project's new folder: […]

Install DDEV on WSL

User install ddev in windows wsl Assistant To install DDEV on Windows using WSL (Windows Subsystem for Linux), follow these steps: — ### **Step 1: Ensure WSL and Docker are Installed** 1. Install **WSL 2**: – Open PowerShell (as Administrator) and run: wsl –install – Restart your system if prompted. – Verify WSL installation: wsl […]