樹莓派安裝Apache2遇到問題與解決方法

2021-10-05 18:39:30 字數 1922 閱讀 2354

sudo

nano /etc/apt/sources.list

注釋掉系統預設源,更換阿里雲源。

# deb  buster main contrib non-free rpi

# uncomment line below then 'apt-get update' to enable 'apt-get source'

# deb-src buster main contrib non-free rpi

deb jessie main non-free contrib rpi

deb-src jessie main non-free contrib rpi

sudo

apt-get update -y

更新完,安裝apache。

sudo

apt-get

install apache2 -y

安裝php7.3需要新增其他更新源

sudo

nano /etc/apt/sources.list

# deb  buster main contrib non-free rpi

# uncomment line below then 'apt-get update' to enable 'apt-get source'

# deb-src buster main contrib non-free rpi

deb jessie main non-free contrib rpi

deb-src jessie main non-free contrib rpi

#新增源 安裝php7.3

Cubieboard安裝Apache2伺服器

cubieboard安裝apache2伺服器 1.更新軟體sudo apt get update 2.安裝apache2和輔助管理工具sudo apt get install apache2 apache2 utils 3.配置埠sudo vim etc apache2 ports.conf 這裡改...

apache2 子目錄forbidden問題

安裝環境的時候是用apt get的方式直接安裝的。配置檔案的位址是 etc apache2 sites enabled 000 default。因而更改根目錄的目錄時候,便直接在裡修改了,就在根目錄www裡面建立了個資料夾first,在first裡面的index是可以訪問的,但是建立的image卻一...

編譯安裝LAMP之安裝apache2

這裡我選擇版本號為2.4.16的apache 請確保系統已經安裝了編譯工具 configure enable soerror 這裡你可能會遇到這樣的錯誤 checking for chosen layout.apache checking for working mkdir p.yes checki...