wampserver

After having installed WAMP, php files download when accessed through the browser instead of being run

拈花ヽ惹草 提交于 2019-12-05 00:22:36
After having installed WAMP, I successfully accessed http://localhost/index.php which is the WAMP index page. So Apache is working properly. I then copied my code into C:/wamp/www/mycode/ and tried to access it through http://localhost/mycode/somepage.php . Instead of running the script it downloads it at this point. Moving the files to C:/wamp/www/somepage.php works perfectly fine though, so for some reason it won't allow me to have files in a subdirectory of the root folder. My httpd.conf file includes the following types and handlers: AddType application/x-compress .Z AddType application/x

WAMPserver, two php.ini files

喜你入骨 提交于 2019-12-05 00:21:02
I was looking for a way to change the max file size in phpmyadmin (mysql imports). I solved it after discovering there were two php.ini files : one is located at C:\wamp\bin\apache\Apache2.4.4\bin considering the default install path, while the other one is at C:\wamp\bin\php\php5.4.16. The funny aspect here is that, when I want to change variables, I should pay attention to the apache/-located php.ini file, instead of the php/-located one. And here comes my question: why ? Why are there two php.ini files instead of one? I must even look at both files, depending on what do I need to change

WAMP server not running after enabling httpd-vhosts.conf

本秂侑毒 提交于 2019-12-04 17:35:48
问题 I tried enabling Virtual Host on my WAMP installation, but WAMP server will not run if I enable http-vhosts.conf, and the icon remains orange. Here is my hosts file: 127.0.0.1 localhost 127.0.0.1 test.localhost My httpd.conf: # Virtual hosts Include conf/extra/httpd-vhosts.conf and my httpd-vhosts.conf: <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot "c:/wamp/www" ServerName localhost ErrorLog "logs/localhost-error.log" CustomLog "logs/localhost-access.log" common <

Connect to localhost from another computer in network

a 夏天 提交于 2019-12-04 16:58:17
I have installed WAMP on one computer, and I want to connect to the phpmyadmin from another one. When I type, in a browser, 192.168.1.2/localhost i got following message: Forbidden You don't have permission to access /localhost on this server. I have changed this line in Apache: <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Allow from all * from deny from all </Directory> How can I fix this? You should try it without localhost . So if you access phpmyadmin on localhost as localhost:8080/phpmyadmin then you should do 192.168.1.2:8080/phpmyadmin UPDATE: Change the file

Create an Alias Directory inside a Virtual Host

最后都变了- 提交于 2019-12-04 15:56:11
问题 I checked here, here, here, here, and here before asking this question. I guess my search skills are weak. I am using the WampServer version 2.2e . I have a need like, I need a virtual path inside a virtual host. Let me say the two hosts that I have. Primary Virtual Host (Localhost) NameVirtualHost *:80 <VirtualHost *:80> ServerName localhost DocumentRoot "C:/Wamp/www" </VirtualHost> My Apps Virtual Hosts <VirtualHost *:80> ServerName apps.ptrl DocumentRoot "C:/Wamp/vhosts/ptrl/apps" ErrorLog

CodeIgniter: Removing “index.php” in URL on WAMP

末鹿安然 提交于 2019-12-04 14:53:22
In CodeIgniter, I want to remove the "index.php" in the URL, on my localhost (WAMP). For example, http://localhost.com/ci/index.php/controller/function to http://localhost.com/ci/controller/function I have changed $config['index_page'] = 'index.php'; to $config['index_page'] = ''; My .htaccess file (which is located in the root directory, where the index.php lies) is as follows: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /igniter #Removes access to the system folder by users. #Additionally this will allow you to create a System.php controller, #previously this would not have been

Apache on WampServer Keeps Crashing

本秂侑毒 提交于 2019-12-04 14:15:57
I run a medium traffic website that seems to be crashing all the time and I have to restart because it either doesn't load or cloudflare displays 520 error. Anyway I have searched up this error and they say to enable KeepAlive, but I haven't seen that option in the httpd.conf. My server info ( Yes I know linux is useful but I am using many windows softwares on my server computer as well ). I am running apache that is integrated with wamp server. 8GB of RAM and i7-2600, so it's a fast enough server. Fast enough Bandwidth as well. Here is the error log, let me know if you need any more info,

how to reset wamp server password

三世轮回 提交于 2019-12-04 13:05:00
I've put the password in the main phpmyadmin and not one of the databases. How can I even access it if can't even have the chance to input the password. Take a look at reseting the MySQL root password here . UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root'; FLUSH PRIVILEGES; First check if you assigned empty password. There is a high probability not to assign password when you install locally. Darkcoder solution is on this page wamp server mysql user id and password 来源: https://stackoverflow.com/questions/2211725/how-to-reset-wamp-server-password

Virtual Host with WAMP

帅比萌擦擦* 提交于 2019-12-04 11:47:46
I'm using Wamp 2.2, edited conf/extra/httpd-vhosts.conf edited this file to add VirtualHosts , but when I un-commented line in httpd.conf to include httpd-vhosts.conf file, after restarting Wamp doesn't starts. If I revert changes is works fine. Any ideas why is this happening? This is code I'm using in httpd-vhost.conf : <VirtualHost *> ServerAdmin admin@localhost.com DocumentRoot "C:/wamp/www" # change this line with your htdocs folder ServerName localhost ServerAlias localhost <Directory "C:/wamp/www"> Options Indexes FollowSymLinks Includes ExecCGI Order allow,deny Allow from all <

Error when installing WampServer

孤人 提交于 2019-12-04 10:34:42
问题 hi i am installing wampserver3 addon php 7.0.13 in my computer. Every time i am trying to install i got the following error:- "The installation folder chosen (%1) in not that of the Wampserver. Select the installation folder of wampserver." i am also attaching a screenshot of the following error. kindly help me to resolve this issue. thanks 回答1: That's because you are NOT actually installing WampServer, but its PHP add-on. If you used Google to find it, you probably downloaded and installed