No such file php-7.2.0.tar.gz

I’ve gotten Apache and Nginx to each work seprately, now I’m following a tutorial to get NginX to Reverse Proxy to Apache using Fast-CGI… the first command seems to be downloading the mirror as expected, but the second command isn’t finding the file it just downloaded. I’m thinking there’s probably an update. The book was written in Jan of last year, but something still seems to not be in alignment… not sure what else to try.

wget http://php.net/get/php-7.2.0.tar.gz/from/www.php.net/mirror

tar xzf php-7.2.0.tar.gz

I’ve also tried both commands with sudo incase it was a permissions issue

well, clearly the file isnt there.
Where did you execute the wget command from? Or perhaps more importantly, where did you wget it TO?

find / -name php-7.2.0.tar.gz

also, arent the flags on tar supposed to have a hyphen in front of them?

tar -xvf php-7.2.0.tar.gz ?

Well… you really need to study the output of

wget http://php.net/get/php-7.2.0.tar.gz/from/www.php.net/mirror

You’re obviously not getting the file, so that’s your first problem.

Secondly… PHP 7.2.0 is quite old, the latest version of PHP 7.2 is 7.2.19

Try

wget https://www.php.net/distributions/php-7.2.19.tar.gz

This is kind of the problems with following all these how to guide… everybody tends to take them verbatim without actually reading through them to know what everything is doing. The guide was problem written when PHP 7.2.0 was first released and never updated again.

1 Like

Thank you, that did it

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.