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).

    评论

报告相同问题?

悬赏问题

  • ¥15 mmocr的训练错误,结果全为0
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