Before the Windows 2008 Server set up a Web server for testing, but especially slow in the open site, especially pictures load will fail, then that path is a problem, but on the server itself are particularly slow to open I can not find a reason, it is not going to hang above a tree, ready to try out Linux under.
Is often used when the server has CentOS, Ubuntu ...... taking into account only its own Ubuntu mirror and only myself to do some simple tests to use, so I chose the version is Ubuntu 14.04 LTS. Build your own Web server on the internet.
Compared under wamp integrated environment under Windows, Linux systems also have LAMP, LAMP Do not ask me what is this I want to know what LAMP active wamp certainly yes. Well, get down to business immediately.
First, we set up in Ubuntu LAMP environment, the First, install apache:
sudo apt-get install apache2 apache2-doc
Test apache2 normal operation
Next is to install mysql:
sudo apt-get install mysql-server
sudo apt-get install mysql-client
Mysql installation will set the root account password reminder, you need to pay attention to him and your login account password is no contact.
Next is the php installation:
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5 // install apache service support php module
After installation and configuration are some things we need to restart apache to take effect.
Some people would say that the command is:
sudo service apache2 restart
When you enter this command prompt error, do not strange, you can try this command, the same meaning, but just the way it nowhere.
Here we need to know, we have chosen are all silent installation, similar to open the service itself with some of the windows system as well, so we need to know him as well as the path where the configuration file.
The next step is to upload web pages and to build something, and yesterday the next steps to install dede windows are almost similar, or pay attention to the problem of read and write permissions, there is the password database unlike previous talk as empty the password is the one you install mysql settings.
I see other people write a lot of steps and tutorials on building these environments, I do not understand that there are a lot of modules simply follow other people to do the operation is completed, in the end is what played a role in what, I do not really understand, should be said that I do not understand, so I used to get a few steps above, open a web page can be done despite the use of templates or someone else,
I want to say is then apt-get install *** better if something was wrong after, at least they know of that is what affects what step.
So, the question is
After that, we execute the command to install the GD library, problem solving, success!
apt-get install php5_gd
Do not you think there is always sudo command which makes this thing with a very trouble?
So, we preferred to use at the beginning of the switch to the root account or set up using the root login:
sudo passwd root // no default root account password, this command is to set the root password
Switching root user command su //
A better approach is at boot time, that a user is logged on with root login, thus eliminating the need for too much trouble.
We need permission in windows is the case, even more so under linux, in building web sites, you are likely to be tested 127.0.0.1 error forbidden off.
Do not be afraid, this is the obvious question of the competence, provide the right to refer directly to the highest command better:
chmod -R 777 you have to mention the right path to the document (for example: chmod -R 777 / var / www /)
This is almost ended.