Composer: file_put_contents(./composer.json or ./composer.lock): failed to open stream: Permission denied

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Problem When I run Composer update in my project then I got this error. Solution It can be resolved with the following command: That’s all. I hope this article helps you to fix your issue. Thanks for reading. Keep Exploring.

Read more

The stream or file “/opt/lampp/htdocs/testproject/storage/logs/laravel-2021-08-31.log” could not be opened in append mode: failed to open stream: Permission denied

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Problem I’m getting this error after migrating my laravel project to linux server, see error below Solution the error is that, Storage folder doesn’t have permission to write log files, you can run if you are using nginx then you need to use nginx user permission like below That’s All. I hope this article

Read more

Access Logs and Error Logs (LOGGING BASICS) in apache

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now 1. Locate where logged data is stored This simple task is made harder by the fact that Apache is cross-platform software that runs on nearly every server-based operating system. While you might expect that Apache log files will be stored in different file system locations when running on a Mac or Windows PC, you

Read more

How to setup SSL certificate for apache

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Environment SUSE Linux Enterprise ServerNovell Open Enterprise ServerNovell GroupWise Situation How to SSLize WebAccess on LinuxHow to secure WebAccess using SSLGroupWise WebAccess shows untrusted certificate after pointing to 3rd party certificate using ConsoleOne for WebAccess Agent Resolution (conditional) If not yet configured, Enable the SSL module and set the Apache Server Flags to SSL: From

Read more

Configuring Apache Access Control

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Controlling Access Based on User Identity  Access to parts of a site can be restricted Require authentication and authorization of the user  User account information can be kept in several places Plain text files DBM files MySQL database Here, we’ll restrict access to the “admin” section of our site to the librarians

Read more

Configuring Virtual Hosting in Apache

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now “Virtual hosting is a method for hosting multiple domain names (with separate handling of each name) on a single server (or pool of servers).” Wikipedia How Does Apache Know Which Site to Serve? The short answer to your specific case: apache will serve the FIRST overlapping virtual host. Since 000-default is before fc.localhost in

Read more

Basic Apache Configuration

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Apache’s Modular Architecture corepreforkhttp_coremod_soLoadModuledirectives mod_aliasmod_mimemod_proxymod_rewritemod_status The core executable others … The directory Apache The httpd package we installed includes the config file: Listening on a Port You can restrict apache to listen on a specific network interface Listen 22.33.44.55:80 Setting the Document Root The DocumentRoot defines the top-level directory of the web site Setting

Read more

Installing and Configuring Apache Web Server

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Step 1: Configure IIS Apache listens for requests on TCP/IP port 80. You need to uninstall or disable any program that uses that port. If you have a Professional or Server version of Windows, you may already have IIS installed. If you would prefer Apache, either remove IIS as a Windows component or disable

Read more

How To Set Up Task Scheduling With Cron Job In Laravel for Linux Server.

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Step 1:- Run the below command to Install Laravel 5.8 Step 2 :- Now, we need to create a custom command. Custom command will execute with task scheduling cron job. Run the below command to create new custom command Now we make some changes on Command file. app/Console/Commands/DemoCron.php Step 3 :- Now, we need

Read more

Laravel Permissions to set on Storage folder on Linux.

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now When we Setup laravel project on linux server then we have to give permissions to all folder’s, sub-folder’s and files in laravel Storage folder. So, i’m providing the list of permission which you have to set in storage folder. I’m providing this list because we can’t set 777 permission to all folders, if we

Read more

How to Find Public IP Address in Linux or Windows.

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now For Windows To find public ip address in windows just visit the below website it will show you the ip. For linux If you are using terminal and want to find your public ip address, then you have to run the below command in your terminal

Read more

[Solved] Linux : How to uninstall Xampp in Linux (ubuntu) Machine.

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now If You Want to uninstall Xampp from your linux machine, then follow the Below Steps :- Step 1 :- first Stop the server from running by below command sudo /opt/lampp/lampp stop Step 2 :- Now run below command to uninstall Xampp. sudo /opt/lampp/uninstall Step 3 :- Now run the below command to remove Xampp

Read more

[Solved] Linux : How to install XAMPP on Linux (Ubuntu) machine.

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now To Successfully Install Xampp in your Ubuntu Machine just follow the Below Steps carefully. Step 1 :- Login to your (Ubuntu) Machine. Step 2 :- run the below command to download Xampp. wget https://downloadsapachefriends.global.ssl.fastly.net/7.4.22/xampp-linux-x64-7.4.22-0-installer.run Step 3 :- Go to root user by entering below command sudo -s Step 4 :- Now we give permission

Read more

httpd-xampp.conf: How to allow access to an external IP besides localhost in phpmyadmin for ubuntu?

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now If you want to access phpMyAdmin from a static IP besides localhost, then you’re in right place, just follow the below steps :- Step 1 :- First locate httpd-xampp.conf file, for Ubuntu it’s located at /opt/lampp/etc/extra/ Step 2 :- open httpd-xampp.conf file for editing. you’ll find something live below code Step 3 :- add

Read more

Setup Virtual Hosts with Apache Web Server on Linux

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now First thing you need to do is to install apache in your machine. Apache Installation Apache gives its functionality and the components to individual units which can be customized and configured independently. The basic unit that describes a site or a domain is called a virtual host. This allows the administrator to use one

Read more

What are Linux Users, Groups and Permissions

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now If you are new to Linux/Unix, then the concept of permissions may be confusing. This guide provides you with an explanation of what permissions are, how they work, and how to manage them. A number of examples are provided to illustrate how to set and change permissions for both users and groups. What are

Read more

Deploy a Laravel project to ubuntu server using git

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Steps to create project in local machine Step :1 Create a folder anywhere in your local computer with any name (Mine is workspace) Step:2 Make sure git and gitbash is installed in your local machine if not download it from here Step:3 Login into your GitHub account and create a repository Step 4: Clone

Read more

Permissions required to make a Laravel project up and running in ubuntu (Linux)

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Before moving further, hope you have already installed xampp and composer in your machine.if not follow the below blog to do so. First permission: As you know the first thing our browser needs to run a Laravel project is, the index file which is located in the public folder so we need to make

Read more

Install a Laravel project inside htdocs folder in ubuntu

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now I was moving a Laravel project to a ubuntu virtual machine.Steps that I followed: 1. Installed Xampp 2. Another thing which is required is Composer 3. Now the thing is when we try to install Laravel project inside our htdocs folder it through an error 4. To resolve this error first create a folder

Read more

require ext-dom * -> it is missing from your system. Install or enable PHP’s dom extension.

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Make sure you are in htdocs folder while executing the commands. I was trying to install Laravel in a Ubuntu virtual machine and got this error Your requirements could not be resolved to an installable set of packages. Problem 1 – phpunit/phpunit[7.5.0, …, 7.5.20] require ext-dom * -> it is missing from your system.

Read more
1 2