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

Read more

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

Read more

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

Read more

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

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

Read more

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

Read more

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

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

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

Read more

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

Read more

up media my website root link But it also works with the following link https: // upmedia.ir/ public What should I do to not open the site with the address / public? my public/.htaccess codes <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* – ..

Read more

New back-end dev here. Just had a question about why the default laravel welcome page is displaying whenever I visit my custom web app url. I am practicing setting up new applications (obviously I need to) with homestead. I downloaded some site files and made the necessary edits to my .env, hosts file, and .yaml ..

Read more