Coder Social home page Coder Social logo

xpf0000 / phpwebstudy Goto Github PK

View Code? Open in Web Editor NEW
570.0 570.0 47.0 1.03 GB

Powerful Web Server and PHP Environment. Support macOS / Windows / Linux

Home Page: https://www.macphpstudy.com

License: BSD 3-Clause "New" or "Revised" License

JavaScript 6.38% HTML 0.07% Vue 51.58% Shell 1.42% SCSS 6.11% TypeScript 34.44%
development-environment electron laravel laravel-herd local-dns-server local-web-server mamp mamp-pro php php-environment php-obfuscator phpstudy web-ide wordpress xampp

phpwebstudy's People

Contributors

dcto avatar xpf0000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

phpwebstudy's Issues

Nginx pretty url / rewrite isn't working on mac

Hello,

// I just discovered your fantastic software, because I didn't want to use something like MAMP, or MAMP pro.
// Thank you for it, it's very fast and neat!

The problem I have :
Using urls like /xxxx/xxx with Nginx give me 404 Not Found.
From a fresh install PhpWebStudy-1.0.46-arm64.dmg (on M1 pro)

I refreshed permalinks in wordpress too, two times. Didn't work for me.

Is there a config hack needed?

PS: Cannot use apache too, (basic version and brew version too) : got forbidden on 8080

swoole建议

建议安装swoole扩展时开启,--enable-openssl选择。
否则很多无法运行swoole项目,会报以下错误

you must configure with `--enable-openssl` to support ssl connection when compiling Swoole 

密码错误,请重新输入

大佬,我刚下载了Mac版的,然后在打开软件后第一步,【请输入电脑用户密码】,输入密码后显示【密码错误,请重新输入】

php多版本的时候,终端命令执行php的时候希望可以能指定版本

比如我安装了
PHP7.3
PHP7.4
PHP8.2

然后项目终端命令php start.php的时候是以PHP7.4去执行的,现在好像是以最后安装的那个版本。
如果可以在PhpWebStudy里能指定版本,或者可以设置多个
php73 start.php
php74 start.php
php82 start.php

以及默认指定的php start.php

然后现在卸载掉默认的PHP版本后,执行php命令会提示“command not found: php”
自己手动设置才可以

brew link --overwrite --force [email protected]

还有一个问题,安装多个php版本后,我重启php会有起不来的情况。
An another FPM instance seems to already listen on /tmp/phpwebstudy-php-cgi-82.sock

无法调用Redis

redis已安装,但是php $redis = new redis(); 程序直接死掉了

截屏2023-09-09 下午5 23 45

版本管理不显示可以下载的版本

系统版本:MacOS M1 13.3.1
安装ARM版本的APP,打开之后
Nginx只展示本地之前通过brew安装的1.23.4的版本;
切换到PHP,展示了之前安装的7.4和8.2版本,版本管理tab一直转圈,显示:可用版本获取中...
切换到MongoDB,本地之前没有安装,版本管理一直转圈,显示:可用版本获取中...

redis 多版本启动失败

76553:C 25 Sep 2023 11:05:26.910 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
76553:C 25 Sep 2023 11:05:26.910 # Redis version=6.2.13, bits=64, commit=00000000, modified=0, pid=76553, just started
76553:C 25 Sep 2023 11:05:26.910 # Configuration loaded
76553:M 25 Sep 2023 11:05:26.911 * monotonic clock: POSIX clock_gettime
76553:M 25 Sep 2023 11:05:26.913 * Running mode=standalone, port=6379.
76553:M 25 Sep 2023 11:05:26.913 # Server initialized
76553:M 25 Sep 2023 11:05:26.913 # Can't handle RDB format version 11
76553:M 25 Sep 2023 11:05:26.913 # Fatal error loading the DB: Invalid argument. Exiting.

服务中 显示运行中

nginx ssl配置

选择路径后,如果路径有空格,会启动出错!
需要给路径加上引号
ssl_certificate
ssl_certificate_key

支持 Hosts 站点列表点击直接跳转

目前 Hosts 页面想访问配置的站点,要么手动复制地址,要么点击站点后面菜单复制,很麻烦,可以支持一下站点列表点击后直接调用默认浏览器打开对应页面。

安装服务失败,请看一下怎么解决,我百度了半天还是无法解决

redis-5.0.8 未安装,开始安装,请稍候...
Error: [email protected]: Calling cellar in a bottle block is disabled! Use brew style --fix on the formula to update the style or use sha256 with a cellar: argument instead.
Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/[email protected]:9

安装失败

image

按照错误提示,命令行:brew style --fix /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/[email protected]

image

然后运行还是一样的报错,能是什么原因吗

debug调试

拓展那里可以将XDebug的调试组件单独放出来,自动化配置嘛,就像phpstudy一样,调试是非常重要的一个功能

