deepin2014安装WEB服务器最简单办法
Tofloor
poster avatar
bjwuyunlong
deepin
2014-08-07 19:30
Author
本帖最后由 bjwuyunlong 于 2015-7-10 13:37 编辑

第一步:到应用商店中搜索“lamp”,找到后一键安装,好了,现在已经安装上了Apache+Mysql/+PHP环境,可以通localhost访问网站了。

第二步:安装webmin网站服务管理面板来管理Apache+Mysql+PHP环境等,webmin应用商店中没有,要到官网上直接下载,到http://www.webmin.cn/download.html 这个页找到DEB包下载安装就行了。安装后在浏览器中输入localhost:10000 进入webmin管理面板设置就可以了。

未命名.jpg

就这样的简单了,很合适新手和本地测试环境的搭建使用。整个过程没有用到任何的命令。
Reply Favorite View the author
All Replies
1 / 2
To page
cd******1b@163.com
deepin
2014-08-07 19:39
#1
哟,用的遨游浏览器
Reply View the author
dapengme
deepin
2014-08-07 20:57
#2
这个东西好。
Reply View the author
呆了个呆
deepin
2014-08-15 07:14
#3
手动编译 apache2.2.27 死活启动不了,报错 Couldn't set permissions on cross-process lock; check User and Group directives 网上的方法都试了,无用,只能用 apache 2.4 了。。。可以我要用 2.2 啊。。。
Reply View the author
Feng Yu
deepin
2014-08-15 23:23
#4
手动编译 apache2.2.27 死活启动不了,报错 Couldn't set permissions on cross-process lock; check User and Group directives 网上的方法都试了,无用,只能用 apache 2.4 了。。。可以我要用 2.2 啊。。。
为何非要用2.2?究竟是什么原因让你如此执着2.2?ubuntu 14.04已经将apache2.2换成了apache 2.4。理论上,你只需要删掉apache 2.4中不再支持的指令集,就可以直接启动服务,为何非要执着于2.2?
Reply View the author
呆了个呆
deepin
2014-08-16 00:37
#5
[quote]手动编译 apache2.2.27 死活启动不了,报错 Couldn't set permissions on cross-process lock; check User and Group directives 网上的方法都试了,无用,只能用 apache 2.4 了。。。可以我要用 2.2 啊。。。
为何非要用2.2?究竟是什么原因让你如此执着2.2?ubuntu 14.04已经将apache2.2换成了apache 2.4。理论上,你只需要删掉apache 2.4中不再支持的指令集,就可以直接启动服务,为何非要执着于2.2?[/quote]

我不是非要执着,我只是想和服务器上的环境一样。再说了,遇到问题就是想要弄明白是为什么
Reply View the author
Feng Yu
deepin
2014-08-16 05:33
#6
[quote][quote]手动编译 apache2.2.27 死活启动不了,报错 Couldn't set permissions on cross-process lock; check User and Group directives 网上的方法都试了,无用,只能用 apache 2.4 了。。。可以我要用 2.2 啊。。。
为何非要用2.2?究竟是什么原因让你如此执着2.2?ubuntu 14.04已经将apache2.2换成了apache 2.4。理论上,你只需要删掉apache 2.4中不再支持的指令集,就可以直接启动服务,为何非要执着于2.2?[/quote]

我不是非要执着,我只是想和服务器上的环境一样。再说了,遇到问题就是想要弄明白是为什么[/quote]
你那个报错google一下就知道是怎么回事了。我已经知道了。
Reply View the author
呆了个呆
deepin
2014-08-17 02:01
#7
你那个报错google一下就知道是怎么回事了。我已经知道了。

你不懂,那些解决方法,都试了一遍,还是不行的。。。
Reply View the author
Feng Yu
deepin
2014-08-17 03:01
#8
[quote]
你那个报错google一下就知道是怎么回事了。我已经知道了。

你不懂,那些解决方法,都试了一遍,还是不行的。。。[/quote]
这个报错不就是说权限没给到么,让你检查User 和Group的配置。
apache都玩了三年了,编译安装,软件源安装都搞过。
Reply View the author
Feng Yu
deepin
2014-08-17 04:03
#9
自己编译了一下apache 2.2,基本上enable了所有的modules,完全没问题。
Reply View the author
Feng Yu
deepin
2014-08-17 04:14
#10
把你的生产服务器上的apache目录下的build/config.nice拷贝出来,我这边试试,这个存储的是configure时的参数。

