Hi,
I need to install magento. I followed this instruction: https://www.digitalocean.com/community/tutorials/how-to-use-the-magento-one-click-install-image
After magento was installed with one click (droplet was created) - i tried to login to magento - it went me through installation process, but the gave we an database error.
I realized that magento needs a database, so I followed tutorial for LAMP. After I did so - i tried to login and continue with magento installation again - but got the same database error, so I continued this tutorial: https://www.digitalocean.com/community/tutorials/how-to-use-the-magento-one-click-install-image,.
The last thing I did is: "Find the lines containing the information for the existing self-signed cert:
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.key
and replace the the paths with the location of the files obtained from your certificate authority.
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/ssl.crt
SSLCertificateKeyFile /etc/apache2/ssl/private.key
SSLCertificateChainFile /etc/apache2/ssl/sub.class1.server.ca.pem"
Then tutorial says enter this command to reboot apache: sudo service apache2 restart
but when i typed this line into my terminal I got an error message: root@YBF:~# sudo service apache2 restart
What I am doing wrong? How do I fix it?
Thans
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Did you find the answer to this?
I had the same problem but put it down to having an SSL Certificate with a Private Key that didn’t match.
<IfModule mod_ssl.c> <VirtualHost default:443> #ServerName www.example.com DocumentRoot /var/www/html/magento
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/html/magento>
AllowOverride All
Require all granted
</Directory>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/ssl.crt
SSLCertificateKeyFile /etc/apache2/ssl/private.key
SSLCertificateChainFile /etc/apache2/ssl/sub.class1.server.ca.pem <FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.