Ubuntu Apache-PHP-MySQL Server
After the default normal installation of Ubuntu, here are the additional steps I need to do to have a Apache-PHP-MySQL Server.
- SSH Server (for my remote access)
sudo apt-get install ssh
- Database Server
sudo apt-get install mysql-server
- Apache HTTP Server
sudo apt-get install apache2
- PHP for Apache HTTP Server
sudo apt-get install php4
- MYSQL for Apache HTTP Server
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php4-mysql
Note: Ubuntu 8.04 "Hardy Heron" update is here.
- Add new comment
- 176643 reads
Comments
Can not install php4.
I used command:
sudo apt-get install php4 for Ubuntu 10.4 but it is fail.
duytu@home sudo apt-get install php4
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php4 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Can you help me ?
Re
use php5 instead
red hat mail server
i want the all basics of the mail server plz help me out
GD library
Don't forget to install the GD library:
sudo apt-get install phpX-gd
Clear & Concise!
Thanks -- just what I was looking for. I'd skipped over the last two steps and firefox kept asking me if I wanted to open or save the php file...
m
Very good instructions. I
Very good instructions. I replaced php4 with php5 everywhere since some of my scripts need that function.
/Bob Cahn
Installed LAMP after your comments
It went all OK until I did something wrong. From then on, I can`t "sudo mysql" beacause it answers me "access denied for user 'root'@'localhost' USING PASSWORD: NO)". If I only "mysql" the answer is "access denied for user 'eduardo'@'localhost' USING PASSWORD: NO)".
Can you help me?
Thanks.
Just type like this: $ mysql
No need for sudo, just type like this:
mysql(If you don't have password in mysql)Or
mysql -u root -p(If you have root's password)mysql -u eduardo -p(If you have eduardo's password)Hope this helps.
The one here is better...
The one here is better... shows you how to set up a SSL site as well.
http://blog.st0rage.org/
Thanks.
Installed Ubuntu on my USB key a while back. Thanks to your instructions, it is now a PHP/Mysql development environment. All I had to do was change "php4" references to "php5".
thanks for the additional
thanks for the additional steps I need to do to have a Apache-PHP-MySQL Server.
email extractor