• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Error performing HTTP request on install

Status
Not open for further replies.

Iro Haruro

Chevereto Noob
Thanks for deleting my post! :)
Obviously you missed the circumstance, that this post is about a different server and a different problem.

I wrote:

Same here.
Due to the problems posted here, I tried a different ("new") server w. Debian 10 buster.
Got over the errors described in this thread and am now stuck at "/install" called via http, wenn accessing "/".
Gives me 404:
Not Found
The requested URL /install/ was not found on this server.

When I try to "trick" it w. either accessing /app/install/installer.php or by using a symlink, I get:
"This file cannot be directly accessed."
Stuck again :)


Edit: How did I install the software?
Like on the other box, by wgetting https://github.com/Chevereto/Chevereto-Free/archive/master.zip unzipping, mv-ing to /html/ (=the html root dir of the server), chmodding app, content and images directories to 777 and calling "/" from browser.

Following your advise, and considering your quote about " standard servers" and "any substandard servers" having issues, I downloaded installer.php from the doc you linked above and put in in "/"
calling /installer.php in Browser gives an empty page.
calling root@buster:/var/www/html# php installer.php in console gives me:
<h1>[PHP] Class 'ZipArchive' not found</h1><p>in /var/www/html/installer.php:254</p> <pre><code></code></pre>root@buster:/var/www/html

Obviously your code does not do proper handling at all, yet assumes some non standard configuration.
So I installed libzip4 php-zip php7.3-zip (even though bzip2 and gzip were already present) via apt install php-zip
Browser still gives empty page. On command-line it throws loads of HTML.


In error logs:

[CODE title="installer.error.log"]root@buster:/var/www/html# cat installer.error.log
--------------------------------------------------------------------------------
2019-10-10 08:56:23
PHP:
 Class 'ZipArchive' not found: in /var/www/html/installer.php:254


--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
2019-10-10 09:12:28 [PHP] preg_match() expects parameter 2 to be string, null given: in /var/www/html/installer.php:2777

Trace:
#0 /var/www/html/installer.php:2777
preg_match
--
Arg#0
'/nginx/i'
--
Arg#1
NULL
--------------------------------------------------------------------------------

[/CODE]

...this probably because when called from console, it didn't get the host/path/"URL".
So I fiddeled and poked a bit and finally managed to get to...:

[SIZE=7][B]No PHP 7.3 support[/B][/SIZE]
We're sorry, but Chevereto-Free doesn't support PHP 7.3 yet. Switch to PHP 7.2 or install our paid edition.


[B]Seriously[/B]?!
 
Obviously you missed the circumstance, that this post is about a different server and a different problem.
And a different software. The free edition code is not the same as the paid edition, it is older.

calling /installer.php in Browser gives an empty page.
calling root@buster:/var/www/html# php installer.php in console gives me:
<h1>[PHP] Class 'ZipArchive' not found</h1><p>in /var/www/html/installer.php:254</p> <pre><code></code></pre>root@buster:/var/www/html
The CGI and CLI SAPIS don't work the same. In Chevereto 3 and Chevereto-Free there's no unified entry point for these SAPIs, you can't do a comparison and you get an error in the CLI because that SAPI has a different error handling vs the browser which is hiding the error as the default production mode.

Obviously your code does not do proper handling at all, yet assumes some non standard configuration.
The script uses the internal PHP functions to detect if that class is enabled or not.

This is how the Installer does that: https://github.com/Chevereto/installer-source/blob/master/src/RequirementsCheck.php#L66
This is how Chevereto-Free does that: https://github.com/Chevereto/Chever...8cd111a57c/app/install/update/updater.php#L27
Both paid and free editions use app/lib/integrity-check.php to check the system runtime.

As you may notice, it uses class exists to check for ZipArchive. If that returns false the class isn't there. Simple as that.

We're sorry, but Chevereto-Free doesn't support PHP 7.3 yet. Switch to PHP 7.2 or install our paid edition.
Seriously?!

Chevereto-Free is a fork of the paid edition and support for PHP 7.3 was added in 3.13.0 (may 2019) which hasn't been forked yet into Chevereto-Free. It took 6 months to get PHP 7.3 working in the paid edition because the dependencies must also support that edition. For 7.3 the problem is the change to PCRE2 which requires to examine all the regular expressions present in the software. Also, Chevereto-Free has been always delayed in features because I don't have the resources to actively maintain both so rather than flood Chevereto-Free with releases and trigger support issues, I build stable releases to reduce any incident to the minimum.

Finally, let me address that you have problems with the server, not the software. To deal with servers is very frustrating, annoying and anything you may want to say about it. But please, don't mix the software in the middle of it.
 
so, how do we resolve this problem? I just ran the installer.php from my domain on a Debian VPS, PHP 7.2, Apache2.

I get the same error and would like to know if it's able to be resolved??

I can access http://domain as well as https://domain. Here is the error, it would be nice to know where the http request is going to.

Installing
The software is being installed. Don't close this window until the process gets completed.

Error performing HTTP request

17:05:13 Server snoopycomehome.net PHP 7.2.24-0ubuntu0.18.04.2
17:05:16 Software has been set to: chevereto-free
17:05:34 SQLSTATE[HY000] [1045] Access denied for user 'photoadmin'@'localhost' (using password: YES)
17:05:51 Database chevereto OK
17:07:11 Detecting existing cPanel .htaccess handlers
17:07:11 No .htaccess found
17:07:11 Downloading latest chevereto-free release
17:07:12 Downloaded chevereto-pkg-4081ccb9.zip (4.7 MB @11.15MB/s.)
17:07:12 Extracting chevereto-pkg-4081ccb9.zip
17:07:13 Extraction completeted (424 files in 0.14s)
17:07:13 Creating app/settings.php file
17:07:13 Settings file OK
17:07:13 Performing system setup
17:07:13 Error performing HTTP request
17:07:13 Process aborted
 
Status
Not open for further replies.
Back
Top