Saturday, June 25, 2011

First php on macbook

Step 1: Enable Apache
System Preferences -> Sharing -> Web Sharing

Step 2: Enable PHP
/private/etc/apache2/httpd.conf -> LoadModule php5_module libexec/apache2/libphp5.so

Step 3:  Config PHP
cd /private/etc
sudo cp php.ini.default php.ini

Step 4: Restart apache
sudo apachectl restart

Step 5: phpinfo
<?php phpinfo(); ?>
http://localhost/~hj/info.php

Step 6: hello world
http://localhost/~hj/hello.php
<html>
  <title>PHP Test</title>
 </head>
 <body>
 <?php echo '<p>Hello World</p>'; ?>
 </body>
</html>
http://php.net/manual/en/tutorial.firstpage.php

6 comments:

  1. help desk software for education software is superb! It has extended productivity all through our complete team. Our customers prefer to use help now because we are capable of respond faster and with greater statistics.

    ReplyDelete
  2. You may be presented using an actually fantastic and also informative web page but in a scenario see this here, it's not designed with other webpage pinks, the specific spiders will require that particular superb Recommended Site site to become a deceased-link 1 thus decreasing the probability of consumer satisfaction in electronic marketing and advertising

    ReplyDelete
  3. I like Creme de la Femme! I had tried everything and given up hope till I found your miracle cream!

    ReplyDelete
  4. It's believed that CBD may be effective within the treatment of each. whereas CBD Lozenges won't essentially cure these 2 mental state issues, it may be useful in up the symptoms in patients tormented by anxiety and depression.

    ReplyDelete
  5. Hey enormous stuff or pleasant information you are offering here.
    Drug Addiction Georgia

    ReplyDelete