Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MediaWiki installation problems

I'm trying to install the MediaWiki in a shared host of my university. The url will be http://www.iq.usp.br/mcplwiki. I've put the MediaWiki files in the web folder (I'm using the WinSCP to access the folders), so I should be able to access and finish the installation by going to this url, right?

But when I do so, I receive a downloaded file with this content:

This is the main web entry point for MediaWiki.
 *
 * If you are reading this in your web browser, your server is probably
 * not configured correctly to run PHP applications!

I've checked the PHP version with the IT service, and the version is 5.3.3-7, which should be enough for the latest MediaWiki version.

Can you guys help me? Thanks!

like image 696
Larissa Avatar asked Oct 18 '25 13:10

Larissa


1 Answers

The issue I had was that apache2 did not have a PHP module enabled.

These are the steps I took to diagnose and fix my issue:

  1. Check that you have PHP: php -v

  2. Check if you have a PHP module enabled in apache: apachectl -M

  3. If you don't have a PHP module, install one for your PHP version: apt-get install libapache2-mod-phpX.X

  4. Reload: service apache2 reload

like image 127
Cyrus Avatar answered Oct 21 '25 02:10

Cyrus