Installing Apache, MySQL (and secure it), PHP, phpMyAdmin in Amazon EC2 - mysql

The reason for me posting this is I am really tired and wasted days trying to properly install a web server in amazon AWS Amazon Linux AMI 2015.03 (HVM), SSD Volume Type instance.
I have tried to install LAMP as mentioned in Tutorial: Installing a LAMP Web Server on Amazon Linux and found I am still not able to access PHPMyadmin.
Now for days I am trying to setup Apache, Apache Tomcat, MySQL, PhpMyAdmin and I always face troubles because 99% of the tutorials are written in 2012 and 100% outdated by now. Amazon tutorials are incomplete as they always are, so something is always left to find.I have almost opened and closed more than 4 instances, due to heavy "mess ups".
Can someone please point me to an "updated" tutorial which has the information of installing Apache, MySQL, PhyMyAdmin, PHP ? And of course I need to access these services from a URL, so remote access instructions also required.

Maybe you should consider running your setup on an Ubuntu instance, there are tons of tutorials for running a lamp stack on Ubuntu 14.04.
For instance, Digital Ocean Tutorials are a great resource: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-14-04
Next time please post this on serverfault.com .

Related

proper download url for mysql for mac for this scenario?

I'm developing a system for a client and I think he may only have a Mac. I recently downloaded and installed MySQL on my Windows laptop for the first time. I think I stumbled around a bit trying to get the correct download and understand the install process. When I google MySQL downloads, I get the following url:
https://www.mysql.com/downloads/
The header on the page says "MySQL Enterprise Edition." Usually, the "Enterprise Edition" of a company's software costs money, but in the case of MySQL is it free? The following tool was installed with my local install of MySQL:
MySQL Workbench 8.0 CE
This is the standard client tool for MySQL, I got the hang of it pretty quickly, so I'd like to simply standardize on it. Can you provide a good download url for the latest free version of the Mac version of MySQL? Can you also provide a good download url for the latest free version of the Windows version of MySQL just so that I have it for reference?
Like I mentioned, it was my first time installing MySQL recently, but I think at the end of the installation, a Window popped up asking how I wanted to configure the MySQL installation, but it so happened that the MySQL installation was already complete. Or does this scenario most likely seem to indicate I had already installed MySQL and the configuration popup was just the installer's handling of my attempt to install MySQL on my machine when I had previously installed it?
Look all the way down to the bottom of this image:
Click on "MySQL Community (GPL) Downloads". It takes you to https://dev.mysql.com/downloads/ which is where you can download the Community Edition of MySQL Server.
They don't restrict downloads of their free product, they just put it in a smaller font. :-)
It's understandable that they would want to promote their paid product.

mysql setup with wordpress

I am trying to configure LAMP on a local Ubuntu dev box. I cannot seem to find any reliable docs about:
How to configure MySQL login info to support WordPress, and
How to set up a database suitable for WordPress.
If I google WordPress, I get hundreds of commercial links selling themes, plug-ins, and what-not, but no concise configuration info.
Any pointers would be appreciated.
First, install lamp server and configure it: https://do.co/2P9WBxn
Then install WordPress: https://do.co/2vMnnDU

Copy ALL sites from remote server to local server Ubuntu & Filezilla

Hey all,
I'm new to linux and still learning and I've searched and haven't been able to find the exact same issue anywhere......
I have a CentOS remote server hosting approximately 60 websites. Some just html, others custom scripts, and mostly wordpress.
I want to backup ALL the sites to my local Ubuntu 16.04.1 lamp stack server.
I am using Filezilla and I'm assuming it's not downloading the the /var/www folder because of permissions, but again, I'm new and don't know much.
Questions:
Do I need to change some settings in Filezilla?
Can I download them with terminal but in bulk?
I do understand I will have to grab all the databases and install them locally, separately, but are there any programs that could help automate this process, paid or free?

WordPress Development with MAMP not working since installing MySQL using terminal

I'm having a problem with localhost servers and databases. I'm by no means a pro at all of this but I've been developing WordPress websites for a short while and have been using MAMP because of how simple it is.
Now I understand that it installs MySQL for you and that Apache and PHP are all included with OS X, but I began learning Ruby on Rails and while I was following a tutorial I installed MySQL manually via terminal and I think I've ran into some collision problems now.
For a while MAMP refused to start the SQL server so I've changed the ports to Apache 8888 and SQL 8889 and now seems to be starting fine (which are the defaults I believe but were different for some reason).
Now I've got two different database locations (I think). One which I can see via the terminal using mysql -u root -p and the other which I can see by launching MAMP and viewing PHPMyAdmin. If I create a database in one I cannot see it in the other, but more importantly when I create the database in MAMP's phpMyAdmin and try installing WP it doesn't recognise it, is this because my username/password may have been changed for MAMP or should it all be the same?
So far I've been thinking maybe I should uninstall MAMP and do a hard reset for MySQL etc and just use the terminal to manage MySQL, phpMyAdmin and Apache etc but I'm not sure - is there a better way to go about this? I am working on a WP website for a client at the moment in tandem with a Ruby on Rails project so need to ideally jump between the two!
Having had a look around this looks like a good guide for running WordPress on your Mac locally... https://coolestguidesontheplanet.com/fastest-way-to-install-wordpress-on-osx-10-6/
They also have nice guides for installing Apache, MySQL and PHP as well for Mavericks https://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-9-mavericks/ and Yosemite https://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-10-yosemite/
Hope these help and good luck :)

Unable to connect to http://localhost:8091/index.html

I have just installed CouchBase Server Enterprise v2.0.0 using the setup.exe on my Windows 7 64bit machine and supposedly the Browser based Console should appear automatically after installation but all i am getting is
Unable to Connect:
**Firefox can't establish a connection to the server at localhost:8091.**
The CouchBase service is running when I check?
I have uninstalled and reinstalled a couple of times now?
Am I missing something here?
You are probably hitting a known issue related to IP address acquisition during startup of Couchbase Server.
I have documented a work around here: http://tugdualgrall.blogspot.com/2012/12/what-to-do-if-your-couchbase-server.html
As stated in the blog post it will be fixed in the 2.0.1 release