wamp

How to hide information_schema database from phpmyadmin

为君一笑 提交于 2019-12-03 06:59:29
问题 I am able to hide the database from writing this line $cfg['Servers'][$i]['hide_db'] = 'information_schema'; in config.inc.php file pf phpmyadmin. It is possible to access content of this database through url like http://www.test.com/phpmyadmin/index.php?db=information_schema&token=3ba37ae1e41f6a10e4afc7c69b934bba How is it possible to remove complete access of information_schema database ? 回答1: You can even hide multiple DBs using pipe separator $cfg['Servers'][$i]['hide_db'] = 'information

PHP: No php.ini file

元气小坏坏 提交于 2019-12-03 06:55:39
I just started to learn PHP and in order to do that I installed wampserver on my windows 8.1. When I try to launch, it works properly but I have two problems: 1) I have an error in my localhost page: *** ERROR *** The PHP configuration loaded file is: - should be: C:/wamp64/bin/apache/apache2.4.17/bin/php.ini or c:/wamp64/bin/php/php5.6.16/phpforapache.ini I tried to find the php.ini file but it doesn't exist. In my phpinfo() it is (none) in front of Loaded Configuration file. 2) The other problem is I can't access phpmyadmin and I get this error : "The mbstring extension is missing. Please

win7/win8下手工搭建WAMP环境

Deadly 提交于 2019-12-03 06:49:29
win7 / win8 下手工搭建WAMP环境 (Apache2.2.25+MySQL5.6.12.2+PHP5.4.17+phpMyAdmin4.0.4.1) * 在RHEL或CentOS下简单的搭建LAMP环境的方法~ 请转看此贴 http://bbs.pcbeta.com/viewthread-1363066-1-1.html PHP环境的搭建通常是学习PHP的第一步,那么今天我们就来看一下应该怎样搭建PHP的环境,这次是在 windows8 上搭建的,其实也无所谓win7还是win8,方法都是一样的。对于LAMP我们应该很熟悉,那是Linux+Apache+MySQL+PHP(+phpMyAdmin),但在windows上我们对其也有类似的简称:WAMP,即Window+Apache+MySQL+PHP(+phpMyAdmin),下面是本次搭建PHP环境需要用到的: 带有window8或window7系统的电脑 Apache 软件包 :httpd-2.2.25-win32-x86-openssl-0.9.8y.msi MySQL 软件包: mysql-installer-community-5.6.12.2.msi PHP 代码包: php-5.4.17-Win32-VC9-x86.zip phpMyAdmin 代码包: phpMyAdmin-4.0.4.1-all

Why are there no longer Windows binaries for PECL extensions like pecl_http?

寵の児 提交于 2019-12-03 06:02:36
I'm working on a PHP project running on Windows and it would be so very handy to be able to use pecl_http rather than working with cURL and re-inventing the wheel in order to do all the cool stuff the pecl extension does like parsing headers and so forth. Everywhere I read (including the PHP site) is that the Windows binary for pecl_http is no longer packaged with any PHP installation. I can't find any explanation as to why not anywhere. Also, http://pecl4win.php.net/ has been down for ages and I can only assume that the pecl4win project is dead. Does anyone know the story about what happened

wamp tmp folder takes some GB of space while running magento in localhost

流过昼夜 提交于 2019-12-03 05:37:06
wamp tmp folder takes some GB's of space while running magento in localhost , like this some files are created in Wamp/tmp folder, while i using magento cachegrind.out.1367384833 cachegrind.out.1367384834 cachegrind.out.1367384835 file contain code like this version: 1 creator: xdebug 2.2.0 cmd: C:\wamp\www\magento\index.php part: 1 positions: line like this it contain some 80k lines in each file how to solve this problem? thanks in Advance That seems to be due to profiling enabled in Xdebug. Set xdebug.profiler_enable=0 in your php.ini and restart the server to see if it fixes the issue. 来源:

WampServer Apache httpd.exe application was unable to start correctly (0xc0000142) after Windows 10 Creators Update (1703))

无人久伴 提交于 2019-12-03 05:28:12
The Windows 10 Creators update seems to have hosed Apache's httpd service, which now errors when I first start the WampServer. The official form confirms this suspicion. WampServer version 3.0.6. However, none of the suggested solutions on the forum worked, as of the time of this post. Thus, I've opened this question so that us community members can work to find a solution here. Note that downgrading Windows is not a viable solution here. Update: looks like the 3.0.8 patch resolves the issues with WampServer 3.0.6 and the Windows 10 Creators Update. It's not well publicized on the website,

wamp如何更改网站根目录DocumentRoot

女生的网名这么多〃 提交于 2019-12-03 04:42:31
想必很多人都使用wamp来开发php的web应用吧,同时某些情况下我们或许需要修改服务器的根目录来方便我们搭建和开发网站,接下里我们将说明如何更改wamp的根目录。 第一步,打开wamp/scripts/config.inc.php文件,并且将第47行的$wwwDir = $c_installDir.'/www';修改为:$wwwDir = 'X:/xx'; 第二步,修改Apache默认根目录,打开apache的配置文件httpd.conf,将DocumentRoot "D:/wamp/www/"设置为DocumentRoot "X:/xx/",同时将<Directory "D:/wamp/www/">设置为<Directory "X:/xx/">。 这时再重启wamp再去地址栏里输入localhost看下吧。 注意事项:1、很多同学可能忘记设置config.inc.php文件,还请注意一下。 2、如果你设置了虚拟主机,这时最简单的方法就是将其关闭,因为大多数都会在虚拟主机配置文件里设置localhost的虚拟映射,当然,你也可以把虚拟映射设置为新的X:/xx/目录即可。 来源: oschina 链接: https://my.oschina.net/u/252076/blog/222357

What are the php.ini parameters to set for sending email? [duplicate]

做~自己de王妃 提交于 2019-12-03 03:53:23
This question already has answers here : Sending emails with WAMP (6 answers) I want to send email from my PHP code, but I received warning messages. So what are the php.ini parameters to set ? To check/change your PHP mail configuration: Open your php.ini file (if you don't know where this is, see below) Search for the line that reads [mail function] Add/change the details of your mail server. This could be a local mail server or the mail server of your ISP. Save/close the php.ini file Restart your web server An example of what the mail settings could look like when you first open the php.ini

How can I access my localhost server from other computers?

你。 提交于 2019-12-03 03:53:09
问题 I'm new to PHP, so I don't know how to explain it. I'm running WAMP on my computer and I would like to be able to access my localhost from another computer . Is it possible? How can I do this? 回答1: This is provided that all machines are on the same network and that you have administrative privileges on the machines (you'll have to edit some system files). You can easily do this but it would have to be a manual process. You have to create an entry in the hosts file - On Windows machines is is

Wampserver 403 on named virtual hosts outside of /www

本小妞迷上赌 提交于 2019-12-03 03:32:29
Wampserver tells me accessed denied when I try making a virtual host outside of the c:/wamp/www/ directory. I can make one fine within that directory. Even making a symbolic link to the folder works, but I would rather not have to use symbolic links. Why doesn't it work? Here is the code I use at the end of httpd.conf NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "c:/wamp/www" ServerName localhost ServerAlias localhost </VirtualHost> <VirtualHost *:80> ServerName local.cascade DocumentRoot c:/wamp/www/cascade/ </VirtualHost> <VirtualHost *:80> ServerName local.md9 ServerAlias local.md9