-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index.php plain text after install v2.4.4 #36123
Comments
Hi @francosmp. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
I tried a second installations of v2.4.3 with the next code sudo apt-get install apache2 -y Agregar permisos de servidorsudo nano /etc/apache2/sites-available/000-default.conf Agregar al final lo siguiente (control end)<Directory "/var/www/html"> Agregar Nombre del servidorsudo nano /etc/apache2/apache2.conf Agregar al final lo siguiente (control end)ServerName myip Probar si la configuración es correctasudo apache2ctl configtest sudo apt -y install software-properties-common Ordenar la lectura del servidor para que lea primero archivos index.php, cambiar el orden de las extensiones para que php sea primerosudo nano /etc/apache2/mods-enabled/dir.conf Modificar la cantidad de memoria asignadasudo nano /etc/php/7.4/apache2/php.ini Modificar lo siguientememory_limit = 4G date.timezone = America/Lima#Reiniciar apache mysql installed as abovethe same for elasticBajar composer https://getcomposer.org/download/https://getcomposer.org/doc/articles/troubleshooting.md Moverlo a binarios para usarlosudo mv composer.phar /usr/local/bin/composer composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.3 . Agregar permisos de archivosfind 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 Si lo de arriva no funca, darle sudo chmod -R 777 /var/www/html/Instalar magentobin/magento setup:install --base-url=http://192.168.1.112 --db-host=localhost --db-name=magento --db-user=magento --db-password=magento --admin-firstname=magento --admin-lastname=magento --admin-email=fsmeccap@gmail.com --admin-user=magento --admin-password=magento123 --language=es_ES --currency=PEN --timezone=America/Lima --use-rewrites=1 And im getting in chrome And debug logs says |
mcrypt was DEPRECATED in PHP 7.1.0, and REMOVED in PHP 7.2 https://www.php.net/manual/en/intro.mcrypt.php |
It is already installed 😢 |
There's something wrong with your system, maybe openssl |
Hi @francosmp , Thanks for your contribution and collaboration. Kindly provide us information in order to reproduce the issue. Let us know if you are facing any issue. Thanks |
Hello @francosmp, We have noticed that this issue has not been updated for a period of 14 Days. Hence we assume that this issue is fixed now, so we are closing it. Please raise a fresh ticket or reopen this ticket if you need more assistance on this. Regards |
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=admin@admin.com
--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.
The text was updated successfully, but these errors were encountered: