Symfony: Difference between revisions
Jump to navigation
Jump to search
Line 60: | Line 60: | ||
export ORACLE_HOME='/opt/cli/oracle/oracle19c';\ | export ORACLE_HOME='/opt/cli/oracle/oracle19c';\ | ||
export PATH="$ORACLE_HOME/instantclient_19_10:$PATH";\ | export PATH="$ORACLE_HOME/instantclient_19_10:$PATH";\ | ||
export LD_LIBRARY_PATH="$ORACLE_HOME/instantclient_19_10" | export LD_LIBRARY_PATH="$ORACLE_HOME/instantclient_19_10";\ | ||
cat << EOF > /etc/ld.so.conf.d/oracle-instantclient.conf | cat << EOF > /etc/ld.so.conf.d/oracle-instantclient.conf | ||
$ORACLE_HOME/instantclient_19_10 | $ORACLE_HOME/instantclient_19_10 | ||
EOF | EOF | ||
</source> | |||
<source lang="bash"> | |||
ldconfig | ldconfig | ||
sqlplus | sqlplus |
Revision as of 10:03, 27 May 2022
Installation
Symfony 4.4
rm -rf /usr/local/bin/symfony
curl -sS https://get.symfony.com/cli/installer | bash
export PATH="$HOME/.symfony/bin:$PATH"
symfony new --full AcademiaBash --version=4.4.*
symfony new --full AcademiaBash --version=lts
cd AcademiaBash
symfony server:start
symfony server:start --no-tls
PHP Module
PHP: sudo apt install php7.4 php7.4-common libapache2-mod-php7.4 php7.4-cli sudo systemctl restart apache2 sudo apt install php8.1 php8.1-common libapache2-mod-php8.1 php8.1-cli sudo systemctl restart apache2 |
PHP FPM: sudo apt install php7.4-fpm php7.4-common libapache2-mod-fcgid php7.4-cli sudo a2enmod proxy_fcgi setenvif && sudo a2enconf php7.4-fpm sudo apt install php8.1-fpm php8.1-common libapache2-mod-fcgid php8.1-cli sudo a2enmod proxy_fcgi setenvif && sudo a2enconf php8.1-fpm |
MariaDB
sudo apt install mariadb-server sudo mysql_secure_installation sudo apt install phpmyadmin
Oracle Client
lxc launch images:oracle/8 symfony
lxc exec symfony /usr/bin/bash
nmcli c up System\ eth0
dnf install -y oracle-release-el8 oraclelinux-developer-release-el8
# dnf install -y oracle-instantclient19.10-basic
dnf install -y zip wget libaio
dnf install -y @php:7.4
export ORACLE_HOME='/opt/cli/oracle/oracle19c';\
export PATH="$ORACLE_HOME/instantclient_19_10:$PATH";\
export LD_LIBRARY_PATH="$ORACLE_HOME/instantclient_19_10";\
cat << EOF > /etc/ld.so.conf.d/oracle-instantclient.conf
$ORACLE_HOME/instantclient_19_10
EOF
ldconfig
sqlplus
Knowledge
ps aux | grep php-fpm service php8.1-fpm status systemctl status php8.1-fpm.service
lxc launch images:oracle/8 symfony lxc exec symfony /usr/bin/bash nmcli c up System\ eth0 ip a && ip r