Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Grav not running installed PHP 7

Started by Muut Archive 10 years ago · 2 replies · 473 views
10 years ago

I have downloaded from the grav web site and unzipped the archive into the default /var/www/htdocs folder. As far as I can see all files are present as indicated in the docs.

All the system requirements for grav have been met including the use of PHP 7. It is located in /usr/lib/php. However, when attempting to install grav any php page (like index.php) displays the PHP text in the browser and does not execute PHP.

I can run the scripts supplied. In fact i tried to run the bin/gpm install admin but got an error
Class 'ZipArchive' not found when attempting to install the Form package.

I know I am missing something somewhere.

10 years ago

Well, it sounds like you don't have PHP running properly with PHP. If you create a simple testfile.php with:

PHP
<?php echo "hello world"

Does that work? I think probably not.

10 years ago

Hi. I have 2 weeks use Grav with php7, no problem. Used 2 sites, one working, the other in development.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1999 9 years ago
Archive · by Muut Archive, 9 years ago
2 1342 9 years ago
Archive · by Muut Archive, 9 years ago
2 4549 9 years ago
Archive · by Muut Archive, 9 years ago
1 3402 9 years ago
Archive · by Muut Archive, 9 years ago
3 1493 9 years ago