valet-linux-plus
valet-linux-plus copied to clipboard
Not Working properly on Arch Linux
I have Arch Linux with php 8.3 installed
I installed valet properly without any errors. started the server without any errors....
i added my sites
folder to be /srv/www as shown below
I changed my domain to 'localhost' (i prefer using .localhost over default '.test')
when ever i run project.localhost (the directory /srv/www/proect exists and contains a laravel 11 project) in my browser, i get this page
I checked the nginx error logs and got the following
After debugging for long period of time, i finally found the solution to my problem
it was related the to valet83.sock file. Ihad to regenerate a new one using
valet use
@Stephan-MC I believe your issue is resolved by now, but you can always check Nginx log files to know more about this error.
Thank you!
Sorry i still got back to that error after running valet install --mariadb
and now, the previous solution i used doesn't work anymore but i still get the same errors
@Stephan-MC Could you please share output of nginx-error.log
, this file must be located on ~/.valet/Log
directory, also if you could attach output of nginx service status, you can check it by sudo systemctl status nginx
this is the content of my ~/.valet/Log/nginx.error.log
here is the content of the nginx service status...
i later fixed the errors from nginx (modifying ~/.valet/Nginx/mails.localhost) but couldn't still open any php site
@Stephan-MC If I read it right, then your log says that php-fpm service is not available, could you please check if valet83.sock file exists in ~/.valet
directory? If not then can you please run sudo systemctl restart php8.3-fpm
command, if it still doesn't work then can you please share output of sudo systemctl status php8.3-fpm
command
my php83-fpm is working correctly. this is screenshot of sudo systemctl status php83-fpm
Okay, can you please check if valet83.sock file exists in ~/.valet directory?
Okay, can you please check if valet83.sock file exists in ~/.valet directory?
Yeah it's present
@Stephan-MC It's seems I am blind, I just re-checked your first screenshot and I notice that it you do not have posix
extension installed in your system, can you please try installing it via sudo apt install php8.3-posix php8.3-common --reinstall
, also could you please help me to understand what is your OS and version? I'd like to try on a fresh install
sudo apt install php8.3-posix php8.3-common --reinstall
will not help you, as you are on Arch Linux, but you may can find equivalent command.
i have it installed.
or i may interprete things wrongly
If it is already installed then error should be changed in nginx log file can you re-visit it and check once again?
it was already installed before i got the errors i mentioned above
Not sure if this will help but can you check if posix_getpwuid
function is disabled in your system? Maybe you can do it by following: php -r 'echo ini_get("disable_functions");'
shows nothing...
@Stephan-MC It seems some edge case, but maybe we can check it on screen, please email me on [email protected], we may can have a small call to solve this issue.
@Stephan-MC It seems some edge case, but maybe we can check it on screen, please email me on [email protected], we may can have a small call to solve this issue.
Check your mail. i Just emailed you...