It is currently Tue Nov 19, 2019 10:30 am
All times are UTC + 8 hours

PHP7 and PDO on 1002t

Got a feature request? Great! Post your ideas here!

PHP7 and PDO on 1002t

Postby Thewizard » Thu Oct 18, 2018 1:38 am

PHP7 on Asustor Nas
PDO on Asustor

or is there any way to upgrade it to these Version
Thewizard
 
Posts: 1
Joined: Wed Oct 17, 2018 1:29 pm

Re: PHP7 and PDO on 1002t

Postby QProphecy » Tue Nov 20, 2018 6:44 am

Yes please ... +1
QProphecy
 
Posts: 15
Joined: Mon May 09, 2016 4:55 am

Re: PHP7 and PDO on 1002t

Postby OveS » Tue Jan 01, 2019 1:39 am

+1 Yes please. I want to upgrade Nextcloud to version 14 (and eventually version 15), PHP7 is required.
Ove S.
--- AS3202T --- Mac & Linux & Android ---
OveS
 
Posts: 8
Joined: Sat Sep 16, 2017 1:10 am
Location: France

Re: PHP7 and PDO on 1002t

Postby lecbo » Sun Jan 06, 2019 4:32 pm

+1. I want nextcloud 14 too)
lecbo
 
Posts: 2
Joined: Tue Jul 11, 2017 3:37 am

Re: PHP7 and PDO on 1002t

Postby fritzboxuser » Thu Jan 10, 2019 12:00 am

I have been in contact with asustor for about a year and have been told that php7 is now being worked on

however, it needs some optimization work as php5 is deeply anchored in the webui of asustor and php7 is not backward compatible
fritzboxuser
 
Posts: 49
Joined: Mon Sep 07, 2015 6:40 pm

Re: PHP7 and PDO on 1002t

Postby father.mande » Thu Jan 10, 2019 1:14 am

Hi,

even it's a little more complex and require (small but true) knowledge in console mode and hacking apache.conf to reflect PHP Path
You must start (waiting for Asustor version) immediately by using php7 (7.2.12) provide in Entware APKG
... Entware is available for series x86_64 / armhf / arm64 (not for x86_32)
here after the list of modules supported
Code: Select all
root@AS5002TaPhil:/volume1/.@root # opkg list | grep ^php | cut -f 1-10 -d " "
php7 - 7.2.12-1 - PHP is a widely-used general-purpose scripting
php7-cgi - 7.2.12-1 - PHP is a widely-used general-purpose scripting
php7-cli - 7.2.12-1 - PHP is a widely-used general-purpose scripting
php7-fastcgi - 7.2.12-1 - As FastCGI support is now a
php7-fpm - 7.2.12-1 - PHP is a widely-used general-purpose scripting
php7-mod-bcmath - 7.2.12-1 - Bcmath shared module
php7-mod-calendar - 7.2.12-1 - Calendar shared module
php7-mod-ctype - 7.2.12-1 - Ctype shared module
php7-mod-curl - 7.2.12-1 - cURL shared module
php7-mod-dom - 7.2.12-1 - DOM shared module
php7-mod-exif - 7.2.12-1 - EXIF shared module
php7-mod-fileinfo - 7.2.12-1 - Fileinfo shared module
php7-mod-ftp - 7.2.12-1 - FTP shared module
php7-mod-gd - 7.2.12-1 - GD graphics shared module
php7-mod-gettext - 7.2.12-1 - Gettext shared module
php7-mod-gmp - 7.2.12-1 - GMP shared module
php7-mod-hash - 7.2.12-1 - Hash shared module
php7-mod-iconv - 7.2.12-1 - iConv shared module
php7-mod-imap - 7.2.12-1 - IMAP shared module
php7-mod-intl - 7.2.12-1 - Note that this package depends in
php7-mod-json - 7.2.12-1 - JSON shared module
php7-mod-ldap - 7.2.12-1 - LDAP shared module
php7-mod-mbstring - 7.2.12-1 - MBString shared module
php7-mod-mysqli - 7.2.12-1 - MySQL Improved Extension shared module
php7-mod-mysqlnd - 7.2.12-1 - MySQL Native Driver shared module
php7-mod-opcache - 7.2.12-1 - OPcache shared module
php7-mod-openssl - 7.2.12-1 - OpenSSL shared module
php7-mod-pcntl - 7.2.12-1 - PCNTL shared module
php7-mod-pdo - 7.2.12-1 - PHP Data Objects shared module
php7-mod-pdo-mysql - 7.2.12-1 - PDO driver for MySQL shared module
php7-mod-pdo-pgsql - 7.2.12-1 - PDO driver for PostgreSQL shared module
php7-mod-pdo-sqlite - 7.2.12-1 - PDO driver for SQLite 3.x shared
php7-mod-pgsql - 7.2.12-1 - PostgreSQL shared module
php7-mod-phar - 7.2.12-1 - Phar Archives shared module
php7-mod-session - 7.2.12-1 - Session shared module
php7-mod-shmop - 7.2.12-1 - Shared Memory shared module
php7-mod-simplexml - 7.2.12-1 - SimpleXML shared module
php7-mod-snmp - 7.2.12-1 - SNMP shared module
php7-mod-soap - 7.2.12-1 - SOAP shared module
php7-mod-sockets - 7.2.12-1 - Sockets shared module
php7-mod-sqlite3 - 7.2.12-1 - SQLite3 shared module
php7-mod-sysvmsg - 7.2.12-1 - System V messages shared module
php7-mod-sysvsem - 7.2.12-1 - System V shared memory shared module
php7-mod-sysvshm - 7.2.12-1 - System V semaphore shared module
php7-mod-tokenizer - 7.2.12-1 - Tokenizer shared module
php7-mod-xml - 7.2.12-1 - XML shared module
php7-mod-xmlreader - 7.2.12-1 - XMLReader shared module
php7-mod-xmlwriter - 7.2.12-1 - XMLWriter shared module
php7-mod-zip - 7.2.12-1 - ZIP shared module
php7-pecl-dio - 0.1.0-1 - Direct I/O functions
php7-pecl-http - 3.2.0-1 - Extended HTTP Support
php7-pecl-libevent - 2017-03-24-5a726cee95ef9760fe81a60e595e87655f324594-1 - Libevent - event notification
php7-pecl-mcrypt - 1.0.1-1 - Bindings for the libmcrypt library
php7-pecl-propro - 2.1.0-1 - Property proxy
php7-pecl-raphf - 2.0.0-2 - Resource and persistent handles factory
php7-pecl-redis - 4.2.0-1 - PHP extension for interfacing with Redis
root@AS5002TaPhil:/volume1/.@root #

