I verify my development setup against the checklist below. When running the automatic install script ubuntu-all.sh, everything should be ok, but if I have tried some manual install to test something, this list gives a good clue, to find out what when wrong.
- I give the command “locale”, and it must not show the warning “locale: Cannot set LC_CTYPE to default locale: No such file or directory”
- vim, I create a new file and insert a line with a tab. Here I check that the tabstop is 2 spaces and trailing spaces marked with red.
I point my host browser to http://ubuntu.dev. I get “Ubuntu Web Development Environtment”
On the host I make a ftp connection to ftpubuntu.dev, I enter name ‘ada’ and password ‘Lovelace’ when prompted and do a ls /var
In the vm ssh I do the command “mysql -u root -pLovelace”. This will take me to mysql interpreter. Here I can give any commands, e.g. check which databases I have with “show databases;”
I point my host browser to http://ubuntu.dev/phpmyadmin. This will show me the admin page, where I can log in with user ‘ada’ and password ‘Lovelace’
- Apache and clean urls
I start the Drupal 8 installer. If clean urls is enabled I can install, otherwise I get an error message.
- XDebug, installation
In the vm ssh I do the command “php -i | grep xdebug”. This will show all the xdebug parameters xdebug is running with. I check the values I have specified in xdebug.ini.
Alternatively I create the file /var/www/html/phpinfo.php and point my host browser to http://ubuntu.dev/phpinfo.php. Here I can find
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
Further down the page, there is an xdebug section, where I find all the xdebug parameters.
- XDebug from host with NetBeans
Create a new project in NetBeans of type PHP Application.
In Run Configuration, select Run As Remote Web Site, change the Project URL to ubuntu.dev/directory, configure the remote ftp connection to ubuntu.dev, port 21, specify the Upload Directory to /var/www/html/directory and set upload files to On Save.
In the generated index.php I add an echo statement in the php code and set an breakpoint.
Then I do Debug Project and the breakpoint is activated.
- I check my Drupal sites where I see the Drupal login page.
- I check my WordPress site where I see the WordPress installation wellcome screen at http://ubuntu.dev/wordpress.