altervista001b.txt

Category : B12phpfw Written by jazeb On 2017-09-13 12:20:29

Edit post in op. system file altervista001b.txt ⟩⟩
We cre/edit .txt here and del .txt in op.system. TODO: del .txt here).

Edit post data in database table row ⟩⟩


Post summary :

1b. Install Apache, PHP, localhost SSL (https) On Windows 10, all newest 64 bit

Image :

Image description :

$tmp_imgpath=/srv/disk16/3266814/www/phporacle.eu5.net/fwphp/glomodul/post/Uploads/ty.jpg
$tmp_imgurlrel=Uploads/ty.jpg

Post content :

1b. Install Apache, PHP, localhost SSL (https) On Windows 10, all newest 64 bit

HOME
Download config and php test files: 0_Apache24_conf_extra_PHP_ini.zip

Everything works. If I forgot something see URL-s in this article wich served me as tutorials.ZWAMP or simmilar and virtual hosts are not used for this basic example –Apache and PHP are extracted in C: .

Output of C:\Apache24\htdocs\index.php
(see 0_Apache24_conf_extra_PHP_ini.zip) :

Glavni izbornik (Home)

HTML 5, CSS 3, JS, SSL. Help
1111111111 2222222222 3333333333 4444444444 444444 Home refresh(http)
4444444444 4444444444 4444444444 Home https

C:\Apache24\htdocs\index.php says:JS says: location.protocol=https:

https://www.proy.info/how-to-enable-localhost-https-on-wamp-server/
Posted On May 19th, 2017

I did mostly see below Masim Man Dec 1, 2016
1. HOW TO SET UP APACHE WITH SSL (HTTPS) ON LOCALHOST
but URL above has some clearer configs

Step 1: Download and unpack Apache lounge 64 bit (Windows 10 64 bit)
and PHP Version 7.1.9 non thread safe
httpd-2.4.27-Win64-VC15.zip, mod_fcgid-2.3.9-win64-VC15.zip
php-7.1.9-nts-Win32-VC14-x64.zip
SEE HOW TO UNPACK zip-s above :https://www.dionysopoulos.me/233-apache-mysql-php-server-on-windows-with-multiple-simultaneous-php-versions.html
or 0_Apache24_conf_extra_PHP_ini.zip above.

we have C:\Apache24 and C:\PHP\7.1.9

Step 2: Download OpenSSL (32 bits/64 bits Windows)
I did not so, see below Masim Man Dec 1, 2016

Step 3: Configure WAMP to use HTTP+SSL=HTTPS
I did not so, see below Masim Man Dec 1, 2016

Step 4: Create SSL Key and Certificate
I did not so, see below Masim Man Dec 1, 2016

Step 5: Copy the Created SSL Key and Certificate file
I did not so, see below Masim Man Dec 1, 2016

Step 6: Open httpd.conf, php.ini & uncomment
Open C:\Apache24\conf\httpd.conf and uncomment:
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
See whole scripts in .zip above.

Step 7: Open httpd-ssl.conf and make the final changes
Open c:\Apache24\conf\extra\httpd-ssl.conf (see .zip above)
find “<VirtualHost _default_:443>” and below that line find and update below configuration according to your setup:
# General setup for the virtual host
DocumentRoot “c:/Apache24/htdocs”

ServerName www.example.com:443

ServerName localhost:443
ServerAdmin youremail
ErrorLog “c:/Apache24/logs/sslerror.log”
TransferLog “c:/Apache24/logs/sslaccess.log”
SSLEngine on
SSLCertificateFile “c:/Apache24/conf/server.crt”
SSLCertificateKeyFile “c:/Apache24/conf/server.key”
… and so on, see config files in 0_Apache24_conf_extra_PHP_ini.zip.

Open php.ini, uncomment :
extension=php_openssl.dll

Step 8: Test to make sure it works
check if you are getting Syntax is OK
C:\Apache24\bin>httpd -t
https://localhost/index.php

https://www.youtube.com/watchv=Zdl68h_N2lcMasim Man Published on Dec 1, 2016 :

HOW TO SET UP APACHE WITH SSL (HTTPS) ON LOCALHOST

