Skip to content

Index.php plain text after install v2.4.4 #36123

Closed
@francosmp

Description

@francosmp

Summary (*)

Hello guys, help me please, I followed the next steps to deploy v2.4.4 but I'm getting the index.php's plain text after installation but I don't realized what's the error

--apache
https://devdocs.magento.com/guides/v2.4/install-gde/prereq/apache.html
apt-get -y install apache2
a2enmod rewrite
systemctl restart apache2
nano /etc/apache2/sites-enabled/000-default.conf
-- agregar AllowOverrideAll
<Directory "/var/www/html">
AllowOverride All

<Directory "/var/www">
AllowOverride All

<Directory "/www/htdocs">
AllowOverride All

systemctl restart apache2
apt-get update

--mysql o https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-20-04-es\
-- si estuviera la db en remoto https://devdocs.magento.com/guides/v2.4/install-gde/prereq/mysql_remote.html
https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/ o https://dev.mysql.com/downloads/repo/apt/
-- descargar el .deb
dpkg -i mysql.deb
apt-get update
apt-get install mysql-server -y
systemctl status mysql
-- conectarte
mysql -u root -p
set explicit_defaults_for_timestamp = 'ON';
create database magento;
create user 'magento'@'localhost' IDENTIFIED BY 'magento';
GRANT ALL ON magento.* TO 'magento'@'localhost';
flush privileges;

--php
https://devdocs.magento.com/guides/v2.4/install-gde/prereq/php-settings.html
apt-get install php8.1-bcmath php8.1-ctype php8.1-bz2 php8.1-cli php8.1-common php8.1-curl php8.1-dom php8.1-fileinfo php8.1-dev php8.1-gd php8.1-iconv php8.1-igbinary php8.1-imagick php8.1-imap php8.1-intl php8.1-mbstring php8.1-memcached php8.1-msgpack php8.1-mysql php8.1-opcache php8.1-pgsql php8.1-readline php8.1-redis php8.1-ssh2 php8.1-tidy php8.1-xml php8.1-xmlrpc php8.1-xsl php8.1-zip php8.1-soap php8.1-xdebug php8.1-fpm -y
para modificar el ini, buscarlo con esto php -i | grep "Loaded Configuration File" y para el otro find / -name 'opcache.ini'
date.timezone=America/Lima
memory_limit=2G
realpath_cache_size = 10M
realpath_cache_ttl = 7200
service apache2 restart

Instalar Java para ElasticSearch

apt-get install openjdk-8-jdk -y

Validar la versión con java -version

Instalar ElasticSearch

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.0-amd64.deb
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.16.0-amd64.deb.sha512

Checkear la integraidad de lo descargado

shasum -a 512 -c elasticsearch-7.16.0-amd64.deb.sha512

Instalar elasticsearch descargado

dpkg -i elasticsearch-7.16.0-amd64.deb

Modificar el autoinicio de nuestro servidor elasticsearch cada vez que se reinicie algo

systemctl daemon-reload
systemctl enable elasticsearch.service

Iniciar elastic

exec systemctl start elasticsearch.service

Probar Elastic haciendo curl (sudo apt-get install curl -y) o entrando

curl -X GET 'http://localhost:9200'

--composer
https://getcomposer.org/download/
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer

-- instalar el repo
cd /var/www/html
rm -rf *
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.4 .

Usuario: Public Key:

Clave: Private Key:

--Set file permissions
You must set read-write permissions for the web server group before you install the Magento software. This is necessary so that the command line can write files to the Magento file system.

find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
chown -R :www-data .
chmod u+x bin/magento

--Install Magento
bin/magento setup:install
--base-url=http://localhost/
--db-host=localhost
--db-name=magento
--db-user=magento
--db-password=magento
--admin-firstname=admin
--admin-lastname=admin
--admin-email=[email protected]
--admin-user=admin
--admin-password=admin123
--language=en_US
--currency=USD
--timezone=America/Lima
--use-rewrites=1
--search-engine=elasticsearch7
--elasticsearch-host=localhost
--elasticsearch-port=9200
--elasticsearch-timeout=15

Examples (*)

Proposed solution


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users with no workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
    Screenshot from 2022-09-09 10-38-33

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.4Indicates original Magento version for the Issue report.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions