egress is only charged if the data leaves the Azure network.ĭatabase has a rolling 7 day backup strategy, and we have tested the rollback which works very well. However you are charged egress from the database - see Do I incur any network data transfer charges. Handy to use the UI to put in the database settings.Ĭlean install of Drupal 7 Using hosted Azure MySQL # need to wire up the database connection settings in Drupal here if not done already ServerAlias .comĬustomLog $/access.log combined ServerAdmin /var/www/html/davetest/public_html #git clone xxxxxx - # your source drupal repo here # use the PAT (Personal Access Token) method eg u: p: pat # setup a sudo nano /etc/apache2/sites-available/nf Mysql -host .com -user -pĬreate database davetest # next steps are optional to create a separate VirtualHost # or could put the site in default root ie /var/www/html sudo mkdir davetest # create a cloud shell and create the database # need this to be correct as can't do configuration / caching properly chmod 644 default # **I got an error adding in the db connection string, but it worked not doing this and using the webUI** #vim settings.php # around line 247 to avoid having to use the UI, you can do this #$databases = array ( # 'default' => # array ( # 'default' => # array ( # 'database' => 'davetest', # 'username' => # 'password' => 'password123456789TKT', # 'host' => '.com', # 'port' => '', # 'driver' => 'mysql', # 'prefix' => '', # ), # ), #) cd. # create the settings.php file cd sites/default # Never leave like this in production! chmod -R 777. # need to delete files otherwise the git clone wont work # rm * # useful to get drupal on the webserver quickly # Add to the end of the php.ini sudo vim /etc/php/7.1/apache2/php.ini # optional - makes it easy to run as root and dont have to type sudo # be careful sudo su An good alternative is to run the scripts from the Cloud Shell in the web UI. To install and update the Azure CLI from WSL there is a handy 1 liner followed by manual install steps which do work - use the arrow keys if a GUI menu appears. This seems to be an easy path with lots of help on the web. I write bash shell scripts and run them from Windows WSL - here is a handy install guide. I am a big fan of the Azure CLI so used scripting to make the process as repeatable as possible (Infrastructure as Code). Using IaaS (Infrastructure as a Service) ie a VM and AZ CLI We couldn’t make the backend admin site usable. The most likely cause is the underlying shared filesystem performance as discussed here and here. 14secs to load (full PaaS power, and full MySQL hosted).However the comparable performance on a backend admin screen was: In today’s modern Cloud world I dislike using bare metal or unmanaged VM’s, and always prefer to go more ‘right’ in the diagram below Don’t host Drupal on Azure PaaS (Platform as a Service) I’m using Drupal 7 as this is what the design shop uses who built the site. So interestingly it precedes Wordpress by 3 years. So when I was asked to find Drupal hosting for an enterprise customer which had to be on Azure, I tried the same strategy.Īll source listed here is on GitHub What is Drupalĭrupal on Wikipedia tells us it came out in 2000, and uses PHP and MySQL. I’ve blogged on hosting Wordpress on Azure PaaS and Many different Azure options for hosting Wordpress.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |