Ok this is a long one so get relaxed.
Note: the software in this tutorial are mutil-platform tool BUT this tutorial is for windows
Well first you need a server. I will be using Abyss Web server that can be downloaded for free.
Run the installer and make sure all components are checked to be installed.
When prompted about startup config you can pick what right for you.
Note: i don't recommend installing it as a Windows service because there is no GUI when it is running as a service
Then run the server if it is not running.
Once a config file has be created it will tell to access console click OK
You should now be at a page asking you for your lang. Click the one you want
Now you must make a username and password for your server's config page
Then login with the user/pass you set
Now you can look around and change what setting you wish
Note: If you are unsure about a setting click the the yellow Question make next to it's name to see it's use/impact
Note: SSL/TSL will be covered near the end of this
Note: Navgate your self to http://127.0.0.1:9999/hosts/host@0/edit/general Set Documents Path to a folder that you can find the folder you set will be the root of your site
To test to see if your site is working goto your site's root then create a file called test.txt the put what ever you want in that file
Then point your browser to http://127.0.0.1/test.txt
If you don't see the file look back make sure you followed it.
PHP!!!
Ok you got a server that can dish up HTML but what about PHP
Well you can download a PHP 5.2.2 install from here
Install.
Now you can configure your own php.
Goto where you installed php (C:\Program Files\PHP5)
then open php.ini in your text editor (note pad)
don't worry the first time i saw a php.ini file i was frecked out
I will go over some options that you should change ( make sure that there is no ; in front of it if you change it's value)
output_handler:this will change if content is Gziped if you are going to run a site off of this server change to ob_gzhandler
safe_mode: must be off for most scripts to run
max_execution_time : is the amount of time a script can take to produce some output before it is stopped ( recommended is 32 )
memory_limit : the amount of memory a script can take. ( reommended is 12M )
post_max_size: the amount of POST data that will be handled by PHP ( 1M is alot)
magic_quotes_gpc: turn on if a script needs it ( it is off due to some security issues)
PHP Extensions can be set in php.ini to enable an Extensions delete the ; in front of it. to disable it put a ; in front of it
extension=php_mbstring.dll
extension=php_bz2.dll
extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mcrypt.dll
extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_mssql.dll
:extension=php_msql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pgsql.dll
extension=php_shmop.dll
;extension=php_snmp.dll
extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
extension=php_soap.dll
;extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_informix.dll
;extension=php_pdo_mssql.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
Note: if you are going to use this web server then i recommend installing Zend Optimizer and ioncube loader
Perl can be found here
MySQL can be downloaded from http://dev.mysql.com/downloads/
GUI tools are highly recommended
I know it is not safe but run MySQL on the root account
I recommend phpmyadmin for MySQL DB creation
For SSL do the folowing
Now to make you sire visable to the world you must open port 80 is using HTTP or port 443 if using HTTPS
Don't forget to unblock/permit in you firewall
Port forwding for you router can be found here
Thanks pls reply and
if this was helpful
Note: the software in this tutorial are mutil-platform tool BUT this tutorial is for windows
Well first you need a server. I will be using Abyss Web server that can be downloaded for free.
Run the installer and make sure all components are checked to be installed.
When prompted about startup config you can pick what right for you.
Note: i don't recommend installing it as a Windows service because there is no GUI when it is running as a service
Then run the server if it is not running.
Once a config file has be created it will tell to access console click OK
You should now be at a page asking you for your lang. Click the one you want
Now you must make a username and password for your server's config page
Then login with the user/pass you set
Now you can look around and change what setting you wish
Note: If you are unsure about a setting click the the yellow Question make next to it's name to see it's use/impact
Note: SSL/TSL will be covered near the end of this
Note: Navgate your self to http://127.0.0.1:9999/hosts/host@0/edit/general Set Documents Path to a folder that you can find the folder you set will be the root of your site
To test to see if your site is working goto your site's root then create a file called test.txt the put what ever you want in that file
Then point your browser to http://127.0.0.1/test.txt
If you don't see the file look back make sure you followed it.
PHP!!!
Ok you got a server that can dish up HTML but what about PHP
Well you can download a PHP 5.2.2 install from here
Install.
Now you can configure your own php.
Goto where you installed php (C:\Program Files\PHP5)
then open php.ini in your text editor (note pad)
don't worry the first time i saw a php.ini file i was frecked out
I will go over some options that you should change ( make sure that there is no ; in front of it if you change it's value)
output_handler:this will change if content is Gziped if you are going to run a site off of this server change to ob_gzhandler
safe_mode: must be off for most scripts to run
max_execution_time : is the amount of time a script can take to produce some output before it is stopped ( recommended is 32 )
memory_limit : the amount of memory a script can take. ( reommended is 12M )
post_max_size: the amount of POST data that will be handled by PHP ( 1M is alot)
magic_quotes_gpc: turn on if a script needs it ( it is off due to some security issues)
PHP Extensions can be set in php.ini to enable an Extensions delete the ; in front of it. to disable it put a ; in front of it
extension=php_mbstring.dll
extension=php_bz2.dll
extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mcrypt.dll
extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_mssql.dll
:extension=php_msql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pgsql.dll
extension=php_shmop.dll
;extension=php_snmp.dll
extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
extension=php_soap.dll
;extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_informix.dll
;extension=php_pdo_mssql.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
Note: if you are going to use this web server then i recommend installing Zend Optimizer and ioncube loader
Perl can be found here
MySQL can be downloaded from http://dev.mysql.com/downloads/
GUI tools are highly recommended
I know it is not safe but run MySQL on the root account
I recommend phpmyadmin for MySQL DB creation
For SSL do the folowing
Abyss Web site said:* Open the console.
* Select SSL/TLS Certificates.
* Press Add in the Private Keys table.
* Enter a name of your choice for the new key you'll generate. For example, enter console_key in Name.
* Set Action to Generate.
* Set Type to RSA 2048 bit to have the best level of security.
* Press OK.
Abyss Web Server will spend a few seconds to compute the new key. If your computer is slow or overloaded, generating a key could need up to a minute.
Generating a self-signed certificate
* Press Add in the Certificates table.
* Enter a name of your choice for the new certificate which will be generated. For example, enter test_cert in Name.
* Set Private Key to the key you have just generated.
* Set Type to Self-Signed certificate.
* Enter the name of the site in Host Name (Common Name). For example, if your site is to be accessed using https://www.example.com, enter www.example.com and not example.com.
* Fill the other fields with your information: These will be included in the self-signed certificate. Note that the 2-letter code of the United Kingdom is GB. For a detailed list of country codes, please refer to the official ISO 3166-1-alpha-2 codes listing.
* Press OK.
* Press OK one more time to leave the SSL/TLS Certificates dialog.
Assigning the certificate to a host
If you are using Abyss Web Server X1
* Press Configure in the Hosts table.
* Select General.
* Set Protocol to HTTPS.
* Set HTTPS Port to 443 (its default value) or to another value if that port is already used by another application.
* Select the certificate you've just generated in Certificate.
* Press OK.
* Press Restart.
If you are using Abyss Web Server X2
You can add a new host which Protocol is HTTPS or HTTP+HTTPS and which Certificate is set to the certificate you have just created.
Alternatively, you can edit an already declared host, change its Protocol from HTTP to HTTPS or HTTP+HTTPS, and choose the certificate you have just created to be used by it.
Testing the SSL-enabled host
Now try accessing your site using https://SITE instead of http://SITE.
The browser will open a warning dialog where it asks you to confirm that you really want to access that URL which has a certificate signed by an unknown authority (which is you in that case).
Confirm that you still want to access and your browser will display the site properly. You will also notice that the page is secured (a padlock will be displayed in the status bar or your address bar color will be altered).
Note about the Protocol field
If Protocol is set to HTTPS, the host will only be accessible using https://SITE.
If Protocol is set to HTTP+HTTPS, the host will be accessible using both http://SITE and https://SITE. HTTP+HTTPS is only available in the professional edition Abyss Web Server X2.
Note about the security of self-signed certificates
A site using a self-signed certificate offers the same security as a site using a certificate signed by a certification authority since the encryption is private key dependent only. But consider that self-signed certificates cannot be trusted by visitors who do not know you. So use them only for tests or for sites which access is limited and which visitors trust you (for example in an Intranet or for a family Web site).
Now to make you sire visable to the world you must open port 80 is using HTTP or port 443 if using HTTPS
Don't forget to unblock/permit in you firewall
Port forwding for you router can be found here
Thanks pls reply and
Last edited: