Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation issue #485

Open
workbykiran opened this issue Mar 17, 2024 · 7 comments
Open

Installation issue #485

workbykiran opened this issue Mar 17, 2024 · 7 comments

Comments

@workbykiran
Copy link

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.

@ninety3
Copy link

ninety3 commented Mar 21, 2024

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; }

@ninety3
Copy link

ninety3 commented Mar 21, 2024

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

@gtron
Copy link

gtron commented Mar 24, 2024

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 😉

@fvybiral
Copy link

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

@workbykiran
Copy link
Author

This still gives an issue. After installation it gives 502 bad gateway error.

@tolmasoft
Copy link

@andreapollastri please fix it)

@manualsh
Copy link

Try PurePanel instead. It's updated regularly.
https://github.com/PurePanel/PurePanel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants