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

Grav not running installed PHP 7

Started by Muut Archive 9 years ago · 2 replies · 427 views
9 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.

9 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.

9 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 1327 9 years ago
Archive · by Muut Archive, 9 years ago
2 921 9 years ago
Archive · by Muut Archive, 9 years ago
2 4050 9 years ago
Archive · by Muut Archive, 9 years ago
1 2928 9 years ago
Archive · by Muut Archive, 9 years ago
3 1107 9 years ago