最近准备把公司的服务器换成linux

数据库sqlite3

搭建过程记录如下:

1 sqlite3安装。。

apt-get install sqlite

2.PHP服务器搭建。

  apt-get install apache2 libapache2-mod-php5

  apt-get install php5

      apt-get install php5-sqlite

3 参考:http://www.cnblogs.com/wenanry/archive/2012/11/13/2767779.html

 /etc/init.d/apache2 restart 

拷贝自己的网站到目录下

localhost/index.php

 

4 配置默认端口

     gedit /etc/apache2/port.conf

     把80改为8001

 

     gedit  /etc/apache2/sites-available/default

 

     把80改为8001

/etc/init.d/apache2 restart 

   localhost:8001/index.php

相关文章:

  • 2022-12-23
  • 2021-08-11
  • 2021-08-15
  • 2021-08-26
  • 2021-09-12
  • 2021-09-07
  • 2022-03-09
猜你喜欢
  • 2022-12-23
  • 2021-04-13
  • 2021-11-05
  • 2021-08-11
  • 2021-11-30
  • 2021-07-25
相关资源
相似解决方案