Symfony: Difference between revisions
Jump to navigation
Jump to search
(32 intermediate revisions by the same user not shown) | |||
Line 18: | Line 18: | ||
</source> | </source> | ||
==PHP | ==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 apt install php8.1 php8.1-common libapache2-mod-php8.1 php8.1-cli | ||
Line 27: | Line 29: | ||
| | | | ||
'''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 apt install php8.1-fpm php8.1-common libapache2-mod-fcgid php8.1-cli | ||
sudo a2enmod proxy_fcgi setenvif && sudo a2enconf php8. | 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== | |||
<source lang="bash"> | |||
lxc launch images:oracle/8 symfony | |||
lxc exec symfony /usr/bin/bash | |||
nmcli c up System\ eth0 | |||
</source> | |||
===Oracle19c Arm64=== | |||
---- | |||
<source lang="bash"> | |||
dnf install -y oracle-release-el8 oraclelinux-developer-release-el8 | |||
dnf install -y zip wget libaio | |||
dnf install -y @php:7.4 | |||
</source> | |||
<source lang="bash"> | |||
ORA_LINK_PREFIX='https://download.oracle.com/otn_software/linux/instantclient';\ | |||
ORA_LIBS_MODULE='basic sqlplus sdk jdbc odbc';\ | |||
ORA_HOME_CLIENT='/opt/cli/oracle/oracle19c';\ | |||
ORA_LINK_SUFFIX='linux-arm64.zip';\ | |||
ORA_LINK_MIDFIX='instantclient';\ | |||
sudo mkdir -p ${ORA_HOME_CLIENT};\ | |||
for ORA_NAME_MIDFIX in ${ORA_LIBS_MODULE};do \ | |||
ORA_NAME_MODULE="${ORA_LINK_MIDFIX}-${ORA_NAME_MIDFIX}-${ORA_LINK_SUFFIX}";\ | |||
ORA_LINK_MODULE="${ORA_LINK_PREFIX}/${ORA_NAME_MODULE}";\ | |||
ORA_FILE_MODULE="${ORA_HOME_CLIENT}/${ORA_NAME_MODULE}";\ | |||
sudo wget -cq ${ORA_LINK_MODULE} -P ${ORA_HOME_CLIENT};\ | |||
sudo unzip -q ${ORA_FILE_MODULE} -d ${ORA_HOME_CLIENT};\ | |||
sudo rm -rf ${ORA_FILE_MODULE}; done;\ | |||
sudo du -h ${ORA_HOME_CLIENT} | |||
</source> | |||
<source lang="bash"> | |||
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 | |||
</source> | |||
<source lang="bash"> | |||
ldconfig | |||
sqlplus | |||
</source> | |||
===Oracle21c Amd64=== | |||
---- | |||
<source lang="bash"> | |||
dnf install oraclelinux-developer-release-el8 oracle-instantclient-release-el8 | |||
sudo dnf module enable php:7.4 php-oci8 | |||
sudo dnf install php php-oci8-21c | |||
dnf install -y zip wget libaio | |||
dnf install -y @php:7.4 | |||
</source> | |||
<source lang="bash"> | |||
ORA_LINK_PREFIX='https://download.oracle.com/otn_software/linux/instantclient/216000';\ | |||
ORA_LINK_SUFFIX='linux.x64-21.6.0.0.0dbru.zip';\ | |||
ORA_LIBS_MODULE='basic sqlplus sdk jdbc odbc';\ | |||
ORA_HOME_CLIENT='/opt/cli/oracle/oracle21c';\ | |||
ORA_LINK_MIDFIX='instantclient';\ | |||
sudo mkdir -p ${ORA_HOME_CLIENT};\ | |||
for ORA_NAME_MIDFIX in ${ORA_LIBS_MODULE};do \ | |||
ORA_NAME_MODULE="${ORA_LINK_MIDFIX}-${ORA_NAME_MIDFIX}-${ORA_LINK_SUFFIX}";\ | |||
ORA_LINK_MODULE="${ORA_LINK_PREFIX}/${ORA_NAME_MODULE}";\ | |||
ORA_FILE_MODULE="${ORA_HOME_CLIENT}/${ORA_NAME_MODULE}";\ | |||
sudo wget -cq ${ORA_LINK_MODULE} -P ${ORA_HOME_CLIENT};\ | |||
sudo unzip -q ${ORA_FILE_MODULE} -d ${ORA_HOME_CLIENT};\ | |||
sudo rm -rf ${ORA_FILE_MODULE}; done;\ | |||
sudo du -h ${ORA_HOME_CLIENT} | |||
</source> | |||
<source lang="bash"> | |||
export ORACLE_HOME='/opt/cli/oracle/oracle21c';\ | |||
export PATH="$ORACLE_HOME/instantclient_21_6:$PATH";\ | |||
export LD_LIBRARY_PATH="$ORACLE_HOME/instantclient_21_6";\ | |||
cat << EOF > /etc/ld.so.conf.d/oracle-instantclient.conf | |||
$ORACLE_HOME/instantclient_21_6 | |||
EOF | |||
</source> | |||
<source lang="bash"> | |||
ldconfig | |||
sqlplus | |||
</source> | |||
==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 | |||
== Reference == | == Reference == | ||
Line 53: | Line 160: | ||
* [https://opis.io/json-schema/2.x/ Opis JSON Schema Documentation] | * [https://opis.io/json-schema/2.x/ Opis JSON Schema Documentation] | ||
* [https://uhp.digital/en/blog/how-to-implement-apple-sign-in/ Apple Authentication in Symfony] | * [https://uhp.digital/en/blog/how-to-implement-apple-sign-in/ Apple Authentication in Symfony] | ||
* [https://www.digitalocean.com/community/tutorials/how-to-install-mariadb-on-ubuntu-20-04 Install MariaDB on Ubuntu 20.04] | |||
* [https://packagist.org/packages/justinrainbow/json-schema <code>justinrainbow/json-schema</code>] | * [https://packagist.org/packages/justinrainbow/json-schema <code>justinrainbow/json-schema</code>] | ||
* [https://dev.mysql.com/doc/refman/5.6/en/faqs-general.html MySQL 5.6 FAQ: General] | * [https://dev.mysql.com/doc/refman/5.6/en/faqs-general.html MySQL 5.6 FAQ: General] | ||
* [https://github.com/opis/json-schema Opis JSON Schema] | * [https://github.com/opis/json-schema Opis JSON Schema] | ||
* [https://github.com/hwi/HWIOAuthBundle HWIOAuthBundle] | * [https://github.com/hwi/HWIOAuthBundle HWIOAuthBundle] | ||
| valign="top" | | |||
* [https://github.com/oracle/docker-images/tree/main/OracleLinuxDevelopers Oracle Linux Developer Images] | |||
* [https://www.oracle.com/database/technologies/appdev/xe/quickstart.html Oracle Database XE Quick Start] | |||
* [[Oracle12c Instant Client Config]] | |||
* [https://yum.oracle.com/oracle-linux-php.html PHP Packages for Oracle Linux] | |||
* [https://yum.oracle.com/oracle-instant-client.html Instant Client for Oracle Linux] | |||
* [[Docker Run Oracle DB 21c XE]] | |||
* [[Docker Run Oracle DB 18c XE]] | |||
* [https://github.com/oracle/docker-images Docker Images from Oracle] | |||
* [https://symfony.com/bundles/DoctrineMigrationsBundle/current/index.html Doctrine Migrations Bundle] | |||
* [https://symfony.com/doc/current/configuration.html Configuring Symfony] | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
* [https://blogs.oracle.com/opal/post/installing-php-74-on-oracle-linux-8 Installing PHP 7.4 on Oracle Linux 8] | |||
| valign="top" | | |||
| valign="top" | | |||
|} | |} |
Latest revision as of 11:05, 28 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
Oracle19c Arm64
dnf install -y oracle-release-el8 oraclelinux-developer-release-el8
dnf install -y zip wget libaio
dnf install -y @php:7.4
ORA_LINK_PREFIX='https://download.oracle.com/otn_software/linux/instantclient';\
ORA_LIBS_MODULE='basic sqlplus sdk jdbc odbc';\
ORA_HOME_CLIENT='/opt/cli/oracle/oracle19c';\
ORA_LINK_SUFFIX='linux-arm64.zip';\
ORA_LINK_MIDFIX='instantclient';\
sudo mkdir -p ${ORA_HOME_CLIENT};\
for ORA_NAME_MIDFIX in ${ORA_LIBS_MODULE};do \
ORA_NAME_MODULE="${ORA_LINK_MIDFIX}-${ORA_NAME_MIDFIX}-${ORA_LINK_SUFFIX}";\
ORA_LINK_MODULE="${ORA_LINK_PREFIX}/${ORA_NAME_MODULE}";\
ORA_FILE_MODULE="${ORA_HOME_CLIENT}/${ORA_NAME_MODULE}";\
sudo wget -cq ${ORA_LINK_MODULE} -P ${ORA_HOME_CLIENT};\
sudo unzip -q ${ORA_FILE_MODULE} -d ${ORA_HOME_CLIENT};\
sudo rm -rf ${ORA_FILE_MODULE}; done;\
sudo du -h ${ORA_HOME_CLIENT}
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
Oracle21c Amd64
dnf install oraclelinux-developer-release-el8 oracle-instantclient-release-el8
sudo dnf module enable php:7.4 php-oci8
sudo dnf install php php-oci8-21c
dnf install -y zip wget libaio
dnf install -y @php:7.4
ORA_LINK_PREFIX='https://download.oracle.com/otn_software/linux/instantclient/216000';\
ORA_LINK_SUFFIX='linux.x64-21.6.0.0.0dbru.zip';\
ORA_LIBS_MODULE='basic sqlplus sdk jdbc odbc';\
ORA_HOME_CLIENT='/opt/cli/oracle/oracle21c';\
ORA_LINK_MIDFIX='instantclient';\
sudo mkdir -p ${ORA_HOME_CLIENT};\
for ORA_NAME_MIDFIX in ${ORA_LIBS_MODULE};do \
ORA_NAME_MODULE="${ORA_LINK_MIDFIX}-${ORA_NAME_MIDFIX}-${ORA_LINK_SUFFIX}";\
ORA_LINK_MODULE="${ORA_LINK_PREFIX}/${ORA_NAME_MODULE}";\
ORA_FILE_MODULE="${ORA_HOME_CLIENT}/${ORA_NAME_MODULE}";\
sudo wget -cq ${ORA_LINK_MODULE} -P ${ORA_HOME_CLIENT};\
sudo unzip -q ${ORA_FILE_MODULE} -d ${ORA_HOME_CLIENT};\
sudo rm -rf ${ORA_FILE_MODULE}; done;\
sudo du -h ${ORA_HOME_CLIENT}
export ORACLE_HOME='/opt/cli/oracle/oracle21c';\
export PATH="$ORACLE_HOME/instantclient_21_6:$PATH";\
export LD_LIBRARY_PATH="$ORACLE_HOME/instantclient_21_6";\
cat << EOF > /etc/ld.so.conf.d/oracle-instantclient.conf
$ORACLE_HOME/instantclient_21_6
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