sudo mkdir /opt/tomcat
sudo groupadd tomcat
sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
protected function login(Request $request) | |
{ | |
$this->validateLogin($request); | |
$user = User::where('username', $request->email) | |
->orWhere('email', $request->email) | |
->first(); | |
if ($user) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Http; | |
use Illuminate\Support\Facades\Storage; | |
use Illuminate\Support\Facades\Auth; | |
use App\Models\User; | |
use App\Models\documento_x_usuario; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#deb cdrom:[Debian GNU/Linux 12.10.0 _Bookworm_ - Official amd64 DVD Binary-1 with firmware 20250315-10:10]/ bookworm contrib main non-free-firmware | |
# Releases of the main packages. | |
deb [arch=amd64] http://ftp.mx.debian.org/debian/ bookworm main contrib non-free | |
deb-src [arch=amd64] http://ftp.mx.debian.org/debian/ bookworm main contrib non-free | |
# Updates that cannot wait for the next point release. | |
deb [arch=amd64] http://ftp.mx.debian.org/debian/ bookworm-updates main contrib non-free | |
deb-src [arch=amd64] http://ftp.mx.debian.org/debian/ bookworm-updates main contrib non-free |
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
'/sbin/vboxconfig'
Primero de todo tenemos que localizar el archivo de configuraci贸n (global) de PHP (php.ini) que puede estar ubicado en diferentes rutas dependiendo del sistema operativo o de la distribuci贸n Linux que usemos. Y una vez localizado, tenemos que editarlo y modificar las siguientes l铆neas
upload_max_filesize = 10M
post_max_size = 20M
max_execution_time = 180