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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Installation & Hosting

Blank page apache2 localhost

Started by Pablo 6 years ago · 6 replies · 3223 views
6 years ago

I copied all files to my localhost folder.
When I call localhost on my browser I get an empty page.
So I commented the whole index.php and wrote only phpinfo. I got the info page.
Any suggestions why the index.php doesn't load with the grav code?

6 years ago

Then the next step is to examine your Apache and PHP logs.

6 years ago

Do you have any more info on where you are copying from and to? It may be worth giving some more details about the environments (e.g. copying from a hosting provider to a local Linux system).

Let's assume you are copying the files from a working system, over to another computer running Linux (localhost). Most likely a blank page would be caused by missing php modules on your localhost. The getgrav requirements page should give you a steer on what modules you need.

You might also have different versions of PHP installed. On your localhost type:
php --version

You'll need at least version 7.1.3 with the latest version of Grav.

4 years ago

Good,

I am answering this old question because I had to solve the same problem. In my case, working under linux, the solution has been to change the owner of the grav installation files to dameon. From the Apache htdocs directory: sudo chown -R daemon:dameon grav (for the grav folder).

I have also had problems copying files only from the /page and themes/theme folders when they had the language extension in the filename but did not have this in the configuration file.

Human failures! 😅

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by antoinep, 12 hours ago
5 59 6 hours ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 61 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 61 8 months ago
Installation & Hosting · by N, 12 months ago
3 72 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 61 1 year ago