HTTPS (Hyper Text Transfer Protocol Secure) is a protocol for secure communication over a computer network.

Make icon for C:\Windows\SysWOW64\cmd.exe (run as admin). It shows Apache’s openssl:
openssl version -d
OPENSSLDIR: “C:\Program Files\Common Files\SSL”
openssl version
OpenSSL 1.1.0f 25 May 2017

–We create files :
1. C:\Apache24\conf\server.csr <–OpenSSL certificate request
2. C:\Apache24\conf\server.pem <–private key

3. C:\Apache24\conf\server.key <–from .pem
4. C:\Apache24\conf\server.crt <–from .key, .csr
see below :
openssl x509 -req -signkey C:\Apache24\conf\server.key-days 1024 ^
-in C:\Apache24\conf\server.csr-out C:\Apache24\conf\server.crt

00000 –INITIAL
Change config path to where you have installed Apache :
cd C:\Apache24\bin
set OPENSSL_CONF=C:\Apache24\conf\openssl.cnf

11111 & 22222 — ^ = ALTGRKEY+3 (3 two times)
openssl req -config C:\Apache24\conf\openssl.cnf -new ^
-out C:\Apache24\conf\server.csr -keyout C:\Apache24\conf\server.pem
ANSWERS: only two :
writing new private key to ‘C:\Apache24\conf\server.pem’
Enter PEM pass phrase:test1
Common Name (e.g. server FQDN or YOUR name) []:localhost

33333
openssl rsa -in C:\Apache24\conf\server.pem -out C:\Apache24\conf\server.key
ANSWER: Enter pass phrase for C:\Apache24\conf\server.pem:test1
writing RSA key

44444
openssl x509 -req -signkey C:\Apache24\conf\server.key -days 1024 ^
-in C:\Apache24\conf\server.csr -out C:\Apache24\conf\server.crt
Outputs:
Signature ok
subject=C = AU, ST = Some-State, O = Internet Widgits Pty Ltd, CN = localhost
Getting Private key

55555
–C:\Apache24\conf\httpd.conf
search ssl, listen, httpd-ssl and uncomment :
LoadModule log_config_module modules/mod_log_config.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule ssl_module modules/mod_ssl.so

Listen 80

live commented <IfModule mod_ssl.c>

Listen 443

Include conf/extra/httpd-ssl.conf

C:\Apache24\conf\extra\httpd-ssl.conf
SSLSessionCache “shmcb:c:/Apache24/logs/ssl_scache(512000)”

restart Apache
if will not start: as sdmin in CLI
C:\Apache24\bin>httpd -t
or :
NOT httpd.exe -k restart but so:
C:\Apache24\bin>httpd.exe — this shows error message

————– NEEDED FOR MS INET BROWSERS :
https://www.youtube.com/watchv=Hhown6DgC00Masim Man Published on Dec 2, 2016
HOW TO INSTALL AN APACHE SELF SIGNED CERTIFICATE ON WINDOWS 10
On Windows 10, a Self Signed Certificate that wasnt issued by a recognized certificate authority is not trusted by default. A Self Signed Certificates usually used on Local Web Servers (Localhost) that arent available publicly. In this case you are save to
– bypass the warning on any browsers
– or installing it to a trusted root certification authority in Windows 10.
2click C:\Apache24\conf\server.crt
in Certificate dialog Issued to and Issued by is localhost
click button “Install certificate”
for current user
place in store “Trusted root Cert. Authorities”
remove certificate localhost so:
WINKEY -> mmc -> File -> Add/remove snapp-in -> Certificates
-> Add -> My user account

kod edit phpinfo EOKOD; /* call it so: kod_edit_run( $idx // script_dir_path , $idxscript // script_name , MDURL); // web_docroot_url = (Apache) web server URL */ }

TXT AFTER EACH POST : I have odd cosmic thoughts every day

Science is an enterprise that should be cherished as an activity of the free human mind...

Venus has a runaway greenhouse effect. ... we're twiddling knobs here on Earth without knowing the consequences of it. Mars once had running water. Something bad happened there as well.

Comments

Share your thoughts about this post

