Category : apache

I am trying to figure out what is happening with a long standing function that is now encountering a CORS error: "Access to XMLHttpRequest at ‘http://apiserver/api/restaurants/’ from origin ‘http://frontendserver’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: Redirect is not allowed for a preflight request." There are no ..

Read more

This is error.log of my apache This is my laravel index.php I use php 7.4 & Laravel Framework 7.30.3, Thank you. Edited apache2/error.log PHP Notice: Undefined variable: kernel in /var/www/html/index.php on line 54 [Sat Oct 02 05:30:34.198022 2021] [php7:error] [pid 105462] [client 103.133.243.29:63524] PHP Fatal error: Uncaught Error: Call to a member function handle() on ..

Read more

I’m trying to make a virtual host for a Laravel project using Apache2 on Ubuntu. I follow each step to configure it correctly, but when I’m going to visit, it displays the following error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". I have checked my PHP version ..

Read more

I have a server running Ubuntu 20.04 and Apache 2 that I use as a webserver. I made a configuration of a virtual host to point to a Laravel application, as you can see in the configuration file below. <VirtualHost laravel-8.test> DocumentRoot /var/www/laravel-8/public ServerName laravel-8.test <Directory "/var/www/laravel-8/public"> allow from all Options None Require all granted ..

Read more

Everyone. I am using the correct a .htaccess file and put it into the Laravel directory and now my ubuntu server has the apache2 process. All is okay but not working correctly and executed the PHP code of my project. What is the solution´╝č I will attach my .htaccess file. <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ..

Read more

Now and then we face a destructive issue within a Laravel project: Storage log file production.ERROR: Unable to create lockable file: /var/www/html/storage/framework/cache/data/… Please ensure you have permission to creto create files in this location. #0 /var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/LockableFile.php(43) When the issue happens ls -l gives drwxrwsr-x+ 2 apache apache 4096 Sep 2 14:36 logs To solve the ..

Read more

I have: an old program that use old site API with wrong URL: {site}//api/ and don’t catch redirects, showing 301 redirect page instead of following the new site based on Laravel that has the same API at {site}/api I could make redirect in Apache but it doesn’t solve the problem. Moreover, Apache itself already make ..

Read more

I’m currently working on a project where i got stuck on connecting Laravel 8 with Flutter. When I run the API normal inside Postman, everything works perfectly once I try it inside Flutter i got the follow error. Unhandled Exception: SocketException: OS Error: Connection refused, errno = 111, address = [IP Address Server], port = ..

Read more

My development environment is this: OS: Microsoft Windows 10 PHP framework: Laravel 8.0 PHP version 7.4 Websocket server: cboden/ratchet 0.4.3 WAMP server 3.2.0 (Apache 2.4.41) Firefox 91.0.1 (64-bit) / chrome I created a new Laravel app to implement a Secure Websocket Server and get connected to it using plain javascript on the client side (Laravel ..

Read more