Getting Started
Pointing to Our Servers.
If the Domain Name Server is to be ours, whereby the website is hosted on our server, then you will need to login to your Domain Admin and set the nameservers as
- ns10565.dizinc.com
- ns10566.dizinc.com
This is our hostdime.com where we have been customers of their shared hosting plan since May 2005.
Setup Subdomain preview.[yourwebsite.com]
(if our's is not your DNS server)
- go to your domain host
- create an A record for the subdomain
- give the IP as 198.136.61.225
Setting up Environment
- Create folder D:\[YourProject]\Magique\
- Install git and tortoisegit so code can be managed
- Download the bitbucket/amadeusweb/amadeus/ and YOUR PROJECT after entering the bitbucket app key (Create a bitbucket.org account / use amadeuswebdev)
- install php with command line below which uses chocolatey on windows or on mac
- Make a batch file called run-web.bat in the web folder with "php -S localhost:80" after making sure Skype or anything else is not using port 80
- Open localhost in the browser and it should show the folder contents.
- Extract the theme assets (see below) that your site is using - for Amadeus, this is biz-land (see cms.php).
- Open amadeus and the website should open.
- Install a code editor like PSPad or VSCode. If on a non windows machine, make sure it uses windows CrLf (line endings)
- Before uploading to a server, you will need an FTP Client like FTPSync or Beyond Compare.
Command Lines for PHP Setup
rem https://docs.chocolatey.org/en-us/choco/setup
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
rem https://community.chocolatey.org/packages/php
choco install php --package-parameters='"/ThreadSafe"'
Theme Extraction
This assumes a theme has been created and zipped as per this page.
If this step is not done properly for the theme the current website is using / trying to use you will get a lot of 404 not found errors and the website will appear broken / plain white.
- Download the zip of your current theme into the theme folder if not done already.
- Extract "here" and get all the assets - css, js and default images.
- Load / refresh the website and see that there are no missing assets.
- If your git client (usually tortoisegit) shows theme assets as being different, this would be because optimizations/validation fixes have been done on that theme and these files need to be reverted since the zip file would have overwritten the changed files that are checked in. It is a good idea to see what has changed.
Use Google Photos
- Log into Google Photos on your computer. 2 .Click on the Album you want to embed. ...
- Click on Get Link and then Copy.
- Go to publicalbum.org.
- Paste your Google Albums link into the box and press Create Embed Code.
- Here you'll be able to change the way your album is displayed if you wish.