第 1 頁 (共 1 頁)
10.04 phpbrew
發表於 : 2017-02-08 14:09:37
由 yehlu
https://github.com/phpbrew/phpbrew/issues/2
代碼: 選擇全部
phpbrew install 5.4.45 +default +cgi +openssl=shared
phpbrew install 5.5.38 +default +cgi +openssl=shared
phpbrew install 5.6.30 +default +cgi +openssl=shared
phpbrew install 7.0.15 +default +cgi +openssl=shared
phpbrew install 7.1.1 +default +cgi +openssl=shared
phpbrew install 7.1.1 +default +cgi +openssl=/usr -- --with-libdir=lib64
Re: 10.04 phpbrew
發表於 : 2017-02-08 16:27:35
由 yehlu
代碼: 選擇全部
<Directory "/var/www/php54">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php54-cgi
<FilesMatch "\.php$">
SetHandler php-cgi
</FilesMatch>
</Directory>
<Directory "/var/www/php55">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php55-cgi
<FilesMatch "\.php$">
SetHandler php-cgi
</FilesMatch>
</Directory>
<Directory "/var/www/php56">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php56-cgi
<FilesMatch "\.php$">
SetHandler php-cgi
</FilesMatch>
</Directory>
<Directory "/var/www/php70">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php70-cgi
<FilesMatch "\.php$">
SetHandler php-cgi
</FilesMatch>
</Directory>
<Directory "/var/www/php71">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php71-cgi
<FilesMatch "\.php$">
SetHandler php-cgi
</FilesMatch>
</Directory>
Re: 10.04 phpbrew
發表於 : 2017-02-08 17:25:54
由 yehlu
14.04
代碼: 選擇全部
a2enmod cgi
a2enmod actions
代碼: 選擇全部
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/var/www/html/php54">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php54-cgi
<FilesMatch "\.php$">
SetHandler php-cgi
</FilesMatch>
</Directory>
<Directory "/var/www/html/php55">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php55-cgi
<FilesMatch "\.php$">
SetHandler php-cgi
</FilesMatch>
</Directory>
<Directory "/var/www/html/php56">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php56-cgi
<FilesMatch "\.php$">
SetHandler php-cgi
</FilesMatch>
</Directory>
<Directory "/var/www/html/php70">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php70-cgi
<FilesMatch "\.php$">
SetHandler php-cgi
</FilesMatch>
</Directory>
<Directory "/var/www/html/php71">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php71-cgi
<FilesMatch "\.php$">
SetHandler php-cgi
</FilesMatch>
</Directory>
Re: 10.04 phpbrew
發表於 : 2017-02-08 23:14:54
由 yehlu
Error: Make failed:
The last 5 lines in the log file:
/opt/phpbrew/build/php-7.1.1/ext/openssl/xp_ssl.c:1460: undefined reference to `SSL_select_next_proto'
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_sockop_set_option':
/opt/phpbrew/build/php-7.1.1/ext/openssl/xp_ssl.c:2284: undefined reference to `SSL_get0_alpn_selected'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
Please checkout the build log file for more details:
tail /opt/phpbrew/build/php-7.1.1/build.log
Re: 10.04 phpbrew
發表於 : 2017-02-09 11:06:57
由 yehlu
https://stacktrace.tech/2016-01-09/php7 ... %E6%A2%97/
编译错误
吃螃蟹就是做好熬夜google的准备了,这次也不例外…在Centos7编译PHP7.0.2版本的时候遇到了一个问题:
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_setup_crypto’:
/usr/local/src/php-src-php-7.0.1/ext/openssl/xp_ssl.c:1599: undefined reference to `SSL_CTX_set_alpn_protos’
/usr/local/src/php-src-php-7.0.1/ext/openssl/xp_ssl.c:1604: undefined reference to `SSL_CTX_set_alpn_select_cb’
ext/openssl/.libs/xp_ssl.o: In function `php_openssl_sockop_set_option’:
/usr/local/src/php-src-php-7.0.1/ext/openssl/xp_ssl.c:2305: undefined reference to `SSL_get0_alpn_selected’
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
google了一个晚上,发现有同学编译php7.x的时候也有遇到这个问题,不过没有看到任何解决方案。
看到SSL,首先想到的是不是openssl惹的祸,于是乎直接wget个最新的1.0.1e的openssl编译安装,然后指定 with-openssl-dir 编译,无果。接着通过 SSL_CTX_set_alpn_protos 关键词google,结果发现有非常多的关于curl与openssl联合编译出错的搜索结果,所以就考虑会不会是本机curl的问题,又于是乎wget个最新的curl编译安装,然后指定 with-curl=(curl目录)重新编译,成功了…
Re: 10.04 phpbrew
發表於 : 2017-02-11 21:50:47
由 yehlu
https://github.com/phpbrew/phpbrew/issues/770
CLIFramework\Exception\CommandClassNotFoundException: Command AppCommand not found.
Registered namespaces: [\PhpBrew\Command,\CLIFramework\Command]
Possible classnames: [AppCommand,\PhpBrew\Command\AppCommand,\CLIFramework\Command\AppCommand]
Trace:
0) CLIFramework\CommandLoader->loadClass('AppCommand')
1) CLIFramework\CommandLoader->load('app')
2) CLIFramework\CommandBase->addCommand('app', ...)
3) CLIFramework\CommandBase->command('app')
4) PhpBrew\Console->init()
5) CLIFramework\CommandBase->_init()
6) CLIFramework\Application->run(['/usr/local/bin/phpbrew'])
7) PhpBrew\Console->runWithTry(['/usr/local/bin/phpbrew'])
8) require('phar:///usr/local/bin/phpbrew/scripts/phpbrew-emb.php')
Same error here.
Last working version of phpbrew is 1.20.2
(for Ubuntu 10.04.3 LTS)
代碼: 選擇全部
curl -L -O https://github.com/phpbrew/phpbrew/raw/1.20.2/phpbrew
Re: 10.04 phpbrew
發表於 : 2017-02-12 10:44:54
由 yehlu
代碼: 選擇全部
phpbrew install 5.4.45 +default +cgi +pdo +mysql +imap +openssl=shared
phpbrew install 5.4.45 +default +apxs2=/usr/bin/apxs2 +pdo +mysql +imap +openssl=shared
phpbrew install 5.4.45 +default +fpm +pdo +mysql +imap +openssl=shared
Re: 10.04 phpbrew imap
發表於 : 2017-02-12 14:17:50
由 yehlu
http://stackoverflow.com/questions/1343 ... l-is-missi
代碼: 選擇全部
apt-get install libc-client2007e
apt-get install -y libc-client-dev libkrb5-dev
phpbrew ext install imap -- --with-kerberos --with-imap-ssl
Re: 10.04 phpbrew interbase
發表於 : 2017-02-12 15:44:36
由 yehlu
代碼: 選擇全部
apt-get install firebird2.1-dev
phpbrew ext install interbase