/srv/disk16/3266814/www/phporacle.eu5.net/fwphp/glomodul/post/Posts.php


      

~~~$pp1->dbg=1~~~/srv/disk16/3266814/www/phporacle.eu5.net/vendor/b12phpfw/ftr.php() , line 119 SAYS:
Coding step c s 0 1. GLOBAL VARIABLES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PHP_OS=Linux, php_uname()=Linux f21.runhosting.com 5.10.138kvmcap #1 SMP Fri Aug 26 07:32:35 UTC 2022 x86_64
$_SERVER['DOCUMENT_ROOT']=/home/www/phporacle.eu5.net
$_SERVER['REQUEST_URI']=/fwphp/glomodul/blog/?i/read_post/id/37
$_SERVER['QUERY_STRING']=i/read_post/id/37
$_SERVER['HTTP_HOST']=phporacle.eu5.net
OS doc root adress is $this->p p 1->wsroot_ path=/srv/disk16/3266814/www/phporacle.eu5.net
Same web server doc root adress is $this->p p 1->wsroot_ url=http://phporacle.eu5.net/

Module property pallete like in Oracle Forms :
$this->p p 1
=stdClass Object ( [module_version] => Blog Msg MySQL 10.0.3.0 Feb. 2023 [dbg] => 1 [dbicls] => Db_allsites [stack_trace] => Array ( [0] => Array ( [0] => /srv/disk16/3266814/www/phporacle.eu5.net/fwphp/glomodul/blog/index.php, lin=31 ) [1] => /srv/disk16/3266814/www/phporacle.eu5.net/vendor/b12phpfw/Autoload.php, lin=25 (B12phpfw\core\b12phpfw\Autoload::__construct) ) [dir_apl] => glomodul [wsroot_path] => /srv/disk16/3266814/www/phporacle.eu5.net [shares_path] => /srv/disk16/3266814/www/phporacle.eu5.net/vendor/b12phpfw [site_path] => /srv/disk16/3266814/www/phporacle.eu5.net/fwphp [module_path] => /srv/disk16/3266814/www/phporacle.eu5.net/fwphp/glomodul/blog [shared_dbadapter_obj] => B12phpfw\core\b12phpfw\Db_allsites Object ( [errmsg:B12phpfw\core\b12phpfw\Db_allsites:private] => ) [rblk] => 10 [Home_ctr_obj] => B12phpfw\module\blog\Home_ctr Object ( [pp1:B12phpfw\core\b12phpfw\Config_allsites:private] => stdClass Object *RECURSION* ) [uriq] => stdClass Object ( [i] => read_post [id] => 37 [HELP_ROUTING_AND_URL_QUERY] => ~~~~~~~~~~~~~~~~~ properties = key-keyvalue pairs : LINKALIAS => ?i/HOME_METHOD_TO_CALL/param1/param1value... (? is QS=Query Separator) 1. LINKALIAS 2. URLurlqrystring 3. Router (Config_allsites) extracts (from 2.) IN VIEW SCRIPT IN Home_ ctr CALLED METHOD IN Home_ ctr ,'cre_row_frm' => QS.'i/cc/' METHOD cc or cre_row_frm or... ,'home_url' => QS.'i/home/' METHOD home : key="i", value="home" ,'ldd_category' => QS.'i/del_category/id/' id value we assign in view script after $ p p 1->ldd_category ,'loginfrm' => QS.'i/loginfrm/' METHOD loginfrm (or include script) ,'login' => QS.'i/login/' METHOD login ) [HELP_STATES_ATTRIBUTES] => F O R $_S E S ARR. (D B S H E M A...) ~~~~~~~~~~~~~~~~~ [cncts] => stdClass Object ( ) [states] => stdClass Object ( ) [HELP_PATHS_IN_UTL_CLS] => cs02. R O U T I N G - A D R E S S E S in Config_ allsites.php ~~~~~~~~~~~~~~~~ [wsroot_url] => http://phporacle.eu5.net/ [shares_url] => http://phporacle.eu5.net/vendor/b12phpfw/ [img_url] => http://phporacle.eu5.net/vendor/b12phpfw/img/ [lang] => en [uri_qrystring] => i/read_post/id/37 [uri_qrystring_arr] => Array ( [0] => i [1] => read_post [2] => id [3] => 37 ) [uri_arr] => Array ( [0] => /fwphp/glomodul/blog/ [1] => i/read_post/id/37 ) [module_relpath] => fwphp/glomodul/blog [module_url] => http://phporacle.eu5.net/fwphp/glomodul/blog/ [site_url] => http://phporacle.eu5.net/fwphp/ [LINK_ALIASES] => $ p p 1->LINK_ALIAS => HOME METHOD TO CALL ~~~~~ eg1: in view script href="<?=$pp1->home_blog?>" calls home method in Home_ctr so : QS."i/home_blog/"~~~~~ where QS is question mark ("?") = urlQuerySeprator [home_blog] => ?i/home/ [home] => ?i/home/ [sitehome] => ?i/sitehome/ [ldd_category] => ?i/del_category/id/ [ldd_admins] => ?i/del_admins/id/ [ldd_posts] => ?i/del_posts/id/ [ldd_comments] => ?i/del_comments/id/ [filter_page] => p/ [admins] => ?i/admins/ [loginfrm] => ?i/loginfrm/ [login] => ?i/login/ [logout] => ?i/logout/r/i|loginfrm| [read_user] => ?i/read_user/id/ [upd_user_loggedin] => ?i/upd_user_loggedin/r/i|upd_user_loggedin|id| [categories] => ?i/categories/ [posts] => ?i/posts/ [filter_postcateg] => ?i/filter_postcateg/c/ [addnewpost] => ?i/addnewpost/ [read_post] => ?i/read_post/ [editpost] => ?i/editpost/ [edmkdpost] => ?i/edmkdpost/ [readmkdpost] => ?i/readmkdpost/ [comments] => ?i/comments/ [upd_comment_stat] => ?i/upd_comment_stat/ [kalendar] => ?i/kalendar/ [about_us] => ?i/about/ [contact_us] => ?i/contact/ [features] => ?i/features/ ) $_ GET=Array ( [i/read_post/id/37] => ) $_POST=Array ( ) $_SESSION=Array ( [SuccessMessage] => Array ( ) [ErrorMessage] => Array ( ) )

/srv/disk16/3266814/www/phporacle.eu5.net/vendor/b12phpfw/ftr.php() , line 150 SAYS:
Coding step c s 0 2. R O U T I N G ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$_SERVER['REQUEST_URI'] =/fwphp/glomodul/blog/?i/read_post/id/37

$p p1->uri_ arr is exploded string $_SERVER['REQUEST_URI'] (part1 before QS=? and part2 after QS)
part1 index 0 is $p p 1->module_ relpath=fwphp/glomodul/blog
part2 index 1 is $p p 1<>uri_ qrystring = key-value pairs ee = url parameters after QS = i/read_post/id/37
$this->p p1->uri_ arr=Array ( [0] => /fwphp/glomodul/blog/ [1] => i/read_post/id/37 )

EXPLODED $p p1->uri_ qrystring (on /) is $this->p p1->uri_ qrystring_ arr=Array ( [0] => i [1] => read_post [2] => id [3] => 37 )
method in Home_ ctr and method parameters : $p p 1->u r i q=stdClass Object ( [i] => read_post [id] => 37 [HELP_ROUTING_AND_URL_QUERY] => ~~~~~~~~~~~~~~~~~ properties = key-keyvalue pairs : LINKALIAS => ?i/HOME_METHOD_TO_CALL/param1/param1value... (? is QS=Query Separator) 1. LINKALIAS 2. URLurlqrystring 3. Router (Config_allsites) extracts (from 2.) IN VIEW SCRIPT IN Home_ ctr CALLED METHOD IN Home_ ctr ,'cre_row_frm' => QS.'i/cc/' METHOD cc or cre_row_frm or... ,'home_url' => QS.'i/home/' METHOD home : key="i", value="home" ,'ldd_category' => QS.'i/del_category/id/' id value we assign in view script after $ p p 1->ldd_category ,'loginfrm' => QS.'i/loginfrm/' METHOD loginfrm (or include script) ,'login' => QS.'i/login/' METHOD login )