-
- Here a link to the quick study guide on how to get LAMP running on AWS Lightsail
- Log into AWS management console
- Go to Lightsail
- Choose to launch Linux with LAMP
- Obtain a new private key. It needs to be converted from .pem into .ppk (Putty private key) format if you are going to connect to the process via ssh through Putty.
- After the process is running, connect via ssh.
- in home directory, cat either bitnami_application_password or bitnami_credentials. This password is good for all the LAMP applications.
- The user name is listed on the AWS Lightsail console, click on the name of the running process then scroll down.
- Download Dolibarr ERP CRM from HERE. Since we are running Linux on AWS, I choose the .tgz format
- Upload the source code to the Lightsail LAMP instance. I used SFTP in Filezilla. See instructions HERE.
- Connect an ssh shell to the Lightsail LAMP instance. There’s a big button for SSH connecting in the AWS Lightsail console. Or, you can use Putty.
- Extract the Dolibarr file by the following command:
tar xvzp compressed_dolibarr_files.tgz
- Determine if you are running MYSQL or MariaDB by going to directory /opt/bitnami to see which one was installed.
- From browser, run dolibarr(version)/install/index.php. Follow instructions. I had to manually create a file and a directory in the process and grant the proper permission for dolibarr to use them. I think the install script didn’t have the right permission to create/write certain files and directories.
- After the process, you can access the created tables via phpMyAdmin. The instructions are HERE
- Note: You can not run a localhost/phpmyadmin and 127.0.0.1:8888/phpmyadmin at the same time. The later one will fail to connect.