short open tag value must be turned on in you php ini or htaccess file
Требуется помощь.
Возможно, в php нет поддержки ODBC.
Чтобы дать более точный ответ, надо иметь больше информации: http://www.1c-bitrix.ru/support/how_to_ask.php
А вообще, такие проблемы надо решать через техподдержку.
Убедитесь, что вы выполняете настройку в соответствии с руководством по установке (можно скачать у нас на сайте).
Важным моментом можеть быть следующее:
DSN: указывается строка соединения с сервером, на котором работает система управления базами данных (СУБД). Минимально в строке соединения можно указать параметры драйвера, который используется для подключения и имя сервера. Опционально можно включить в строку соединения имя пользователя, пароль и другие параметры.
Примечание: При задании строки соединения вместо имени сервера иногда рекомендуется указывать имя пользовательского DSN (предварительно необходимо создать данное соединение).
Для локального сервера (продукт устанавливается на тот же сервер, где расположена СУБД) параметр обычно имеет значение localhost.»
Проблемы решились но упёрся в следующую: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 1573 bytes) in D:\www.cont.md\bitrix\modules\main\classes\general\database.php on line 685
кто нить подскажет что это и как с этим бороться, файл по видимости закрыт зендом. Что делать.
php: «short_open_tag = On» not working
I have recently installed Win8 on my computer. Then I instaled wamp 2.2 with php 5.4 and I am unable to make short tag work.
I have already put:
into the php.ini file and I am sure that apache is loading the right file because the path to «Loaded Configuration File» in phpinfo() is good.
I would be glad for any piece of advice. Thanks.
5 Answers 5
I realized that for some reason, short_open_tag was appearing in my php.ini file twice.
If you did a find to get to that part of your php.ini file, try continuing the find to see if there is another instance.
in both the files \apache\Apache2.2.22\bin\php.ini and \bin\php\php5.4\php.ini and then restart the apache server.
Remember to restart your service (apache2, etc) for the edits to php.ini to take effect.
Make sure to replace all
occurrences within the php.ini file. In my case there were multiple places where it was defined. For me, the wrong setting was located under
And if your php.ini file is located in /etc/php/5.6/fpm you need to restart the php5.6-fpm service with
The two most common mistakes are changing the value inside the commented section (lines starting with ; are not executed) and changing the wrong configuration.
When using Apache, you will also have to run sudo systemctl reload apache2 (for Debian-based distributions) to enable the changes.
Как включить короткие теги PHP?
у меня есть веб-приложение на сервере Linux, который начинается с
мне нужно было скопировать это приложение в среду windows, и все работает нормально, за исключением того, что оператор SQL отображается по-другому. Я не знаю, связано ли это со скриптом, начинающимся с вместо потому что я не знаю, откуда включить с PHP.ini поэтому я изменил его, чтобы
Я знаю, что эти 2 высказывания должно означать то же самое, но мне нужно проверить его с для того, чтобы убедиться, что приложение точно такое же. Таким образом, я могу исключить еще одну возможность.
18 ответов
и перезапустите сервер Apache.
Это можно сделать, включив short_open_tag на php.ini:
Если у вас нет доступа к PHP.ini вы можете попробовать включить их через .реврайт файл, но возможно, хостинговая компания отключила это, если вы находитесь на общем хостинге:
для людей, которые думают, что short_open_tags-плохая практика начиная с php 5.4 shorttag будет поддерживаться везде, независимо от настройки, поэтому нет причин не использовать их, если вы можете управлять настройками на сервере. Также сказано в этой ссылке:short_open_tag
это можно сделать, включив short_open_tag в php.ini:
1.Чтобы найти php.ini-файл, в строке комментария execute
вы получите что-то вроде этого,
см. 2-ю строку из вывода комментария.Файл будет находиться в указанном пути.
3.Перезагрузите сервер, выполните этот комментарий
чтобы установить короткие теги для открытия из сценария установки Vagrant на Ubuntu:
Я вижу, что все ответы выше частично верны только. На самом деле все приложения 21st Century PHP будут иметь FastCGI Process Manager(php-fpm), поэтому, как только вы добавили php-info() в свой тест.PHP-скрипт и проверил правильный путь для PHP.ini
важно: затем вы должны перезапустить процесс php-fpm, чтобы это могло работать!
а затем, наконец, перезагрузите сервер nginx/http
вам нужно включить short_open_tags.
Как просто, как это, выполните следующие действия:
Так, short_open_tag = On
в CentOS 6 (тоже протестировано на Centos 7) вы не можете установить short_open_tag в /etc/php.ini для php-fpm. У вас будет ошибка:
вы должны отредактировать config для своего сайта, который можно найти в /etc/php-fpm.д/ВСП.conf И напишите в конце файла:
Если вы редактируете свой php.ini-файл, не забудьте перезапустить службу (apache2 и т. д.) Для редактирования в php.ini вступит в силу
How to set short tag( Asked 10 years, 8 months ago
I am using WAMPP for PHP server and in programming short tag use create a problem. I knew that it possible by change something in php.ini file but I don’t know the setting for that please help me for that.
I found this in PHP config setting file but what changes require I don’t know.
6 Answers 6
In your php.ini change the short_open_tag = Off if it’s there to this:
Click on your wamp icon then «PHP». Then click on «PHP Settings». There should be an option for «short open tag» which you should enable by clicking on it, it should show a check mark. Your wamp server will automatically restart in a few seconds and then short open tag will be enabled.
For non-wamp you need to go to your php.ini file and uncomment short_open_tag = On
set short_open_tag = 1 in your php.ini file.
first line does inlien replace of php.ini to turn on short tags second makes sure its there
Wamp 2.5 contains two versions of php.ini. If you’re running php inside Apache (as I guess you are) you need to change the one in \bin\apache\apache2.4.9\bin.
Not the answer you’re looking for? Browse other questions tagged php or ask your own question.
Linked
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.9.17.40238
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
PHP 7.0 short_open_tag won’t enable when changed in php.ini. Required to setup software I want to use.
I’m trying to setup a web application that requires shortopentag to be enabled in order to continue through the install wizard. I have set it to
in php.ini, but it still shows off in phpinfo, adn the software wizard also sees it as disabled. I’m using PHP 7.0 and Apache2.
Related
Join 1M+ other developers and:
might be a stupid question, but did you restart apache?
Not a stupid question at all. But yes, I did restart apache each time. I figured out that I was trying to change the value from a comment, and that much further down in the pnp.ini, the value was being set to off. So, though I was setting it to On, it was then being set back to Off.
My bad, and thanks for the effort to help.
Another question… Which php.ini file did you modify and which operating system are you using?
On Ubuntu for instance the proper file would be (i believe) /etc/php7.0/apache2/php.ini but if you have FPM or CLI versions of php installed as well there would be multiple php.ini files on your system.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
In your home directory, create a file called info.php.
In that file, put in the following:
Then run it in your browser, look for “Loaded Configuration File”. It should give you a path like /etc/php5/apache2/php.ini. That’s the file you need to edit. Then restart apache.
If you use nginx you should restart fpm
not a nginx server. Maybe I will save someone time)
Related
question
Redirect Loop After Submiting A form
question
How to setup Apache2 with an PHP7 installation?
I followed a small guide on how to install PHP7 (http://www.zimuel.it/install-php-7/). The installation went successful but could someone give some advice on how to use PHP in combination with Apache (Setting up servers isn’t my thing haha)? I.
question
Installing dbase on ubuntu
Please guide me in installing dbase on ubuntu droplet. I have tried every thing, yet I am not able to run dbase_open() command.