I am encountering an issue on my Ubuntu server for my Laravel 10 web application, which runs on Ubuntu 24.04.2 LTS (GNU/Linux 6.8.0-55-generic x86_64).
In my local environment, everything works fine, and I can log in without any issues.
However, I cannot log in after I deployed it to the server using NGINX. The register function works fine, though.
I have tried several solutions, including changing the permissions on the storage folder to 775, as suggested, but the log-in issue persists.
Here is my route:list
output:
GET|HEAD / ..........................................................................................................................................................
GET|HEAD _minify/{file?} ................................................................................ minify.assets › Fahlisaputra\Minify › HttpConnectionHandler
GET|HEAD accounts ...................................................................................................................................................
GET|HEAD api/user ............................................................................................................................. ApiController@showAll
GET|HEAD api/user/{id} ........................................................................................................................... ApiController@show
GET|HEAD app/dashboard .................................................................................................................... app › AppController@index
POST app/deposit ................................................................................................. deposit.submit › TransactionController@deposit
GET|HEAD app/deposit/confirm/{uuid} ..................................................................... deposit.confirm › TransactionController@updateDepositStatus
GET|HEAD app/profile ............................................................................................................ app.profile › AppController@profile
GET|HEAD app/settings/activity ................................................................................ app.settingsActivity › AppController@settingsActivity
POST app/settings/bank-info .................................................................................. settings.bank.store › AppController@updateBankInfo
POST app/settings/card-info .................................................................................. settings.card.store › AppController@updateCardInfo
GET|HEAD app/settings/payment-method ............................................................................ app.settingsPayment › AppController@settingsPayment
POST app/settings/personal-info ........................................................................ app.settings.personal › AppController@updatePersonalInfo
POST app/settings/pin ..................................................................................... app.settings.pin › AppController@updateTransactionPin
GET|HEAD app/settings/privacy ................................................................................... app.settingsPrivacy › AppController@settingsPrivacy
GET|HEAD app/settings/profile ................................................................................................. app.settings › AppController@settings
POST app/settings/profile/update ............................................................................... app.update.profile › AppController@updateProfile
POST app/settings/update-auth ............................................................................... settings.update.auth › AppController@updateAuthInfo
GET|HEAD app/signin ............................................................................................................ signin › AppController@showLoginForm
GET|HEAD app/transactions ............................................................................................. app.transactions › AppController@transactions
POST app/transfer ..................................................................................................... transfer › TransactionController@transfer
GET|HEAD app/user/suspend/{uuid} .............................................................................................. user.suspend › AuthController@suspend
GET|HEAD app/user/verify/{uuid} ................................................................................................. user.verify › AuthController@verify
GET|HEAD app/verify-data ............................................................................................ verify.data › AuthController@showVerifyDataForm
POST app/verify-data ....................................................................................... verify.data.submit › AuthController@submitVerifyData
POST app/verify-pin ............................................................................... set.transaction.pin › TransactionController@setTransactionPin
GET|HEAD app/wallet ............................................................................................................... app.wallet › AppController@wallet
POST app/withdraw .............................................................................................. withdraw.submit › TransactionController@withdraw
GET|HEAD app/withdraw/confirm/{uuid} ....................................................................... withdraw.confirm › TransactionController@confirmWithdraw
POST app/withdraws/confirm/{uuid} .................................................................... withdraws.confirm › TransactionController@confirmWithdraws
ANY apply .............................................................................................................. Illuminate\Routing › RedirectController
GET|HEAD contact ....................................................................................................................................................
GET|HEAD faq ........................................................................................................................................................
GET|HEAD fot-password .................................................................................................. app.fot › AppController@fotPassword
GET|HEAD login ............................................................................................................ login.form › AuthController@showLoginForm
POST login ......................................................................................................................... login › AuthController@login
POST logout ...................................................................................................................... logout › AuthController@logout
GET|HEAD privacy-policy .............................................................................................................................................
GET|HEAD register ................................................................................................... register.form › AuthController@showRegisterForm
POST register ................................................................................................................ register › AuthController@register
GET|HEAD sanctum/csrf-cookie ...................................................................... sanctum.csrf-cookie › Laravel\Sanctum › CsrfCookieController@show
GET|HEAD signup ................................................................................................................... app.signup › AppController@signup
GET|HEAD terms-conditions ...........................................................................................................................................
GET|HEAD testimonials ...............................................................................................................................................
GET|HEAD verify/success/{uuid} ...................................................................................... app.verifySuccess › AppController@verifySuccess
GET|HEAD verify/{uuid} ............................................................................................................ app.verify › AppController@verify
And this is my .env
configuration (credentials have been obfuscated):
APP_NAME="Baltxxx xxx xxx"
APP_ENV=local
APP_KEY=base64:fx/xxx=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=xxx
DB_USERNAME=root
DB_PASSWORD=
BROADCAST_DRIVER=log
CACHE_DRIVER=redis
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120
MEMCACHED_HOST=127.0.0.1
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=smtp
MAIL_HOST=sandbox.smtp.mailtrap.io
MAIL_PORT=xxx
MAIL_USERNAME=xxx
MAIL_PASSWORD=xxx
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1
VITE_APP_NAME="${APP_NAME}"
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
CLOUDINARY_URL=xxx
CLOUDINARY_CLOUD_NAME=xxx
CLOUDINARY_UPLOAD_PRESET=xxx
IPGEOLOCATION_KEY=xxx
IPGEOLOCATION_API_KEY=xxx
API_KEY=xxx
I also checked the session configuration (SESSION_DRIVER=file
) and changed the permissions on the storage
folder to 775 like this:
sudo chmod -R 775 /var/www/balxxx/storage
sudo chown -R www-data:www-data /var/www/balxxx/storage
But after clearing cookies in the browser, I still cannot log in on my domain.
Here is my GitHub Actions deployment workflow:
name: Deployment of xxx
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name:
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744273172a4566200.html
评论列表(0条)