Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computers:truenas:famp [30-Oct-2021 13:29] Steve Joyntcomputers:truenas:famp [02-Feb-2025 16:14] (current) – external edit 127.0.0.1
Line 46: Line 46:
   defaultrouter6=none \   defaultrouter6=none \
   resolver="nameserver ${DNS_IP:?}"   resolver="nameserver ${DNS_IP:?}"
-  +
 </code> </code>
  
Line 53: Line 53:
 jexec "ioc-${JAIL_NAME:?}" /bin/sh -c \ jexec "ioc-${JAIL_NAME:?}" /bin/sh -c \
   "echo \"${LAN_IP:? ${DOMAIN_NAME:? ${DOMAIN_NAME%%.*}\" >> /etc/hosts"   "echo \"${LAN_IP:? ${DOMAIN_NAME:? ${DOMAIN_NAME%%.*}\" >> /etc/hosts"
-  +
 </code> </code>
  
Line 60: Line 60:
 jexec "ioc-${JAIL_NAME:?}" \ jexec "ioc-${JAIL_NAME:?}" \
   pkg update   pkg update
-  +
 </code> </code>
  
Line 77: Line 77:
 jexec "ioc-${JAIL_NAME:?}" /bin/sh -c \ jexec "ioc-${JAIL_NAME:?}" /bin/sh -c \
   "echo \"ServerName ${DOMAIN_NAME:?}\" >> /usr/local/etc/apache24/httpd.conf"   "echo \"ServerName ${DOMAIN_NAME:?}\" >> /usr/local/etc/apache24/httpd.conf"
-  +
 </code> </code>
  
Line 84: Line 84:
 jexec "ioc-${JAIL_NAME:?}" \ jexec "ioc-${JAIL_NAME:?}" \
   sysrc apache24_enable=YES   sysrc apache24_enable=YES
-  +
 </code> </code>
  
Line 91: Line 91:
 jexec "ioc-${JAIL_NAME:?}" \ jexec "ioc-${JAIL_NAME:?}" \
   service apache24 start   service apache24 start
-  +
 </code> </code>
  
Line 101: Line 101:
   -j "ioc-${JAIL_NAME:?}" \   -j "ioc-${JAIL_NAME:?}" \
   install mysql80-client mysql80-server   install mysql80-client mysql80-server
-  +
 </code> </code>
  
Line 108: Line 108:
 jexec "ioc-${JAIL_NAME:?}" \ jexec "ioc-${JAIL_NAME:?}" \
   sysrc mysql_enable=YES   sysrc mysql_enable=YES
-  +
 </code> </code>
  
Line 115: Line 115:
 jexec "ioc-${JAIL_NAME:?}" \ jexec "ioc-${JAIL_NAME:?}" \
   service mysql-server start   service mysql-server start
-  +
 </code> </code>
  
Line 128: Line 128:
 jexec "ioc-${JAIL_NAME:?}" \ jexec "ioc-${JAIL_NAME:?}" \
   mysql_secure_installation   mysql_secure_installation
-  +
 </code> </code>
  
Line 142: Line 142:
 jexec "ioc-${JAIL_NAME:?}" \ jexec "ioc-${JAIL_NAME:?}" \
   mysql_config_editor set --host=localhost --user=root --password   mysql_config_editor set --host=localhost --user=root --password
-  +
 </code> </code>
 Use the random password generated at step 4. Use the random password generated at step 4.
Line 173: Line 173:
     php${PHP_VER:?}-pecl-redis      \     php${PHP_VER:?}-pecl-redis      \
     php${PHP_VER:?}-SimpleXML     php${PHP_VER:?}-SimpleXML
-    +
 </code> </code>
  
Line 180: Line 180:
 jexec "ioc-${JAIL_NAME:?}" \ jexec "ioc-${JAIL_NAME:?}" \
   cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini   cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini
 +
 </code> </code>
 You may want to amend the configuration manually You may want to amend the configuration manually
Line 185: Line 186:
 jexec "ioc-${JAIL_NAME:?}" \ jexec "ioc-${JAIL_NAME:?}" \
   vi /usr/local/etc/php.ini   vi /usr/local/etc/php.ini
-  +
 </code> </code>
  
Line 210: Line 211:
 jexec "ioc-${JAIL_NAME:?}" \ jexec "ioc-${JAIL_NAME:?}" \
   apachectl configtest   apachectl configtest
-  +
 </code> </code>
  
Line 217: Line 218:
 jexec "ioc-${JAIL_NAME:?}" \ jexec "ioc-${JAIL_NAME:?}" \
   apachectl restart   apachectl restart
-  +
 </code> </code>
  
Line 259: Line 260:
 jexec "ioc-${JAIL_NAME:?}" \ jexec "ioc-${JAIL_NAME:?}" \
   ln -s /usr/local/www/apache24/data /www   ln -s /usr/local/www/apache24/data /www
-  +
 </code> </code>
  
  • computers/truenas/famp.1635600578.txt.gz
  • Last modified: 02-Feb-2025 16:12
  • (external edit)