我编译的参数:
  1. fengyu@fengyu-pc:/usr/local/apache2/build$ cat config.nice
  2. #! /bin/sh
  3. #
  4. # Created by configure
  5. "./configure" \
  6. "--enable-v4-mapped" \
  7. "--enable-exception-hook" \
  8. "--enable-maintainer-mode" \
  9. "--enable-modules=all" \
  10. "--enable-mods-shared=all" \
  11. "--enable-authn-dbm" \
  12. "--enable-authn-anon--enable-authn-dbd" \
  13. "--enable-authn-alias" \
  14. "--enable-authz-dbm" \
  15. "--enable-authz-owner" \
  16. "--enable-authnz-ldap" \
  17. "--enable-auth-digest" \
  18. "--enable-isapi" \
  19. "--enable-file-cache" \
  20. "--enable-cache" \
  21. "--enable-disk-cache" \
  22. "--enable-mem-cache" \
  23. "--enable-dbd" \
  24. "--enable-bucketeer" \
  25. "--enable-dumpio" \
  26. "--enable-echo" \
  27. "--enable-example" \
  28. "--enable-case-filter" \
  29. "--enable-case-filter-in" \
  30. "--enable-reqtimeout" \
  31. "--enable-ext-filter" \
  32. "--enable-substitute" \
  33. "--enable-charset-lite" \
  34. "--enable-deflate" \
  35. "--enable-ldap" \
  36. "--enable-log-forensic" \
  37. "--enable-logio" \
  38. "--enable-mime-magic" \"--enable-headers" \
  39. "--enable-ident" \
  40. "--enable-usertrack" \
  41. "--enable-unique-id" \
  42. "--enable-proxy" \
  43. "--enable-proxy-connect" \
  44. "--enable-proxy-ftp" \
  45. "--enable-proxy-http" \
  46. "--enable-proxy-scgi" \
  47. "--enable-proxy-ajp" \
  48. "--enable-proxy-balancer" \
  49. "--enable-ssl" \
  50. "--enable-optional-hook-export" \
  51. "--enable-optional-hook-import" \
  52. "--enable-optional-fn-import" \
  53. "--enable-optional-fn-export" \
  54. "--enable-static-support" \
  55. "--enable-static-htpasswd" \
  56. "--enable-static-htdigest" \
  57. "--enable-static-rotatelogs" \
  58. "--enable-static-logresolve" \
  59. "--enable-static-htdbm" \
  60. "--enable-static-ab" \
  61. "--enable-static-checkgid" \
  62. "--enable-static-htcacheclean" \
  63. "--enable-static-httxt2dbm" \
  64. "--enable-http" \
  65. "--enable-dav" \
  66. "--enable-info" \
  67. "--enable-suexec" \
  68. "--enable-cgi" \
  69. "--enable-cgid" \
  70. "--enable-dav-fs" \
  71. "--enable-dav-lock" \
  72. "--enable-vhost-alias" \
  73. "--enable-imagemap" \
  74. "--enable-speling" \
  75. "--enable-rewrite" \
  76. "--enable-so" \
  77. "--with-ldap" \
  78. "$@"
Copy the Code
Reply View the author
呆了个呆
deepin
2014-08-18 01:19
#11
自己编译了一下apache 2.2,基本上enable了所有的modules,完全没问题。

好吧,其实我也很无语,但是无法,网上的有改用户的方法,也有不改用户的方法都试过无效。不管是 daemon,www-data,nobody, 还是 root 都试过
Reply View the author
呆了个呆
deepin
2014-08-18 05:28
#12
我是用的这个编译参数:
./configure --prefix=/srv/httpd2.2.27 --with-mpm=prefork --enable-mods-shared=all
Reply View the author
Feng Yu
deepin
2014-08-18 08:07
#13
我是用的这个编译参数:
./configure --prefix=/srv/httpd2.2.27 --with-mpm=prefork --enable-mods-shared=all
按照你的编译参数也完全没问题,make install之后直接就可以启动,curl已经可以看到it works
Reply View the author
呆了个呆
deepin
2014-08-18 21:48
#14
[quote]我是用的这个编译参数:
./configure --prefix=/srv/httpd2.2.27 --with-mpm=prefork --enable-mods-shared=all
按照你的编译参数也完全没问题,make install之后直接就可以启动,curl已经可以看到it works[/quote]

所以啊,我也只能说我这是个奇葩的问题,就不去管他了。直接用deepin里的 2.4.7 了
Reply View the author
李逍遥mx
deepin
2014-08-19 06:42
#15
sudo apt-get install lamp-server^
这个最简单
Reply View the author
呆了个呆
deepin
2014-08-19 17:44
#16
sudo apt-get install lamp-server^
这个最简单

哥子,这种方法不用你说。咱是搞开发的,还使用特定版本。。。
Reply View the author
kiano
deepin
2014-08-27 19:27
#17
Reply View the author
gjzwb
deepin
2014-08-27 21:35
#18
我搭建了一个lamp的服务器,内部网建了个php论坛,运行正常,deepin2014 64位的系统
Reply View the author
redbrother
deepin
2014-08-30 01:38
#19
学习一下
Reply View the author
redbrother
deepin
2014-08-30 02:09
#20
安装后在浏览器中输入localhost:100000

多一个零了
Reply View the author
1 / 2
To page