mamp 简单的网页

来源:互联网 发布:寻找客户的软件 编辑:程序博客网 时间:2024/05/01 08:37

1: prepare

      1.1   a very simple html  file.

       1.2   mamp

 

2: details

     html file.

    2.1   on mac pro , if u use   ,just type in words like follows.

           

<html>   <body>        <p> hello wangfan ,here it is <p/>   </body></html>

   2.2 just save the file named  wf.txt  (becarefull , u should select file type as follows)

         

2.3  chang wf.txt   to  wf.html   

   

3:  download mamp from internet and install it. it is so simple.

     


   3.1  now click webstart button on left top.  u will see  the manager page

       



        

 3.3  if u want to see you own page , just copy wf.html

      


 3.2  to  and enter in safary:  http://localhost:8888/wf.html     now  u can see your own page .

    



4: by addtional ,   u can create file hirenchy              use    http://localhost:8888/tests/wf.html   to vist

   

 

  

  

  and on window  xampp  works like this



//-----------------------------------------------------------------------when u arrive here------------------------------------------------------------

AIM:下载一个网站,然后安装到 本地  mamp 。(如果你自己租了虚拟主机,那么 用FTP 工具上传你的 网站/论坛/博客  到虚拟主机上去,别的操作和下面讲的一样)

1:下载一个网站 比如 去 DISCUZ 下载,解压源码。

              



          

2: 在MAMP的默认访问目录 htdocs 目录下面 自己建立文件夹用来管理自己的各种 网站/论坛/blog 

       

     

3: 安装论坛/网站/blog  (我上面的例子是下载了个论坛,需要安装)

     在浏览器中 访问刚才上传的 install 目录 如下:

        http://localhost:8888/projects/ibuglib/install/

     要是论坛没有安装过,那么应该能看到 网站安装向导: 

     我现在因为安装过了,所以拒绝访问了。 如下:

    


     

4: 这个时候,要是你安装的东东 是需要数据库的。那么现在需要通过mamp后台管理工具创建一个 数据库,以便论坛使用。  


        直接输入 数据库 名字 然后点击 “创建”  其他不用动

    


      会提示 创建成功

         


5:  继续安装自己的论坛, 记得 只用 填写数据库名字的时候  输入  上面创建的  "ibuglib"

        以及管理员 账户/密码

              一路oK后,访问


6:访问论坛  在浏览器 中输入:

        ocalhost:8888/projects/ibuglib

     或者

       http://localhost:8888/projects/ibuglib/forum.php  (输入上面那个地址 会自动补全成下面这个样子)

      


这个时候你就能看见论坛了:



           



//----------------------------wordpress blog------------------------

1: 可以去 http://cn.wordpress.org/  下载中文版的BLOG。 它上面有介绍如何 5 min 安装 blog。

2: 如果 提示 wp-config.php 不存在。那么 需要配置。

    DB info  在 MAMP 的start标签页。

          


3: 配置好的文件 命名为  wp-config.php ,然后复制到 wp-config-sample.php 同样的目录。 

    ok 在浏览器 输入:  http://localhost:8888/wf/wordpress/

         

           u will see  ,, is't that great? 

    

      

  

      


  

  

         

         

 


原创粉丝点击