Topic on Project:Support desk

My Wiki do not load after I changed IP Address

7
AlexMX2016 (talkcontribs)

I was working perfect with my wiki, I installed SSL Certificate successfully, but, since  a requirement for the SSL is that the site must have an Static IP, I decided to change the IP from Dynamic to Static. After the IP I did also change my DNS registers to the new IP Address. Related to the SSL-Certificate all ran pretty well, certificates are found, but in the moment I wanted to load my wiki, I got his in my browser:

<?php

/**

* 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!

*

* See the README, INSTALL, and UPGRADE files for basic setup instructions

* and pointers to the online documentation.

*

* https://www.mediawiki.org/

*

* ----------

*

* This program is free software; you can redistribute it and/or modify

* it under the terms of the GNU General Public License as published by

* the Free Software Foundation; either version 2 of the License, or

* (at your option) any later version.

*

* This program is distributed in the hope that it will be useful,

* but WITHOUT ANY WARRANTY; without even the implied warranty of

* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

* GNU General Public License for more details.

*

* You should have received a copy of the GNU General Public License along

* with this program; if not, write to the Free Software Foundation, Inc.,

* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

* http://www.gnu.org/copyleft/gpl.html

*

* @file

*/

// Bail on old versions of PHP, or if composer has not been run yet to install

// dependencies. Using dirname( __FILE__ ) here because __DIR__ is PHP5.3+.

require_once dirname( __FILE__ ) . '/includes/PHPVersionCheck.php';

wfEntryPointCheck( 'index.php' );

require __DIR__ . '/includes/WebStart.php';

$mediaWiki = new MediaWiki();

$mediaWiki->run();

Why I get this if before the changes the Wiki was working perfect?

87.123.28.129 (talkcontribs)

What you see there is unparsed PHP code. Obviously, the content of .php files now no longer is parsed so that MediaWiki is no longer working. Note that this is not only a functional problem, but this actually is an urgent security problem! You should either work around it by deactivating your domain for now or solve it by making .php files be parsed again.

Ciencia Al Poder (talkcontribs)

Apparently, you disabled PHP while you were changing the configuration to enable SSL

Xdx24 (talkcontribs)

I also met this problem. I deactivated my domain, but still get this message. It pumped up with a download file, I don't know how to configure, any more help? Thanks!

Ciencia Al Poder (talkcontribs)

I think you should ask for support to your hosting provider, if that's a PHP misconfiguration

Emanuelvasilack (talkcontribs)

Aca muestran varios pasos para poder solucionar el problema ..http://librosweb.es/foro/pregunta/233/el-codigo-php-de-mi-pagina-no-se-ejecuta-y-el-navegador-muestra-su-contenido/

Juro que avía instalado php , despues de 1 día entero de no poder solucionar el error , me fui a dormir . Hoy a primera hora de Argentina retomo la instalación de la wiki, dispuesto a estar todo el día . Leo en el foro !Compruebe si PHP esta instalado¡ , puede parecer muy estupido ya que lo avía instalado , quito mi orgullo y $apt-cache search php5 y veo que no estaba instalado , maldito debian ayer lo avía instalado . Bueno procedo a instalarlo y problema solucionado

星耀晨曦 (talkcontribs)

Thank you for your suggestion, but it will be better written in English.

Reply to "My Wiki do not load after I changed IP Address"