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

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 helps you to solve the problem. Thanks for reading. Keep Exploring.

Read more

Access Logs and Error Logs (LOGGING BASICS) in apache

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 should note that different Linux distros have their own ideas where to store log data. Apache also stores data in a number of different logging formats.

Read more

How to setup SSL certificate for apache

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 a terminal window: edit file /etc/sysconfig/apache2 Verify ssl is found in the list of APACHE_MODULES.Note: If it is not, please run the following command, which should enable the ssl module

Read more

Configuring Apache Access Control

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 Jim and Carla Since the number of users is small, we’ll store them in a plain text file Managing the User Account File 1 Enable headers

Read more

Configuring Virtual Hosting in Apache

“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 the alphabet the first virtualhost is loaded and served. To answer what i assume is the follow up question: You can host many sites on the

Read more

Basic Apache Configuration

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 an Identity Apache needs a user identity to run as Used to perform access control checks to the file system Defining Multi-Process Settings To improve response

Read more

Installing and Configuring Apache Web Server

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 its services. Step 2: Download the files We’re going to use the unofficial Windows binary from Apache Lounge. This version has performance and stability improvements over the

Read more

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

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 to define our commands on Kernel.php file with time when you want to run your command like as bellow functions: ->everyMinute(); Run the task every minute

Read more

Laravel Permissions to set on Storage folder on Linux.

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 do then it’s may be a security concern. So i’m providing a complete list of each folder’s and sub-folder’s permissions. storage – 755. storage/app – 755.storage/app/public

Read more

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

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 All leftover files. sudo rm -r /opt/lampp As you can see in the screenshot, after running the command all files are removed and when xampp is

Read more

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

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 to execute to the downloaded xampp file. For that run, chmod 755 xampp-linux-x64-7.4.22-0-installer.run Step 5 :- Now, we run the downloaded file for installation, for that

Read more

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

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 Require ip your_ip_address below Require local . Step 4 :- Add your static IP address after Require ip your_static_ip. It’s Done. Now Check to access your_ip_address/phpmyadmin

Read more

Setup Virtual Hosts with Apache Web Server on Linux

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 server to host multiple domains or sites with a single interface or IP address by using a mechanism. Create the Directory Structure A directory structure shall

Read more

What are Linux Users, Groups and Permissions

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 Linux User and Group Permissions? Linux/Unix operating systems have the ability to multitask in a manner similar to other operating systems. However, Linux’s major difference from

Read more

Deploy a Laravel project to ubuntu server using git

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 the repository into your local machine get inside your repository Copy the URL under HTTPS area There are many more ways to clone a repo but

Read more

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

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 it read and writable so that our browser can access it and if required can modify it. Run the below command to grant access to the

Read more

Install a Laravel project inside htdocs folder in ubuntu

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 inside your htdocs. 5 grant read and write permissions to this folder by running this commands 6. You may get another error while installing is (“mbstring”

Read more

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

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. Install or enable PHP’s dom extension. – Root composer.json requires phpunit/phpunit ^7.5 -> satisfiable by phpunit/phpunit[7.5.0, …, 7.5.20]. And To enable extensions, verify that they are

Read more
1 2