Posts

Plain php text showing issue solve

Solution: 1 sudo systemctl status php8.1-fpm sudo apt-get install php8.1-fpm sudo apt install apache2 libapache2-mod-fcgid sudo apt install libapache2-mod-fcgid sudo a2enmod actions fcgid alias proxy_fcgi Solution: 2 sudo a2dismod mpm_event sudo systemctl restart apache2 sudo a2enmod mpm_prefork sudo systemctl restart apache2 sudo a2enmod php7.0 sudo systemctl restart apache2

Unblock the block port in ubntu

sudo lsof -t -i:8000 This command will return a process ID sudo kill -9 565934  

Laravel application's error logs & access tracking individually

Add two lines bottom of the Virtual Host tag. <VirtualHost *:80>     ErrorLog ${APACHE_LOG_DIR}/error_application.log     CustomLog ${APACHE_LOG_DIR}/access_application.log common </VirtualHost> This command is for showing the logs (-n 100 means the last 100 logs) tail -n 100 access_application.log

Fixed: Requested URL Was Not Found on this Server Apache2 Ubuntu

When you install Apache2 on a Linux server. At that time mod_Rewrite module is not enabled by default on apache 2. And of which website or app you run on the server, and you open any url of this, then you see the message “the requested url was not found on this server apache2 ubuntu”. So in the tutorial “the requested url was not found on this server apache2 ubuntu” you will learn how to enable rewrite_module and solve this error. The apache Mod_rewrite is very popular for rewriting human-readable URLs in dynamic websites. This makes the URL’s look cleaner and SEO-friendly on websites. In this tutorial, we will show you how to enable the apache/2.4.5 ubuntu mod_rewrite module and configure it for use .htaccess files available with apache 2 ubuntu web server at port 443, 80. Step 1 – Update dependencies sudo apt-get update If you want to enable mod_rewrite apache in ubuntu. So, you can connect your instance or web server to ssh terminal. And then type a2enmod command to enable any modul

root .htaccess file when laravel project upload in cpanel

 <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] </IfModule>

Understanding file permissions

Image
This string of letters, drwxrwxrwx , represents the permissions that are set for the directory. Each number can have one of eight values ranging from 0 to 7 . Each value corresponds to a certain setting of the read, write and execute permissions, as explained in the following table. For Example: 777 is the same as rwxrwxrwx 755 is the same as rwxr-xr-x 666 is the same as rw-rw-rw- 744 is the same as rwxr--r--