douce1368 2014-04-16 06:42
浏览 129

在已安装的apache2服务器上安装php

I have already installed the apache2 on my raspberry pi (raspbian OS) when setting up a svn server. Now I want to add a web server running php and mysql. What is the best way to do this without messing with any existing configurations on my apache2?

Would this be okay to execute on command line or is this package overwriting my existing apache2 install:

$ sudo apt-get install php5-common libapache2-mod-php5 php5-cli

The package in question is 'libapache2-mod-php5'.

Cheers

  • 写回答

3条回答 默认 最新

  • drsfgwuw61488 2014-04-16 06:50
    关注

    First of all, I've never worked with Raspberry Pi, but will try to give an answer. As you're only installing a module for apache and you're using the prefork compiled version (which is still default if I'm not mistaken). I think there will be no alterations in the configuration, perhaps only some rules will be added to handle PHP files.

    To check if you're using Prefork, run this on command line (works on regular linux distributions):

    apache2 -l
    

    If you can find prefork.c in the list, I guess you're safe.

    Please note that this is from personal experience with default unix distributions! I have never worked with Raspberry Pi (yet).

    评论

报告相同问题?

悬赏问题

  • ¥50 comsol稳态求解器 找不到解,奇异矩阵有1个空方程返回的解不收敛。没有返回所有参数步长;pid控制
  • ¥15 怎么让wx群机器人发送音乐
  • ¥15 fesafe材料库问题
  • ¥35 beats蓝牙耳机怎么查看日志
  • ¥15 Fluent齿轮搅油
  • ¥15 八爪鱼爬数据为什么自己停了
  • ¥15 交替优化波束形成和ris反射角使保密速率最大化
  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功