File: fwphp/glomodul/mkd/01/001_vbox/001_instalac_moj_xampp_743.txt

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/glomodul/mkd/01/001_vbox/001_instalac_moj_xampp_743.txt  >  Download  
File: fwphp/glomodul/mkd/01/001_vbox/001_instalac_moj_xampp_743.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change: ver 7.0.1 mnu, msg, mkd FUNCTIONAL namespaces, CRUD PDO trait, pretty URL-s
Date: 2 months ago
Size: 3,827 bytes
 

Contents

Class file image Download
## 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) :
```xml
<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 \<VirtualHost> block.      
```xml
<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

```xml
<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/ :
For more information send a message to info at phpclasses dot org.