L
L
leni_m2017-10-19 14:06:06
PHP
leni_m, 2017-10-19 14:06:06

How to execute index.php on server?

Hello toasters!
If the file is called index.html, then the page is displayed.
And if you rename it to index.php, then the error is 500.
59e886d18187e364874472.png
Tell me how to solve this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maksim Fedorov, 2017-10-19
@leni_m

Which server?
Make a page next to index and call test.php
in it just write this:

<?php
phpinfo();

try to open it, if it does not open, then php is not working on the server

A
Alexey, 2017-10-19
@a1exDi

You need to install PHP on the Apache/nginx server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question