How to make a server with old computer - apache

I want to make a server on my old PC.I have easyphp 5.3 and open port is 8888.I can find my Wan IP.How to make a server that i can access to php and html files on www directory from other PC's?

EasyPHP includes Apache (a web server), mySQL (a database you can use with web applications) and PHP (a language you can use to program web applications).
So you've got a good start :)
SUGGESTION:
Work through a couple of tutorials:
See if the EasyPHP web site has a tutorial.
Or better, Google for ANY tutorial on "Apache, PHP and mySQL"
There are also many books available.
ALSO:
To access your server by name, you'll need DNS.

Related

What is the technical & detailed difference between IIS Server and Apache Web Server?

I know that IIS server is basically used to run sites based on microsoft technologies like .net and Apache is used to run sites based on open source technologies like PHP. But other than all this whats the technical and detailed difference between the two. Why is Apache used more and requires less configuration and hardware to run the sites as compared to IIS. The pre-requisites for IIS are high whereas for Apache they are nominal. Which one is better?

Can you have apache-tomcat and another server like wampp or xampp

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.

Web DevelopmentL: PHP & Apache

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.

How install Wordpress in a EC2 machine?

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.

Setting up Railo in the same way as Multiple Instance Adobe CF

I'm looking to install Railo in the same way we currently do for Adobe CF.
At present we run Adobe CF8 on top of JRUN 4, in a multiple instance setup. On our local sandboxes we use Apache as the web server. We then use Apache Virtual Directories to point to our codebase which exists outside of the CF Context. This gives us ultimate flexibility in that we can be running multiple servers, multiple sites, from anywhere location on our machines. In Production we use IIS 6, but the above still applies.
All the documentation that I've come across to date has not yet been able to emulate this. I've tried combinations of JBoss, Railo WAR, Apache, JkMount, Resin, JRUN, etc.
Things we are trying to avoid: We don't want Tomcat to be involved (duplicating the web server requirement), we don't want to have to configure anything in JBoss per new site (as well as Apache), we need our codebase to be run from any location.
Has anyone successfully managed to emulate this approach for Railo? Could you point me in the right direction, or could a representative from Railo write a blog post for it?
Thanks in advance!
Dave
The ability to install several instances of Railo or CF is not a Railo or CF feature but one of the application server. Railo has the great built in Sandbox security for each defined web context. A web context normally is aligned with a virtual host setting in the app server. Since in Adobe CF there is only one web context something like the sandbox security needs to be applied.
Anyway, different application servers (like Resin) allow you to use regular expressions for virtual hosts definition (this means that the web contexts are created on the fly and implicitly) or single conf files in a certain directory for each web context you want to create. After this has happened the settings for your different applications running in the different web contexts are separated from each other. Security at its best.
You can have your webroots located wherever you like. The only thing that does not work is that you create a virtual directory in Apache or IIS and then your application already runs in there as well. BUT what you can do in Railo is to create a mapping that is called identically and that points to the exact same location. Then you can use it exactly as in CF.
We might even consider to read the virtual directories from the web servers and implicitly create the corresponding mappings. In addition you could create per application mappings in order to solve that problem.
If you have any other questions, just email our Railo google group.
Gert Franz
Railo Professional Open Source
gert (at) getrailo.com
Here is a blog post on setting up Railo in JRun. Sean would be the guy to ask about this too if you have any more problems.