PHP infrastructure powered by Websoft9(WAMPServer)
Jun 28, 2024
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
SSLEngine on
SSLCertificateFile "C:/websoft9/wampserver/apps/cert/cert.pem"
SSLCertificateKeyFile "C:/websoft9/wampserver/apps/cert/key.pem"
SSLCertificateChainFile "C:/websoft9/wampserver/apps/cert/chain.
7. Modify the information related to you,then save it
ServerName #main domain
DocumentRoot # appsdirectory,e.g:C:/websoft9/wampserver/www/wordpress
Directory #apps directory
SSLCertificateFile
SSLCertificateKeyFile
SSLCertificateChainFile
8. Restart the service
FAQ for apply CA
Precautions for apply the CA:
Most of the time,free CA is used on the detailed domain name,e.g:
buy.example.com,next.buy.example.com
example.com Is a wildcard domain name and cannot be used to apply
for a free certificate
You should complete the Domain Name Resolution before apply the
CA,because the CA will binding the IP.If you change the DNS,the CA is
unavailable
How to set Domain Name?
You need do complete two steps on this ASP.NET Stack for using Domain
Name to visit your site:
Step1: Domain Name Resolution
Domain Name Resolution indicates the way your domain names are
resolved to their mapped IP address. The majority of resolutions from
domain names to IP addresses are done through a procedure called DNS.After the resolution, the domain name can be used to access Internet in a
much more convenient way.
You can use Alibaba Cloud DNS in sync with the Domain service. Alibaba
Cloud DNS provides authoritative DNS servers and DNS management
services.
1. Login Cloud Console->DNS Settings->Add Record,set Domain
Resolution:
2. The type is A record,host is your sub domain,value is your Internet IP
Address.Confirm it
Host use @ to exactly match the original domain name (for example,
yourdomain.tld).
3. After the Domain Name Resolution please waite for some time until
it’s useful(This time is different for different provider of Domain,from 1
minute to 24h)
Note:Please clear the browser cache when Domain Name Resolution is
useful but you browser seem is also feedback the old contents of your site
Step1: Binding Domain on WAMPServer
If you use the WAMPServer,please remote to your Server.Open the http-
vhosts.conf file,modify the ServerName,ServerAlias to you.then restart all
service.
If you have use the Alias,please modify the ServerName and ServerAlias
Backup & RestoreRoutine backup (archives) of the database and application setup is
essential to ensure failover is smooth.
Backup is based on the server snapshot automatic backup,manual local
backup,using plugin to backup in three ways, three of which have their
own advantages and disadvantages, it is recommended to use together
Automatic Backup by Snapshot of Server
IaaS provider have the “snapshot” function for Server, the snapshot is for the
server disk. Snapshot tool can record the specified point in time the hard
disk data, all backed up, and can achieve a key recovery.
If you have an automatic snapshot of the disk settings, the following scenes
you can be more calm face:
Work a few days of the results, was mistakenly deleted
Hackers damage your site
The content has been messed up
Done a snapshot backup, a key to restore to the backup point of time state.
That is, on-site reduction, very good function.
Different cloud vendor snapshot settings slightly different, specific
reference:
How to use Alicloud snapshot?
(https://www.alibabacloud.com/help/doc-detail/25455.htm)
Restore
If you have Snapshot of Server,you can restore all the data by click on
button
How to upgrade PHP?
Refer to:https://stackoverflow.com/questions/31804864/how-to-upgrade-
safely-php-version-in-wamp-server
How to install PHP extension
Open the WAMPServer->PHP->PHP Extension,select the extension you
want to enable.If there no extension you need ,you download the dll file
to C:\websoft9\wampserver\bin\php\php*\ext folder and “Restart all
servivces” to add more extension
FAQ
How to set the phpMyAdmin allowed only on 127.0.0.1?
This Image have enable the phpMyAdmin remote visit default,if you want
to shut down it,please modify the
file:C:\websoft9\wampserver\alias\phpmyadmin.conf
find the code section
#Require local
Require all granted
modify it to
Require local
#Require all granted
then Restart all the Service of WAMPServer
How to switch the php version?
Open the WAMPServer->PHP->PHP Version,select the version you want to
use,then Restart all the service
WAMPServer Official documents
Home:http://www.wampserver.com/?lang=en
(http://www.wampserver.com/?lang=en)
Forum:http://forum.wampserver.com/ (http://forum.wampserver.com/)
Postscript
This document is original from Websoft9.In order to ensure the seriousness
and usability of the documentation, no one may misappropriate or modify
the second distribution. The need for friends reproduced please mark the
source, otherwise we reserve the right to give legal action.
We will periodically update the documentation. Please visit the online
documentation for the latest version
This document URL: http://en.websoft9.com/xdocs/wampserver-image-
guide/ (http://en.websoft9.com/xdocs/wampserver-image-guide/)
Support & Partnership: http://en.websoft9.com (http://en.websoft9.com/)
Websoft9">