wamp

Content-type not working in PHP

梦想与她 提交于 2019-11-27 02:20:38
问题 I have some issues with a PHP file that is not working properly. The Content-type does not get recieved by any browser at all. Firebug interprets the file as text/html instead of css. Here's the file : <?php header('Content-Type: text/css; charset=UTF-8'); error_reporting(E_ALL | E_STRICT); ini_set('display_errors', 'On'); /* CSS goes on from here */ I tested to put a row with echo 'TEST'; before the header line, and was expecting to see the classic "headers already sent" error, but nothing

Fatal Error - 'Mongo' class not found

馋奶兔 提交于 2019-11-27 02:14:53
I'm trying to execute this: <?php // connect $m = new Mongo(); ?> But I get the following error: Fatal error: Class 'Mongo' not found in C:\wamp\www..... Info: PHP: 5.38 MongoDB: mongodb-win32-i386-2.0.2 MongoDB PHP Driver: mongo-1.1.4-php5.3vc6ts WampServer: 2.2 OS: Windows 7 Enterprise SP1 I've followed the MongoDB installation fine (incl. adding the DLL to ext & php.ini), I've started mongod.exe and WAMP is running. What does this imply is missing/incorrect? Edit: I have got it running on another Windows 7 machine (Windows 7 Profressional). That got me curious. So now my Windows 7

Access Denied when opening phpMyAdmin

对着背影说爱祢 提交于 2019-11-27 01:55:50
问题 What could be the problem of my mysql database server in WAMP. I can't open it. The error says: MySQL said: Documentation #2002 - No connection could be made because the target machine actively refused it. The server is not responding (or the local server's socket is not correctly configured). I checked the ports, but no other apps are using port 3306 which is dedicated to mysqld. Here's what mysql.log says: 120728 22:34:40 [Note] Plugin 'FEDERATED' is disabled. 120728 22:34:42 InnoDB: The

Forbidden: You don't have permission to access / on this server, WAMP Error

大城市里の小女人 提交于 2019-11-27 01:51:46
问题 I have installed wamp on windows 8 and received above error whenever I go to localhost or phpmyadmin. After much searching I found many answers which includes modifying the httpd.conf to Allow from All etc. This link shows such a common answer with further information. My problem is that many have argued that it gives permission to all users to access phpMyAdmin and it is insecure and vulnerable etc. I want to create perfectly secure WAMP server and is it OK if I do this? Can someone please

Run a php script as a background process in wamp server

微笑、不失礼 提交于 2019-11-27 01:42:59
问题 I have two php scripts that need to be run as continuous back ground processes in WAMP server. Wamp server is installed in window 7 PC. These scripts are already reside in separate folder in the www root directory. Apache Version :2.2.8 PHP Version :5.2.6 Since this is not a unix platform I can't use nohup php script.php > /dev/null & command to do this job. I'm looking for similar kind of command or method which works in wamp server windows platform. Can anyone explain the steps I need to be

intl extension php_intl.dll with wamp

孤者浪人 提交于 2019-11-27 01:37:38
I want to use Moodle, but I get an error during the installation process: php_extension->intl->should be installed and enabled for best results. Intl extension is used to improve internationalization support, such as locale aware sorting. When I click on the link, I get the error message above: http://docs.moodle.org/24/en/admin/environment/php_extension/intl I followed that link, but I still get the same error. If anyone has any ideas, please help me out. Athlan I had the same problem a few days ago. You have to copy all the files (all files starts with icu* ): icudt.dll icudt46.dll icuin.dll

WAMP Virtual Host not working

我与影子孤独终老i 提交于 2019-11-27 01:23:52
问题 I am using a wamp version 2.5 My Apache is 2.4.9 PHP: 5.5.12 MySQL: 5.6.17 I have these configurations: On my httpd.conf # Virtual hosts Include conf/extra/httpd-vhosts.conf On my G:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhost.conf # Virtual Hosts # # Required modules: mod_log_config # If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to

How to enable https (localhost) url in WAMP server (v2.5)? [duplicate]

一曲冷凌霜 提交于 2019-11-27 01:08:22
问题 This question already has an answer here: How to enable SSL in Wamp Server? 3 answers I am using wamp server and running php project in localhost. I would like to test my project using "https" based url. I tried with "https://localhost/myproject/" and it redirecting me to "This webpage is not available" page. I have enabled "php_openssl" and "ssl" module into apache config. But still unable to access https based url. 回答1: You have to set up your WAMP first with key and a certificate: Download

#1045 - Access denied for user 'root'@'localhost' (using password: YES)

ぃ、小莉子 提交于 2019-11-27 01:02:19
This might seem redundant but I was unable to find a correct solution. I was unable to login to mysql using the mysql console.It is asking for a password and I have no clue what I actually entered.(Is there a way to get the password or change it?) This is how my config.inc look. When I try to open phpmyadmin I get this error(#1045 - Access denied for user 'root'@'localhost' (using password: YES)) <?php /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['verbose'] = 'localhost'; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['port'] = '3306

Apache won't start in wamp

喜夏-厌秋 提交于 2019-11-27 00:06:48
问题 I have been googling for the past few hours but I simply can't get my apache on wamp to start. My skype isn't running, and the test port 80 shows it isn't being used by anything. Before this happened, I was trying to add a new vhost, but now I have reverted back all of the files where I made changes. Anyway to debug why apache won't start? Clicking on start/resume service for apache doesn't show any errors either. Also just in case, I am running Win7 64bit 回答1: If you have an issue in the