I have an EC2 instance running with Glassfish Server Open Source Edition.
And now I need to setup the a website in wordpress.
How can I do that ?
I'm looking for 5 minutes installation tutorial but I'm stuck in the part where it's says about the webserver.
I have to install the Apache in Linux then enable the FTP access ? (to upload the wordpress files ? )
For now I'm stuck in this part guys, any tip is very welcome.
Ok. This is going to be a bit of a high level overview of what you need to do. Its a long process which you need to look into.
Glassfish server is (afaik) for Java applications. Wordpress is a PHP/mysql based system.
Apache is a free and open source web server which you can use, which integrates with php and mysql nicely. What you need is called a LAMP setup (LAMP stands for "linux, apache, mysql and php). You haven't specified what your EC2 is running (what linux distro) but lets say its Ubuntu. A quick search for "installing lamp ubuntu" on google turns up many different tutorials and walkthroughs for installing a lamp setup on your machine.
You'll need SSH access (which you'll have with EC2) then if you run through your tutorial of choice you'll have a working web server, you'll specify a public_html directory (usually by default /var/www).
Now to install Wordpress. What you could do is install an FTP server. This is going to be relatively complicated though, however it will be the easiest way to install Wordpress. Install FTP and upload the wordpress files to the public html directory, then you will be able to run through the 5 minute install process using the mysql database credentials you set up in the LAMP tutorial.
An easier way to do what you need to do is to install subversion on your EC2 instance - e.g. sudo apt-get install subversion on ubuntu. That way you can svn export the wordpress repository to your public html folder (http://codex.wordpress.org/Installing/Updating_WordPress_with_Subversion).
However, without an FTP server running on your EC2 instance you won't be able to FTP in to modify files or anything. You'll have to do everything over SSH (or SFTP) which may or may not be manageable for you.
In all honesty, and with the utmost respect, if you don't know about apache and installing a LAMP server and such then you're probably a bit out of your depth with Amazon's EC2 server. You'd be better off with a dedicated server from a hosting company who will have installed everything you need.
Related
I need to create a local development environment and struggling a little with the setup. I want to replicate my live server as close as I possibly can.
I want to install Magento ver 2.1.8, running MySQL 5.6, PHP 7.0 with NginX and Debian.
Now, it would be more than one person which will be working on the development sites, therefore, it will have to stored on our local server.
We are working on Windows 10 Pro machines.
I had a look at tools such as VirtualBox, Vagrant and Docker but reading about them got me even more confused.
I had a brief look at the LAMP stack too. Could you recommend the best way to go for my situation?
Do I have to use these tools in combination with each other?
Do I have to install the software on each computer or on local server?
I recommend to use this docker container: https://github.com/yvoronoy/magento2docker
It uses apache but you can change it via editing Dockerfile. Main advantage in this container is configured sshfs mounting in MacOS which works a little bit faster that default mounting, and you can work with source code as you work on local instance.
I am trying to install Solr 4.6 with Drupal 7. For some reason, I am not able to. Probably, I am trying to install it on a remote server (my website server).
Here are the steps I am doing:-
Download Apache Solr Drupal Module from here and placed it in my Drupal modules folder (sites/all/modules/)
Enabled Apache Solr search and Apache Solr framework modules in admin/modules
Downloaded Apache Solr 4.2 from http://www.dsgnwrld.com/am/lucene/solr/4.6.0/
Unpack it outside my drupal installation and outside my web root/folder. (~/srv/www/solr)
Went to sites/all/modules/apachesolr/solr-conf/solr-4.x and copied all files to ~/srv/www/solr/example/solr/conf
I am stuck after this. I know I have to access my server at this address ~/srv/www/solr/example through command prompt (Terminal) to start the Apache Service but how can I do that?
Plus, on the site, it's written that I can access the Solr admin interface by visiting
http://localhost:8983/solr/admin, but how can I do that when my site is located on a remote server?
Please help.
Thanks.
I believe you have solr 4.6 (rather than 4.2) from the link you presented but the steps are the same for both.
Although Solr can run in any Java Servlet Container of your choice, the example index includes a small installation of Jetty.
To launch Jetty with the Solr WAR, and the example configs, just run the start.jar ...
user:~$ cd ~/srv/www/solr/example
user:~/srv/www/solr/example$ java -jar start.jar
At that point the server should be listening on 0.0.0.0:8983.
You can then access this server using http://remote.ip.or.hostname:8983/solr/admin (ex. http://8.8.8.8:8983/solr/admin)
You may want to consult the tutorial in the docs for further information.
I am new to Web Development but I have experience in Java, C/C++,Unix Scripting and basic SQL. I have apache-tomcat server because I downloaded Java EE but recently I wanted to start added PHP to my html and I have to download a server like wampp or xampp to run php files. But I downloaded xampp and when I tried to reach my localhost my browser froze up, I tried it multiple times but no luck reaching my local server. Then I decided to try it on wamp and the same thing happened. Can you have two different kinds of servers on your PC even if only one is turned on at a time?
No you can get PHP to run out of a TomCat Web Server.
See this somewhere in the middle of it he tells you how to download a PECL extension that will allow TomCat and the PHP interpreter to become friend.
Im trying to write a blog using PHP,I downloaded Php 5, Notepad++ And Apache Tomecat 7.
The problem is that I dont know where to save the .Php files I wrote so I can open them using the Apache Server.
Can anyone help please?
Thanks in advance.
You don't need Tomcat server that is for Java applications.
You're best bet is to install WAMP (on Windows) or LAMP (on Linux) then you have all the tools including MySQL to start coding. The Apache server comes preconfigured for use with PHP.
If you're coding on Windows then WAMP is a single install package.
There are plenty of tutorials to help you out, but essentially your Apache server will have a web root directory named "www" in it's configuration file. That's where you place all of your php and html files, etc.
[Edit]
Reading some of the comments, the recommendation for WAMP or XAMP for your local development. You can run all this comfortably on a laptop. When it comes to releasing your application to the world you will probably want to pick a Hosting service that supports PHP and will take care of all the server configuration for you. You'll just be copying up your PHP code files and creating the databse.
I'd like to get started with Pylons, to be used on a Windows machine as a local web server. Is there any equivalent of e.g. XAMPP for Pylons that would set up everything with one installer?
Edit: I've just discovered the Pylons web server. Could I use this to serve pages to computers on a LAN?
One thing that you could do is use mod_wsgi with XAMPP. Unfortunately I am not aware of any installers for that combination.
You almost never want to use the web server built into the framework, but Pylons uses Paste, which is quite a bit more capable than most stock web servers so that could be an acceptable alternative if you don't need httpd.
pylons can be installed using easy_install or unzipping the tarball and running "python setup.py install" (like any python package).
the great google god machine says it's possible to run a wsgi app under IIS(shudder),
other than that, once you have your pylons application written, consider running it as a windows service