manjaro php开发环境 折腾笔记

pacman -S net-tools  #端口查看工具
sudo pacman -S apache 
sudo pacman -S php 
sudo pacman -S mysql 

Apache配置文件位置

/etc/httpd/conf/httpd.conf

http 服务文件夹

/srv/http/

sudo vim /etc/hosts 修改host文件,添加一个虚拟地址

设置开机启动

sudo systemctl enable httpd 
sudo systemctl restart httpd

查看apacheh是否在运行

sudo systemctl status httpd

添加虚拟主机(标准配置):
sudo nano /etc/httpd/conf/extra/httpd-vhosts.conf



    DocumentRoot "/var/www/test/"
    ServerName www.test.com
    ServerAlias test.com
         
                DirectoryIndex index.php index.html
                AllowOverride all
                Require all granted
        

sudo systemctl restart httpd 重启apache 访问测试网址

mysql 安装问题百出, 放弃,改用docker

https://www.runoob.com/docker/docker-install-nginx.html 安装全过程
docker中 php 扩展的安装 详情 查看docker hub php镜像说明

phpstrom 安装

yay -S phpstorm

激活:https://blog.csdn.net/qq_33733970/article/details/86751838
汉化:https://blog.csdn.net/u014044812/article/details/80641578

你可能感兴趣的:(Linux,计算机,php)