Well, as already posted CEMS a guide to configure apache in windows, put a linux
is sooo easy.
Open a terminal and tipean:
sudo apt-get install apache2
at one point asked if they want to download the packages, which respond with y (yes).
wait a few seconds (in my case 10 seconds) and you're done. It only remains to go to http://localhost and see if it goes .. php tipeamos To the console:
configuration file
sudo gedit / etc/apache2/apache2.conf
put the following in any line (without the #, which is to comment) DirectoryIndex index.html index.cgi index.pl
index. php index.xhtml
go out and keep.
restart the apache config,
sudo / etc/init.d/apache2
restart Well, now, as do the directories or others? the directory where you stored the web and others are in / var / www, the problem is that that folder has restricted permissions, then in the console tipeamos:
sudo nautilus this will open a window like any other but super user permissions. we went to / var and the www folder Right click -> properties. Let
the permissions tab and choose "create and delete files"
and ready, you can access through http://localhost Well, that was it, but with this and go, there are lots of things to do, such as security, restriction of directories, permissions, etc. The idea of \u200b\u200bthis post is not very complicated life to be able to walk the web server on Linux. For example, using sudo nautilus it will not actually have to give permission for the console, as the 664, 777, etc. Anyway, the idea is to simplify rare commands for users just starting with linux is not a mambo terrible grip.
If I was in doubt, ask!
Source: I: p-tech.com.ar www.hardware
0 comments:
Post a Comment