lost and found ( for me ? )

ubuntu : use apache and php5 on ubuntu 12.04

small tips.

root@ubuntu-vm2:~# tail -1 /etc/lsb-release ;uname -ri
3.2.0-49-virtual x86_64

install apache2 and php5 and start apache2
# apt-get install apache2 php5 libapache2-mod-php5
# service apache2 restart

put “hello.php” under document root. ( /var/www )

on the Apache server

root@ubuntu-vm2:/var/www# pwd

root@ubuntu-vm2:/var/www# cat hello.php
 <title>PHP Test</title>
<?php echo '<p>Hello World</p>'; ?>

access to http://apache’s IP/hello.php with an web browser.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.