add_action('wp_footer', function () { echo ''; }, 99); add_action('wp_footer', function () { echo ''; }, 99); wamp Archives - Coding Sips https://www.codingsips.com/tag/wamp/ small but important coding tips Thu, 23 Mar 2023 08:42:04 +0000 en-US hourly 1 https://wordpress.org/?v=7.0.9 https://www.codingsips.com/wp-content/uploads/2016/12/favicon.png wamp Archives - Coding Sips https://www.codingsips.com/tag/wamp/ 32 32 Configure HTTPS using SSL certificate on WAMP local server https://www.codingsips.com/configure-https-using-ssl-certificate-on-wamp-local-server/ https://www.codingsips.com/configure-https-using-ssl-certificate-on-wamp-local-server/#respond Sun, 13 Mar 2022 12:03:47 +0000 https://www.codingsips.com/?p=879 In this blog you will learn step by step how to configure HTTPS using SSL certificate on WAMP local server at any of your project. Here you will also learn how to serve your local websites with domains names like project1.com project2.com or for detailed virtual-host configuration go to my another blog create-virtual-hosts-apache-wamp-xamp lets start HTTPS SSL configuration.   Requirements […]

The post Configure HTTPS using SSL certificate on WAMP local server appeared first on Coding Sips.

]]>
In this blog you will learn step by step how to configure HTTPS using SSL certificate on WAMP local server at any of your project.

Here you will also learn how to serve your local websites with domains names like project1.com project2.com or for detailed virtual-host configuration go to my another blog create-virtual-hosts-apache-wamp-xamp

lets start HTTPS SSL configuration.

 

  1. Requirements for SSL configuration

    You should have below 2 certificate files

    1. Certificate.cer or certificate.crt
    2. private.key

    If you already have certificate files then skip steps [2,3,4] and just to step#5 .

  2. Install openSSL

    Install open SSL from Here

  3. Generate Private key

    Open terminal as an Administrator and goto openssl installation path by typing below commad

    cd C:\Program Files\OpenSSL-Win64\bin then enter below command and enter a password 2 times openssl genrsa -aes256 -out private.key 2048 and then enter below command and enter same password you entered in previous step. openssl rsa -in private.key -out private.key
  4. Create SSL Certificate

    Enter below command and enter real or dummy company information

    openssl req -new -x509 -nodes -sha1 -key private.key -out certificate.crt -days 36500

    You have to provide below information

    Country Name (2 letter code) [AU]:AE State or Province Name (full name) [Some-State]:Abu Dhabi Locality Name (eg, city) []:Madinat Zayed Organization Name (eg, company) [Internet Widgits Pty Ltd]:alampk.com Organizational Unit Name (eg, section) []:IT Common Name (e.g. server FQDN or YOUR name) []:alampk.com Email Address []:alamnaryab@gmail.com
  5. Move SSL Certificate files

    copy both certificate files to D:\wamp64\bin\apache\apache2.4.46\conf

  6. Changes in httpd.conf

    open httpd.conf file from D:\wamp64\bin\apache\apache2.4.46\conf\httpd.conf and uncomment below lines

    LoadModule ssl_module modules/mod_ssl.so Include conf/extra/httpd-ssl.conf LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
  7. Changes in httpd-ssl.conf

    Open httpd-ssl.conf file from D:\wamp64\bin\apache\apache2.4.46\conf\extra\httpd-ssl.conf and update the following linkes as per path where you have pasted 2 certificate files.

    DocumentRoot "${INSTALL_DIR}/www" ServerName localhost:443 ServerAdmin alamnaryab@gmail.com SSLCertificateKeyFile "${SRVROOT}/conf/key/private.key" SSLCertificateFile "${SRVROOT}/conf/key/certificate.crt" SSLSessionCache "shmcb:${SRVROOT}/logs/ssl_scache(512000)" CustomLog "${SRVROOT}/logs/ssl_request.log" \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
  8. Make a virtual host

    SSLEngine on SSLCertificateFile "${SRVROOT}/conf/key/certificate.crt" SSLCertificateKeyFile "${SRVROOT}/conf/key/private.key" ServerName mydomain.com ServerAlias mydomain.com DocumentRoot "D:\wamp64\www\myproject" Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require all granted
  9. Changes in Host file

    Open notepad with Run as Administrator and open host file from C:\WINDOWS\System32\drivers\etc
    add below line, note domain name must be same as you mentioned in vhosts file

    127.0.0.1 mydomain.com
  10. Restart WAMP Server

  11. Test websites

    try opening your website in browser with https protocol eg

    https://mydomain.com
  12. Errors Handling

    If there is any error you can find it by any of below methods

    1. In CMD goto D:\wamp64\bin\apache\apache2.4.46\bin and run httpd -t
    2. Check log files
    3. I faced an issue that was because of forward-slash instead of back-slah as path separator. So use (/ instead of \) in certificate paths in vhost file
    4. Google or commenting your error in this blog

The post Configure HTTPS using SSL certificate on WAMP local server appeared first on Coding Sips.

]]>
https://www.codingsips.com/configure-https-using-ssl-certificate-on-wamp-local-server/feed/ 0
WAMP Server Always Orange https://www.codingsips.com/wamp-server-always-orange/ https://www.codingsips.com/wamp-server-always-orange/#respond Sat, 24 Dec 2016 09:12:40 +0000 http://blog.alampk.com/?p=189 Some times we install some applications or software which uses port 80 thats why WAMP Server always remains Orange, mostly Skype uses port 80 if you try quit skype and restart all services in WAMP Server, it will run successfully. if this method worked than it is confirm it is port 80 issue with skype. Now you have 2 options […]

The post WAMP Server Always Orange appeared first on Coding Sips.

]]>
Some times we install some applications or software which uses port 80 thats why WAMP Server always remains Orange, mostly Skype uses port 80 if you try quit skype and restart all services in WAMP Server, it will run successfully. if this method worked than it is confirm it is port 80 issue with skype.

Now you have 2 options to run both skype and WAMP server at same time.

  1. Prevent skype to use port 80
  2. Use some different port for WAMP Server

1- Prevent Skype to use port 80

skype port
Follow these steps

  1. Open Skype
  2. Goto Tools menu
  3. Click Options Menu
  4. Select Advanced tab
  5. Click Connection
  6. In Connection setting uncheck
    Use port 80 and 443 for additional incoming connections

that’s it. Now you can run your WAMP Server without any errors.

2- Use some different port for WAMP Server

wamp port changing

Goto the following path

C:\wamp\bin\apache\apache2.4.9\conf

Yours path may be a little different based on which version you are using.
Open httpd.conf file in some editor like notepad++
Search word Listen
change 80 to 81 or 82 0r 83 or 8080 as showing in above snap
save the file
restart all services in WAMP Server

now it will run successfully but you will have to access it your provided port
Like if you have select port 81 then your localhost will open with localhost:81

Hope this will work for you. if this method didn’t solve your problem than you might have some other issue, google your warning and get your Server running. fell free to post your questions, I will try my best to answer you and help you out running your Server.

Always help your friends in such issues this will give you good experience and knowledge of troubleshooting, because you will encounter different type of issues and make solution for it.

The post WAMP Server Always Orange appeared first on Coding Sips.

]]>
https://www.codingsips.com/wamp-server-always-orange/feed/ 0