[ apache24 (PHP 7) ] Web Server

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
Post Reply
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

[ apache24 (PHP 7) ] Web Server

Post by outkastm »

Image

About :

Applicable models: x.64 series
Applicable TOS4: 4.1.27 or later versions
Applicable TOS5: 5.0.130 or later versions
App download: https://tmnascommunity.eu/download/apache24

Required packages:

None

Include:

Code: Select all

apache=2.4.54
php=7.4.30
On TOS4, the folder /mnt/appdata/htdocs2 will be created on first install for your website (just have to create a share called htdocs2).
Listen on port 89 (449 in https)
Manage httpd.conf, httpd-ssl.conf and php.ini from package WebUI

Include apache modules:

Code: Select all

mod_authz_host.so      mod_dir.so                  mod_lbmethod_heartbeat.so    mod_proxy_hcheck.so    mod_socache_dbm.so
libphp7.so              mod_authz_owner.so     mod_dumpio.so               mod_ldap.so                  mod_proxy_html.so      mod_socache_dc.so
mod_access_compat.so    mod_authz_user.so      mod_echo.so                 mod_log_config.so            mod_proxy_http2.so     mod_socache_memcache.so
mod_actions.so          mod_autoindex.so       mod_env.so                  mod_log_debug.so             mod_proxy_http.so      mod_socache_redis.so
mod_alias.so            mod_bucketeer.so       mod_example_hooks.so        mod_log_forensic.so          mod_proxy_scgi.so      mod_socache_shmcb.so
mod_allowmethods.so     mod_buffer.so          mod_example_ipc.so          mod_logio.so                 mod_proxy.so           mod_speling.so
mod_asis.so             mod_cache_disk.so      mod_expires.so              mod_macro.so                 mod_proxy_uwsgi.so     mod_ssl.so
mod_auth_basic.so       mod_cache.so           mod_ext_filter.so           mod_md.so                    mod_proxy_wstunnel.so  mod_status.so
mod_auth_digest.so      mod_cache_socache.so   mod_file_cache.so           mod_mime_magic.so            mod_ratelimit.so       mod_substitute.so
mod_auth_form.so        mod_case_filter_in.so  mod_filter.so               mod_mime.so                  mod_reflector.so       mod_suexec.so
mod_authn_anon.so       mod_case_filter.so     mod_headers.so              mod_negotiation.so           mod_remoteip.so        mod_unique_id.so
mod_authn_core.so       mod_cern_meta.so       mod_heartbeat.so            mod_optional_fn_export.so    mod_reqtimeout.so      mod_unixd.so
mod_authn_dbd.so        mod_cgid.so            mod_heartmonitor.so         mod_optional_fn_import.so    mod_request.so         mod_userdir.so
mod_authn_dbm.so        mod_cgi.so             mod_http2.so                mod_optional_hook_export.so  mod_rewrite.so         mod_usertrack.so
mod_authn_file.so       mod_charset_lite.so    mod_ident.so                mod_optional_hook_import.so  mod_sed.so             mod_version.so
mod_authn_socache.so    mod_data.so            mod_imagemap.so             mod_proxy_ajp.so             mod_session_cookie.so  mod_vhost_alias.so
mod_authnz_fcgi.so      mod_dav_fs.so          mod_include.so              mod_proxy_balancer.so        mod_session_crypto.so  mod_watchdog.so
mod_authnz_ldap.so      mod_dav_lock.so        mod_info.so                 mod_proxy_connect.so         mod_session_dbd.so     mod_xml2enc.so
mod_authz_core.so       mod_dav.so             mod_isapi.so                mod_proxy_express.so         mod_session.so         openldap
mod_authz_dbd.so        mod_dbd.so             mod_lbmethod_bybusyness.so  mod_proxy_fcgi.so            mod_setenvif.so        slapd
mod_authz_dbm.so        mod_deflate.so         mod_lbmethod_byrequests.so  mod_proxy_fdpass.so          mod_slotmem_plain.so
mod_authz_groupfile.so  mod_dialup.so          mod_lbmethod_bytraffic.so   mod_proxy_ftp.so             mod_slotmem_shm.so
Include PHP extensions:

Code: Select all

Core
ctype
curl
date
dom
enchant
filter
gd
gmp
hash
iconv
imap
intl
json
libxml
mysqli
mysqlnd
openssl
pcre
posix
pspell
readline
Reflection
session
SimpleXML
sockets
sodium
SPL
standard
tidy
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
Zend OPcache

