Re: Need help on LAMP server
Open a terminal, and type:
sudo apt-get install apache2 php5 php5-mysql mysql-server
The location of the web pages will be at /var/www
Re: Need help on LAMP server
There is also an installation option when installing Ubuntu Server to set up a LAMP server automatically.
Re: Need help on LAMP server
You might need to change the ownership of /var/www.
Re: Need help on LAMP server
for lampp, in the terminal type:
sudo /opt/lampp/lampp start
I also *suggest* typing:
sudo chmod 777 /opt/lampp/htdocs/*
to easily modify files in your web folder
Re: Need help on LAMP server
thanks guys for helping. the server was auto maticaly installed but its all line command and I'm a little rusty, is there a way that I can man the command to help me copy the html files, is there a web site with some commands,and last how do I test to see if the server is working correctly. thanks for all the help
Re: Need help on LAMP server
http://www.google.com/search?q=linux+basic+commands shows a lot of websites that can show some basic linux commands.
To copy a file type:
where src is the file you want to copy and dest is where you want to copy it to. i.e.
Code:
cp /home/user/index.html /var/www/index.html
If you find a command you know you need to use you can type
in the console to get a manual for it.
To test if the server is working, go to another computer and type in the ip address of the server. Or you can go the following at the server itself:
Code:
sudo apt-get install lynx
...
lynx localhost
Lynx is a terminal-based webbrowser. localhost is the computer you're working on, so lynx localhost will open up a webbrowser to the localhost and test to see if the webpage is working.