localhost website download a file, don't start
Posted by: FuzMic (123.136.111.---)
Date: October 03, 2017 02:32AM

Hi friends

I export the mysql database from my host, updated wampser.64bit to 3.1, the files in my subfolder eg myweb under wamp64/www are identical to host except for configuration.php

When i browse localhost/myweb i got the following message. Even use /administrator, same download occurred. Please help. Thank you first.

I can open no problem with another website in wamp64 with virtualhost created using the option within wamp.


/**
* Define the application's minimum supported PHP version as a constant so it can be referenced within the application.
*/
define('JOOMLA_MINIMUM_PHP', '5.3.10');

if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
{
die('Your host needs to use PHP ' . JOOMLA_MINIMUM_PHP . ' or higher to run this version of Joomla!');
}

Options: ReplyQuote
Re: localhost website download a file, don't start
Posted by: FuzMic (118.101.170.---)
Date: October 03, 2017 06:19AM

Guys

I found i have a .htaccess in the folder. Once i drop it there is no problem.

The content of the file is

<IfModule mime_module>
AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>

Can someone explain what is means? THANKS

Options: ReplyQuote
Re: localhost website download a file, don't start
Posted by: Otomatic (Moderator)
Date: October 03, 2017 10:52AM

Hi,

RTFM [httpd.apache.org]

In addition, this has nothing to do and needs to be removed since in the Apache configuration file we already have:

AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3

precisely so that the files with the extension .php or .php3 are well interpreted by PHP.

The directive of your .htaccess file
AddType application/x-httpd-ea-php56 .php .php5 .phtml
reorders (priority over httpd.conf directives) files with extension .php .php5 .phtml to be interpreted only by php 5.6 whereas the directives in the httpd.conf file accept all versions of PHP, so the active version in Wampserver.

------------------------------------------------------------------------------------------------------------
(W7 Pro 64 bit)-Wampserver 3.1.0 32 bit - Apache 2.4.27 - PHP 7.1.10/7.0.24/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
Wampserver 3.1.0 64 bit - Apache 2.4.27 - PHP 7.1.10/7.0.24/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
PhPMyAdmin 4.7.4 - MysqlDumper 1.24.5

Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »



Edited 1 time(s). Last edit at 10/03/2017 06:27PM by Otomatic.

Options: ReplyQuote
Re: localhost website download a file, don't start
Posted by: FuzMic (123.136.117.---)
Date: October 04, 2017 10:34AM

Otello THANK YOU

Options: ReplyQuote
Re: localhost website download a file, don't start
Posted by: Otomatic (Moderator)
Date: October 04, 2017 11:57AM

FuzMic a écrit:
-------------------------------------------------------
> Otello THANK YOU

Please, do not quote my name; cite my pseudo Otomatic.
Also, if you absolutely want to quote my name, do it with the correct spelling: Ottello, two "t" and two "l"

------------------------------------------------------------------------------------------------------------
(W7 Pro 64 bit)-Wampserver 3.1.0 32 bit - Apache 2.4.27 - PHP 7.1.10/7.0.24/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
Wampserver 3.1.0 64 bit - Apache 2.4.27 - PHP 7.1.10/7.0.24/5.6.31 - MySQL 5.7.19 - MariaDB 10.2.8
PhPMyAdmin 4.7.4 - MysqlDumper 1.24.5

Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: localhost website download a file, don't start
Posted by: FuzMic (123.136.117.---)
Date: October 05, 2017 01:55AM

My sincere apologies, ttll

Options: ReplyQuote


Sorry, only registered users may post in this forum.