WYSIWYG md editor SimpleMDE or use some desktop markdown text editor    Home    [ html2markdown ]
Markdown txt 01/001_vbox/001_instalac_moj_xampp_743.txt Parsedown-ed to HTML.    [ Edit text ]    [ Colored text ]

XAMPP instalac on Windows 10 64 bit

2020.03.30

1. C:\Windows\System32\drivers\etc\hosts

#localhost name resolution is handled within DNS itself.

128.127.0.0.1       localhost dev1 https://www.expressvpn.com/       
::1             localhost dev1 https://www.expressvpn.com/      

2. J:\xampp\apache\conf\httpd.conf

Listen 8083
ServerName localhost:8083

...

To see http://dev1:8083/fwphp/www/ (dev1 is apache virtual host) :

<Directory "J:/awww/www/">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Require all granted
</Directory>

Now in J:\xampp\xampp-control.exe :

  1. buttons "Config", "Editor" and "Service and port settings" Apache port 8083
  2. buttons "Start mysql" and "Start Apache"

http://localhost:8083/ shows :
Apache Friends Applications FAQs HOW-TO Guides PHPInfo phpMyAdmin

dev1:8083/phpmyadmin/ shows Server: 127.0.0.1 Database :

  1. information_schema
  2. mysql
  3. performance_schema
  4. phpmyadmin
  5. test

my db-s imporeted

in http://dev1:8083/phpmyadmin/import.php

  1. J:\awww\www\01_DDL_mysql_blog.sql

To see http://dev1:8083/fwphp/www/ (dev1 is apache virtual host) :

3. J:\xampp\apache\conf\extra\httpd-vhosts.conf :

First VirtualHost section is default or fallback virtual host,
used f or all requests that do not match ServerName or ServerAlias
in any \ block.

<VirtualHost *:8083>
   DocumentRoot "/xampp/htdocs/"
   ServerName localhost
</VirtualHost>
#### sets up a virtual host named dev1        
<VirtualHost *:8083>
   DocumentRoot "J:/awww/www/"
   ServerName dev1
</VirtualHost>

Self signed certificate comes with xampp :
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"

To see https://dev1/fwphp/www/ (dev1 is apache virtual host) :
4. J:\xampp\apache\conf\extra\httpd-ssl.conf

SSL Virtual Host Content

<VirtualHost _default_:443>

  DocumentRoot "J:/awww/www"
  ServerName dev1:443
  ServerAdmin slavkoss22@gmail.com
  ErrorLog "J:/xampp/apache/logs/error.log"
  TransferLog "J:/xampp/apache/logs/access.log"

  SSLEngine on

  SSLCertificateFile "conf/ssl.crt/server.crt"
  SSLCertificateKeyFile "conf/ssl.key/server.key"

  <FilesMatch "\.(cgi|shtml|phtml|php)$">
      SSLOptions +StdEnvVars
  </FilesMatch>
  <Directory "J:/xampp/apache/cgi-bin">
      SSLOptions +StdEnvVars
  </Directory>

  BrowserMatch "MSIE [2-5]" \
           nokeepalive ssl-unclean-shutdown \
           downgrade-1.0 force-response-1.0

  CustomLog "J:/xampp/apache/logs/ssl_request.log" \
            "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

<VirtualHost _default_:443>

#   General setup for the virtual host
DocumentRoot "J:/xampp/htdocs"
#ServerName www.example.com:443
ServerName localhost:443
#ServerAdmin admin@example.com
ServerAdmin slavkoss22@gmail.com
ErrorLog "J:/xampp/apache/logs/error.log"
TransferLog "J:/xampp/apache/logs/access.log"

#   SSL Engine Switch:
#   Enable/Disable SSL for this virtual host.
SSLEngine on

SSLCertificateFile "conf/ssl.crt/server.crt"

SSLCertificateKeyFile "conf/ssl.key/server.key"

<FilesMatch "\.(cgi|shtml|phtml|php)$">
    SSLOptions +StdEnvVars
</FilesMatch>
<Directory "J:/xampp/apache/cgi-bin">
    SSLOptions +StdEnvVars
</Directory>

BrowserMatch "MSIE [2-5]" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0

CustomLog "J:/xampp/apache/logs/ssl_request.log" \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

5. Deploy (copy) my xampp or dev1 web site win 10 64 bit to new xampp test site

To see http://dev1:8083/fwphp/www/ :