small tips.
root@ubuntu-vm2:~# tail -1 /etc/lsb-release ;uname -ri
DISTRIB_DESCRIPTION="Ubuntu 12.04.2 LTS"
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
/var/www
root@ubuntu-vm2:/var/www# cat hello.php
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World</p>'; ?>
</body>
</html>
|
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.