If you don't want to have conflict with Asustor Apache delivery ... you can have your own Apache server from Entware APKG
Code: Select all
root@AS5002TaPhil:/volume1/.@root # opkg list | grep ^apache | cut -f 1-15 -d " "
apache - 2.4.37-2 - The Apache Web Server is a powerful and flexible HTTP/1.1 compliant
apache-icons - 2.4.37-2 - The Apache Web Server is a powerful and flexible HTTP/1.1 compliant
root@AS5002TaPhil:/volume1/.@root #

The only change is the defaumt root server ... but you can share the same as Asustor used (for non web admin /share/Web) ... but remember that you don't have a full compatibility between PHP 5.5 and PHP 7.2 ... so best is to be independent during the test phase ...

Philippe.
AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 808
Joined: Sat Sep 12, 2015 2:55 am

Re: PHP7 and PDO on 1002t

Postby Darkmagister » Fri Jan 11, 2019 5:58 pm

+1 i would like php7 too, but i don't want to install another apache
AS6404T
Darkmagister
 
Posts: 31
Joined: Sat Oct 27, 2018 4:36 pm

Re: PHP7 and PDO on 1002t

Postby father.mande » Fri Jan 11, 2019 7:51 pm

Hi,
Darkmagister wrote:+1 i would like php7 too, but i don't want to install another apache


Not a real problem (if version provide by Asustor is enough)
... you can manage to use only PHP7 (if all application support it)
... you can manage to have the two version available
... ... through virtual host (more easy and secure but require to have two server name for same server (on local just duplicate hosts line, on external depends of your dynamic or static name (FQDN) provider)
... ... ... here a tutorial (adapt it) : https://tecadmin.net/install-multiple-p ... he-ubuntu/
... ... PER application by using a .htaccess in the home folder of the new application (for ex. nextcloud) with AddHandler directive
BUT I never test this solution ... (except with tagged file suffixed with .php7 and not as .php)
... ... ... here a tutorial (adapt it) for .htaccess : https://stackoverflow.com/questions/426 ... ame-server

etc. etc. ... lot of help exist on the Web ...

AND at end, when php7 will be available from Asustor ... you will have just to suppress the added configuration ...

BUT also remember that a web server can have only a small memory footprint and NO CPU when not used ... and light version exist ( ex. lighttpd ) ... Asustor assume this by using two different Web server ...one for Web Admin UI the other for user application ...
AND if you want to have a unique address and port ... mod_proxy is your solution ... use the delivered web server as an entry point (proxy) for the other web server (listening only on localhost port)

I have NO idea of the solution that Asustor will used ... but if they want to keep compatibility ... certainly they chose one of this solution ... or cancel access to lot of existing application ...
Philippe.
AS5002T / AS202TE / AS1002T
My Blog specific to my APKG : https://blog.father-mande.ovh/
User avatar
father.mande
 
Posts: 808
Joined: Sat Sep 12, 2015 2:55 am

Re: PHP7 and PDO on 1002t

Postby Kerry » Fri Feb 01, 2019 5:56 pm

Has anyone tried the new Portainer for Docker? I installed the PHP and the Httpd from Docker Hub following the course. But my NAS is AS5002T though.

https://www.asustor.com/en/online/Colle ... ?topic=145

2.PNG
2.PNG (87.96 KiB) Viewed 1675 times

1.PNG
1.PNG (79.68 KiB) Viewed 1675 times
Kerry
 
Posts: 452
Joined: Wed Jul 03, 2013 9:35 pm

Re: PHP7 and PDO on 1002t

Postby Kerry » Fri Feb 01, 2019 6:15 pm

I installed Nextcloud as well and it seems to work fine so far.

1.PNG
1.PNG (86.12 KiB) Viewed 1675 times


2.PNG
2.PNG (236.65 KiB) Viewed 1675 times
Kerry
 
Posts: 452
Joined: Wed Jul 03, 2013 9:35 pm

Next

Return to Feature Requests

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 2 guests

cron