[Zend Modules]
Zend OPcache

Include Dynamic extension (activate what is needed)

Code: Select all

apcu.so      dba.so       ftp.so      mailparse.so  memcache.so  pcntl.so      pdo_pgsql.so   phar.so    rar.so        soap.so  xsl.so
bcmath.so    exif.so      gettext.so  mbstring.so   mongodb.so   pdo_dblib.so  pdo.so         propro.so  redis.so      sqlite3.so  zip.so
bz2.so       fileinfo.so  imagick.so  mcrypt.so     odbc.so      pdo_mysql.so  pdo_sqlite.so  radius.so  shmop.so      wddx.so     zlib.so
calendar.so  filter.so    ldap.so     memcached.so  opcache.so   pdo_odbc.so   pgsql.so       raphf.so   smbclient.so  xattr.so
About :

https://httpd.apache.org
https://www.php.net


How to manully install this app on TerraMaster application store?
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

Re: [ apache24 (PHP 7) ][ 2.4.46.2 ] Web Server

Post by outkastm »

up to 2.4.46.2
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

Re: [ apache24 (PHP 7) ][ 2.4.46.3 ] Web Server

Post by outkastm »

up to 2.4.46.3 (updated php ver to 7.4.24)
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Post by outkastm »

up to 2.4.51.0
Roccia7
Posts: 62
Joined: 05 Mar 2020, 05:02
Italy

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Post by Roccia7 »

Hello outkastm, i tried to install apache but it doesn't work. The module is stopped and i can't restart it. When i try to start web ui it isn't reacheble

In error log there is this message:
<br />
<b>Warning</b>: fopen(/usr/local/apache24/bin/error_log): failed to open stream: No such file or directory in <b>/usr/www/modules/apache24/www/5.php</b> on line <b>83</b><br />
And in access log i have this
<br />
<b>Warning</b>: fopen(/usr/local/apache24/bin/access_log): failed to open stream: No such file or directory in <b>/usr/www/modules/apache24/www/4.php</b> on line <b>83</b><br />

Which could be the problem?
TNAS F2-220
TOS 5.0.176
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Post by outkastm »

that means the server has never started and the log files are missing
Could you connect with SSH and run :

Code: Select all

/usr/local/apache24/sys/bin/httpd -f /mnt/appdata/MOD_CONFIG/apache24/httpd.conf -k start
What message do you get ?
User avatar
Freddy
Posts: 2
Joined: 16 Nov 2021, 06:06

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Post by Freddy »

Hello,
I'm very interested by this package ! but I didn't success to install it. (failed at 50%)
I think it is because I have a F4-210 model with an ARMv8 processor, and not a X86.

I found only x86 version like "apache24_V2.4.51.0_x86_64.tpk"

Do you know where I can find an ARM version ?
or is it possible to make it one ?

it will be great ! :)
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Post by outkastm »

Sorry, for the moment there is no version available for ARM platform
User avatar
Freddy
Posts: 2
Joined: 16 Nov 2021, 06:06

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Post by Freddy »

grrr, do you think it could be a arm version in a small time ?
or I need to find another solution.

in fact currently I use "web server" with "php" and when I want to include phpMyAdmin in my php pages I have this error :

"Composer detected issues in your platform: Your Composer dependencies require the following PHP extensions to be installed: xml"

do you know how could I solve it ?
how to add "xml" extension ?
Roccia7
Posts: 62
Joined: 05 Mar 2020, 05:02
Italy

Re: [ apache24 (PHP 7) ][ 2.4.51.0 ] Web Server

Post by Roccia7 »

outkastm wrote: 15 Nov 2021, 04:59 that means the server has never started and the log files are missing
Could you connect with SSH and run :

Code: Select all

/usr/local/apache24/sys/bin/httpd -f /mnt/appdata/MOD_CONFIG/apache24/httpd.conf -k start
What message do you get ?
I tried with

Code: Select all

/usr/local/apache24/sys/bin/httpd -f
and the message is

Code: Select all

No such file or directory
With

Code: Select all

/mnt/appdata/MOD_CONFIG/apache24/httpd.conf -k start
This is the message

Code: Select all

-bash: /mnt/appdata/MOD_CONFIG/apache24/httpd.conf: Permission denied
TNAS F2-220
TOS 5.0.176
Post Reply