Category : centos7

I had experience in setting up linux ubuntu server with apache2. the laravel project is run successfully and everything works accordingly. the same code I applied in centos apache2 and it failed. eg: simple login post form using html laravel blade is not submited to the backend laravel code when the button is clicked. no ..

Read more

I am installing a project made in laravel on a server with a CENTOS 7.9 vmware [cpnael] v94.0.8 operating system, modify the permissions I needed to operate the project. When I run the project I get the present error: [2021-05-10 16:26:39] production.ERROR: symlink(): Permission denied {"exception":"[object] (ErrorException(code: 0): symlink(): Permission denied at /home/cbdev/public_html/crater/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:315) [stacktrace] #0 ..

Read more

I made a change to my app.blade.php folder and when I ran the app again it came up with this file_put_contents(/var/www/html/app/storage/framework/views/123456.php): failed to open stream: Permission denied (View: /var/www/html/app/resources/views/layouts/app.blade.php) error. It has never done this before. It is on a server so I am using centos7 to fix it. I tried to clear the cache ..

Read more

Unable to host my laravel project onto alibaba ECS through the use of Nginx. What am i missing? Errors ( No other errors found in nginx/errorlog) File (/etc/nginx/conf.d/default.conf) server { listen 80; server_name 00.000.000.00(IP ADDRESS); # Log files for Debugging access_log /var/log/nginx/laravel-access.log; error_log /var/log/nginx/laravel-error.log; root /usr/share/nginx/html/laravel-simpple/public; index index.php index.html index.htm; location / { try_files $uri ..

Read more

I have deployed my Laravel application in CentOS7,Apache and LAMP. Created two subdomains and mapped the directories like as below Subdomains abc.example.com -> /var/www/abc.example.com/public_html/public xyz.example.com -> /var/www/xyz.example.com/public_html/public Virtual Host Configuration Created virtual host configuration files for each subdomain. For example for abc.example.com created the file in /etc/conf.d/abc.example.com.conf and in /var/www/abc.example.com/public_html/.htaccess having the following entries. public_html/.htaccess ..

Read more

This time I cannot solve the error I have encountered many times before. While working in Ubuntu, I fixed the error, but I am not successful on Centos7. Although I have researched many sites, I could not find a solution. Error Output The stream or file "/var/www/fatihhidiroglu.com/fhblog/storage/logs/laravel.log" could not be opened in append mode: failed ..

Read more

The error I’m getting is: WebSocket connection to ‘wss://0.0.0.0:3444/socket.io/?EIO=4&transport=websocket’ failed: Error in connection establishment: net::ERR_ADDRESS_INVALID I believe a proxy has to be set up in the apache config file to allow the http requests upgraded to websocket. But I can’t get it done correctly. I added the following block of code in /etc/apache2/conf/httpd.conf: RewriteEngine On ..

Read more

thanks in advance. here is the situation, there are some images in the system, if a user is authorized to see the images, controller sends image file back to user using this header : ‘Content-Type’ => ‘image/jpeg’, otherwise, they’ll get a 404 response. as simple as that. once a user sees one of their images, ..

Read more

I try to redirect my laravel application using .htacces where only certain IP can access it here my .htaccess configuration file RewriteBase / RewriteCond %{REMOTE_HOST} !^118.99.110.28 RewriteCond %{REMOTE_HOST} !^175.158.55.27 RewriteCond %{REMOTE_HOST} !^182.253.34.183 RewriteRule ^ https://host/construction [L,R=301,QSA] <IfModule mod_rewrite.c> <Files ~ ".(env|json|config.js|md|gitignore|gitattributes|lock|git)$"> Order allow,deny Deny from all </Files> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> # Handle ..

Read more