无法读取到pecl安装的扩展

有没有办法使PHP加载 本机brew安装的php.ini文件呢? 现在发现以前的 PHP 安装的扩展在使用 phpwebstudy 的 php 后无法加载到...

➜ lib php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDO
pdo_dblib
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
pspell
readline
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xdebug
xlswriter     ----> 这里
xml
xmlreader
xmlwriter
xsl
zip
zlib

[Zend Modules]
Xdebug

报错日志:

[21-Jul-2022 20:00:42] NOTICE: reloading: execvp("/opt/homebrew/Cellar/php/8.1.8/sbin/php-fpm", {"/opt/homebrew/Cellar/php/8.1.8/sbin/php-fpm", "-p", "/Users/code/Library/PhpWebStudy/server/php/common/var", "-y", "/Users/code/Library/PhpWebStudy/server/php/common/conf/php-fpm.conf", "-c", "/Users/code/Library/PhpWebStudy/server/php/common/conf/php.ini"})
[21-Jul-2022 20:00:42] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library 'xlswriter' (tried: /opt/homebrew/Cellar/php/8.1.8/lib/php/20210902/xlswriter (dlopen(/opt/homebrew/Cellar/php/8.1.8/lib/php/20210902/xlswriter, 0x0009): tried: '/opt/homebrew/Cellar/php/8.1.8/lib/php/20210902/xlswriter' (no such file), '/usr/local/lib/xlswriter' (no such file), '/usr/lib/xlswriter' (no such file)), /opt/homebrew/Cellar/php/8.1.8/lib/php/20210902/xlswriter.so (dlopen(/opt/homebrew/Cellar/php/8.1.8/lib/php/20210902/xlswriter.so, 0x0009): tried: '/opt/homebrew/Cellar/php/8.1.8/lib/php/20210902/xlswriter.so' (no such file), '/usr/local/lib/xlswriter.so' (no such file), 

无法清除自定义路径历史

在自定义版本路径里添加mysql路径后并删除后, 每次查看sql版本控制仍会出现这个路径, 在只能清除phpwebstudy的所有配置文件才能解决

利用应用中的brew下载失败

image

Error: Oh My Zsh can't be loaded from: . You need to run zsh instead.
Here's the process tree:

 PPID   PID COMMAND
    1  9623 /Applications/PhpWebStudy.app/Contents/MacOS/PhpWebStudy
 9623 12928 /Applications/PhpWebStudy.app/Contents/Frameworks/PhpWebStudy Helper.app/Contents/MacOS/PhpWebStudy Helper /Applications/PhpWebStudy.app/Contents/Resources/app.asar/dist/electron/static/fork/brew.js
12928 12934 bash /Users/fe1w0/Library/PhpWebStudy/server/cache/brew-cmd.sh -arm64 install shivammathur/php/[email protected]

/Users/fe1w0/.p10k.zsh: line 16: local: can only be used in a function
/Users/fe1w0/.p10k.zsh: line 20: builtin: setopt: not a shell builtin
/Users/fe1w0/.p10k.zsh: line 22: syntax error near unexpected token `)'
/Users/fe1w0/.p10k.zsh: line 22: `() {'
-arm64 brew install --verbose shivammathur/php/[email protected]

🤧难受,自己尝试修改,没有成功。

新版本切换PHP

更新新版本后,PHP可以同时启动2个版本的吗?设置全局切换也不管用。。 话说如果同时启动多个版本。具体是使用那个版本?

另外单独设置一个全局版本的话。感觉只有命令行生效了(因为以前那种切换方式, 例如我 php8.1的安装了扩展, 8.0的没安装。如果在使用的时候出错了我就知道当前是用的那个版本的。现在更新后,切换了8.1 ,命令行变了。但是 nginx这里没有变)

PHP 安装 redis 扩展报错

安装扩展执行命令:
/Users/ xxxx/Library/PhpWebStudy/server/cache/php-redis.sh /Users/xxxx/Library/PhpWebStudy/server/cache /usr/local/Cellar/php/8.2.10/ 5.3.7 -x86_64 ****
如安装失败, 可尝试复制命令自行尝试安装
curl: option -C: expected a positive numerical parameter
curl: try 'curl --help' or 'curl --manual' for more information
1

PhpWebStudy很好用,强烈支持推荐,提一点点后期优化功能

换mac后没有便捷的套件环境,所以直接一直使用docker来开发。
最近发现PhpWebStudy,这个对于mac上开发php来说,真的是太好用了。
已推荐他人使用,支持!

希望后面能有更好的优化得更好。
个人习惯把程序界面退出,但是程序别退了,然后希望把图标加到菜单栏,点击图标会有快捷启动,关闭,打开主界面便捷功能等。
然后希望tools可以做成插件,让大家一起贡献。FeHelper这个插件里面的功能都是非常合适复写的,好用。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.