Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Is PHP goed geïnstalleerd tbv Wordpress?  (gelezen 1720 keer)

Offline plek

  • Lid
Is PHP goed geïnstalleerd tbv Wordpress?
« Gepost op: 2025/01/14, 14:15:51 »
Voor de installatie van WordPress - ik heb Linux Mint 22 Cinnamon - heb ik deze handleiding gevolgd: https://forums.linuxmint.com/viewtopic.php?t=412363. Over de installatie van PHP staat daar oa dit:

Now, we're done with PHP installation. To test how it works, make test.php file in [/var/www/html] directory with following code:
<?php phpinfo(); ?>
Save the file and test it in the browser by accessing the file from localhost:
http://localhost/test.php
This should display information on installed version of PHP in the browser.

Als ik test.php via dat localhost benader, lijkt dat wel te lukken - bestand opent volgens mij, en er is geen foutmelding oid - maar de verwachte informatie over de PHP-versie verschijnt niet, er komt helemaal niets.
Is PHP  nu wel of niet goed geïnstalleerd, en hoe kan ik dat eventueel controleren?
Alvast dank voor jullie meedenken.

Offline vanadium

  • Lid
Re: Is PHP goed geïnstalleerd tbv Wordpress?
« Reactie #1 Gepost op: 2025/01/14, 15:58:02 »
Wat zie je dan wel?

Offline plek

  • Lid
Re: Is PHP goed geïnstalleerd tbv Wordpress?
« Reactie #2 Gepost op: 2025/01/15, 11:54:05 »
Dank vanadium voor je vraag.

Citaat
Wat zie je dan wel?

Ik zie helemaal niets. Het bestand test.php in /var/www/html opent wel, maar toont niets; het lijkt dus leeg.
« Laatst bewerkt op: 2025/01/15, 12:07:18 door plek »

Offline vanadium

  • Lid
Re: Is PHP goed geïnstalleerd tbv Wordpress?
« Reactie #3 Gepost op: 2025/01/16, 10:56:44 »
Dan is je webserver wel goed geïnstalleerd, maar php werkt (nog) niet: de php code wordt immers niet geïnterpreteerd. Probeer eerst een eenvoudige herstart om te zien of het dan wel. Als het ook dan nog niet werkt, zal je je stappen die je hebt gevolgd voor installatie van php moeten controleren.

Offline plek

  • Lid
Re: Is PHP goed geïnstalleerd tbv Wordpress?
« Reactie #4 Gepost op: 2025/01/23, 09:51:07 »
Dank vanadium. Excuus voor mijn trage reactie. Ik ga met je antwoord aan de slag.