Open workbykiran opened 8 months ago
same error, on debuing i found that, php 8.0 is loaded in CLI but project wants php 8.3 and fpm is missing in php 8.3
either need to reinstall php 8.3 or downgrade project to php 8.0.
you can reinstall php 8.3 by writing following command in terminal
sudo apt-get install php8.3 php8.3-fpm php8.3-common php8.3-mysql php8.3-xml php8.3-intl php8.3-curl php8.3-gd php8.3-imagick php8.3-cli php8.3-dev php8.3-imap php8.3-mbstring php8.3-opcache php8.3-soap php8.3-zip
after this
update composer.json
and in your /etc/nginx/sites-available edit default
and change from
location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php8.0-fpm.sock; }
to
location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php8.3-fpm.sock; }
after resolving all these issues and you have to fix db issues and then you will come to know that there are no routes in web.php
I had the same issue, and after spending a couple of hours and many WTF I believe I found out the root cause: the installation script is downloading the wrong version of html folder, which is not compatible with 3.x.
I don't know why it happened, in fact at line https://github.com/andreapollastri/cipi/blob/latest/go.sh#L566 it should checkout the correct version. But, in my case at least, it was still on the master branch.
Given the unsuccessful attempts to recover the installation, I think the next step will be to patch the installer and install everything from scratch.
I hope @andreapollastri could check it too. Thanks anyway for your hard work! I look forward to seeing the new version :wink:
Try tu run script this way:
wget -O go.sh https://raw.githubusercontent.com/andreapollastri/cipi/3.x/go.sh && chmod +x go.sh && ./go.sh v.3
This still gives an issue. After installation it gives 502 bad gateway error.
@andreapollastri please fix it)
Try PurePanel instead. It's updated regularly. https://github.com/PurePanel/PurePanel
As mentioned, i tried to install 3.x version (not from master) using the command: wget -O - raw.githubusercontent.com/andreapollastri/cipi/3.x/go.sh | bash
Everything installed without error, however iam unable to open the login page at all. when checked in nginx error logs, i found an issue as below: root@8322:~# tail /var/log/nginx/error.log
0 {main}
thrown in /var/www/html/public/index.php on line 13" while reading response header from upstream, client: xx.xx.xx.xx, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.0-fpm.sock:", host: "yy.yy.yy.yy" 2024/03/18 01:16:15 [error] 61553#61553: *9 FastCGI sent in stderr: "PHP message: PHP Warning: require(/var/www/html/public/../vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/html/public/index.php on line 13PHP message: PHP Fatal error: Uncaught Error: Failed opening required '/var/www/html/public/../vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/public/index.php:13 Stack trace:
0 {main}
thrown in /var/www/html/public/index.php on line 13" while reading response header from upstream, client: xx.xx.xx.xx, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.0-fpm.sock:", host: "yy.yy.yy.yy" 2024/03/18 01:16:16 [error] 61553#61553: *11 FastCGI sent in stderr: "PHP message: PHP Warning: require(/var/www/html/public/../vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/html/public/index.php on line 13PHP message: PHP Fatal error: Uncaught Error: Failed opening required '/var/www/html/public/../vendor/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/public/index.php:13
can you please help.
Similar issue but related to php version of composer related issue happened if i install purepanel. I will raise that ticket in purepanel related github.
As of now iam using the above cipi 3.x installation and request to let me know any resolution for the same.