WAMP 403 Forbidden message on Windows 7

The access to your Apache server is forbidden from addresses other than 127.0.0.1 in httpd.conf (Apache’s config file) : <Directory “c:/wamp/www/”> Options Indexes FollowSymLinks AllowOverride all Order Deny,Allow Deny from all Allow from 127.0.0.1 </Directory> The same goes for your PHPMyAdmin access, the config file is phpmyadmin.conf : <Directory “c:/wamp/apps/phpmyadmin3.4.5/”> Options Indexes FollowSymLinks MultiViews AllowOverride … Read more

Accessing localhost (xampp) from another computer over LAN network – how to?

Localhost is just a name given for the loopback, eg its like referring to yourself as “me” .. To view it from other computers, chances are you need only do http://192.168.1.56 or http://myPcsName if that doesnt work, there is a chance that there is a firewall running on your computer, or the httpd.conf is only … Read more

How to automatically redirect HTTP to HTTPS on Apache servers?

I have actually followed this example and it worked for me 🙂 NameVirtualHost *:80 <VirtualHost *:80> ServerName mysite.example.com Redirect permanent / https://mysite.example.com/ </VirtualHost> <VirtualHost _default_:443> ServerName mysite.example.com DocumentRoot /usr/local/apache2/htdocs SSLEngine On # etc… </VirtualHost> Then do: /etc/init.d/httpd restart

Lost httpd.conf file located apache [closed]

Get the path of running Apache $ ps -ef | grep apache apache 12846 14590 0 Oct20 ? 00:00:00 /usr/sbin/apache2 Append -V argument to the path $ /usr/sbin/apache2 -V | grep SERVER_CONFIG_FILE -D SERVER_CONFIG_FILE=”/etc/apache2/apache2.conf” Reference: http://commanigy.com/blog/2011/6/8/finding-apache-configuration-file-httpd-conf-location

Error message “Forbidden You don’t have permission to access / on this server” [closed]

Update October 2016 4 years ago, since this answer is used as a reference by many, and while I learned a lot from security perspective during these years, I feel I am responsible to clarify some important notes, and I’ve update my answer accordingly. The original answer is correct but not safe for some production … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)