#### Category : apache

I have two Laravel applications with one domain. Let say the domain is mydomain.com. I want those two applications can be accessed via the following urls: mydomain.com/firstapp mydomain.com/secondapp To realize this, this is what I have done. configured Apache so that the starting directory is /var/www/html/ <VirtualHost *:80> DocumentRoot "/var/www/html/" ServerName mydomain.com </VirtualHost> Then I ..

Suddenly… my website happens timeout-error. it seems not process does not work. How should I restart the project… php-fpm.conf $service apache2 restart Redirecting to /bin/systemctl restart apache2.service Failed to restart apache2.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files See system logs and ‘systemctl status apache2.service’ for details. [[email protected] laravel6]$ systemctl status ..

Basically what I have is a laravel 7 based application running on one ec2 instance under some route53 hosted zones. No load balancers, no cloudfront, no cognito. I have a subdomain, let’s say sub.domain.com of domain.com. Now, through laravel routing and stuff all requests to sub.domain.com basically change the context of the app, some custom ..

My web site server take dwon and i don’t know why , so i tried alot things but nothing goes as i expected , then While i try to Systemctl start httpd shows Failed to start httpd.service: Unit is masked. also when i im truning to unmask nothing happends with ‘systemctl unmask service’ i chekced ..

I’m fairly new to hosting applications & systems myself, and I’ve just setup a Laravel application on Bitnami with LAMP from AWS. The web parts works well using nova, and the api works great locally using php artisan serve, yet on the server, sending a login request through Postman turns the POST request into a ..

When switching to a subdomain page endless load nothing happens, no errors. My httpd.conf <VirtualHost *:8000> ServerName example.com ServerAlias *.example.com DocumentRoot "/var/www/html/blog/public" </VirtualHost> hosts file 127.0.0.1 localhost 127.0.1.2 example.com 127.0.1.2 *.example.com Routes Route::get(‘/’, function () { #dd(request()->cookie()); return view(‘home.home’); })->name(‘home’); Route::domain(‘{username}.’.env(‘SESSION_DOMAIN’))->group(function () { Route::get(‘/’, [PostController::class,’getAllPosts’]) ->name(‘blog’); }); in .env SESSION_DOMAIN=example.com I do not understand what ..

First of all, im newbie in servers, so dont mess with me. My problem is when i type "www.mypage.com" it doesnt’t redirect to the crm/public/, instead of this, it show me the content of / (public_html) My current path is: /home/user/public_html/ -> and here i got my Laravel project -> /crm/public ( /home/user/public_html/crm/public/index.php is the ..

I am redirecting to a view with an array (redirect()->back()-with(‘array’ => $array)), this works find on my local environment (with any array size), but on my vps (plesk) environement this works only when the array is somewhat small. Now I googled this for a day and tried many things, including adding nginx buffer size directives, .. Read more i want to use ssl/https in my local website in laravel redhat/apache. when i still use http://192.168.xxx.yyy the website load perfectly for all pages. but when i add ssl and change httpd.conf. and open in https://192.168.xxx.yyy only the mainpage can load. other page get 404 error, url not found. Not Found The requested URL was .. Read more I have installed Apache, MySQL, PHP, Composer, Laravel, etc. on CentOS 8. I have created an Apache VirtualHost that is serving up PHP with https just fine. I have a Laravel application in a subdirectory on the VirtualHost and it runs without SSL using php artisan serve My question is: How do I get it .. Read more I am trying to stand my laravel project up succesfully. To do this,I did all changings in conf files. As last operation,I should restart the server to let changings valid. But the problem is that I couldn’t find apache service in services list. I’ve tried to restart server from xampp. But still couldn’t reach to .. Read more Laravel$request->bearerToken(); respond null. Laravel Doesn’t see authorization header in apache web server. My code is here: JwtMiddleware: $jwt =$request->bearerToken(); if (!$jwt) { Log::warning(‘json web token not found’); return response()->json([ ‘status’ => 401, ‘reply’ => ‘Unauthenticated!’ ], 401); } I added bearer token to request in postman but it doesn’t work. Also code is .. Read more Right now I am using same domain for laravel and angular application. For this my vhost looks similar to this. ServerName uat.ordering-dalle.ekbana.net ServerAlias www.uat.ordering-dalle.ekbana.net ServerAdmin [email protected] DocumentRoot /var/www/dalle/backend/public ProxyPass /system ! AliasMatch ^/system/(.*)$ /var/www/project/backend/public/index.php AliasMatch ^/system /var/www/project/backend/public/index.php ProxyPass /api ! AliasMatch ^/api/(.*)$/var/www/project/backend/public/index.php ProxyPass /oauth ! AliasMatch ^/oauth/(.*)$ /var/www/project/backend/public/index.php ProxyPass /_debugbar ! AliasMatch ^/_debugbar/(.*)\$ /var/www/project/backend/public/index.php ..

In my laravel project, in /storage/logs folder, there is log file created daily. If that file is created by apache then the owner and owner group becomes www-data and if the file is created by vs-code it’s owner and owner group becomes habib (because vs-code is running under habib user) Here is the problem. -In ..

production localhost Eloquent query works on localhost server but not on production server I got An unknown error occurred 400 Sourc..

I attempted to solve this with this question here to no avail. I have an apache server running Centos 7 and Laravel 8 My php settings are: PHP 7.4.16 run as FPM application served by Apache When I go to preview my site on any route I get the Laravel 404 error page. Here is ..

I trying to store files with Storage::put() but I got this error LeagueFlysystemException: Impossible to create the root directory "Z:TrabajosMiCuentoTest". My laravel project is in my disk C: on a VM in windows server, I did a change in filesystems.php adding a new disk ‘windows’ => [ ‘driver’ => ‘local’, ‘root’ => env(‘WINDOWS_FOLDER_STORE’) ] And ..

After a few days of up-time, my API started to return wrong results. I’m asking the API for /api/book/types, but it will return the results of /api/magazines/1. Over time more and more requests seem to be mixed up in a similar fashion. When I reboot the server, the problems do not appear for a little ..

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 ..

[php7:error] [pid 12451] [client 90.165.75.239:54526] PHP Fatal error: require(): Failed opening required ‘/var/www/midser/vendor/composer/../codedge/laravel-selfupdater/src/helpers.php’ (include_path=’.:/usr/share/php’) in /var/www/midser/vendor/composer/autoload_real.php on line 66 Getting this error whenever I’m trying to get my site up and running. Which is causing the browser to give me this error: HTTP ERROR 500 Does anybody know why may cause this error? Thank you ..

I have laravel app.. It’s work normally when I run on my localhost server. but when I deploy to EC2 Instance.. it work normal until I do login .. and after login.. I got this following error I still don’t understand what’s wrong with my application. and I try to open error log on the ..

I’m trying to setup my laravel application on different server centos 7 running httpd my old configuration on other servers: i always setup document root to be in "laravelProjectDir/public" however in this server i’ve tried the following: here is my apache config file: <IfModule mod_ssl.c> <VirtualHost subdomain.domain.com:443> ServerName subdomain.domain.com ServerAdmin [email protected] DocumentRoot /home/MyUser/public_html/subDomain/public2 <Directory /home/MyUser/public_html/subDomain/public2/> ..