PHP accelerator and Short_open_tag with prestashop

Started by venty, June 26, 2018, 04:58:42 PM

Previous topic - Next topic

venty

Hello,

I tried to install prestashop version 1.7.3.3 and one of my screens come up with the following inscriptions:

Install and/or enable a PHP accelerator (highly recommended)???
Short_open_tag set Off in php.ini?!!?

What to do??

Thanks in advance!

BR
Venty


studio4host

in file /usr/local/php/php.ini check for short tags and set to on:
short_open_tag = On
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

venty

Hi,

...in fact, I want this directive "short_open_tag" to be enabled or disabled only for a specific folder and not for all users and / or folders...

Thanks in advance!

BR
Venty

studio4host

by default in cwp its enabled for all as many scripts could have issues if not enabled.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

venty

Ok, but how can the directive "short_open_tag" to be enabled or disabled only for a specific folder?!?

I use prestashop..

Thanks in advance!

BR
Venty

studio4host

you can test by using php.ini in that folder, but anyway as said before it should be enabled as it wiil cause issues with many other scripts if not enabled.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

venty

Hi,

thank you all, but the thing happened not locally php.ini to the  folder,  but with a file named .user.ini  ....

I read it somewhere and I hope this is the right decision ...

BR
Venty

studio4host

VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

venty

I don't want to allow users to modify and use custom php.ini per folder, I want directive "short_open_tag" to be enabled or disabled only for a this folder...?!?

glorency

Quote from: venty on June 26, 2018, 04:58:42 PM
Hello,

I tried to install prestashop version 1.7.3.3 and one of my screens come up with the following inscriptions:

Install and/or enable a PHP accelerator (highly recommended)???
Short_open_tag set Off in php.ini?!!?

What to do??

Thanks in advance!

BR
Venty

To Fulfill Presta Requirement is quite easy on CWP Server. My suggestions:
1.Install Latest PHP-FPM 7.3.2 using PHP-FPM Selector  and also select the required extension
2.Again Install Latest PHP 7.3.2 using PHP Selector v2 and also select the required extension
3.Now Install and Build Latest PHP 7.3.2 using PHP Version Switcher v2 and don't forget to select the required extension
4.WebServer Settings >> WebServer Domain Conf >> Select a UserName >> username >> Apache->php-fpm
5.Now Fix the permission : User Accounts >> Fix Permissions

But Remember intl  is backdated for Latest Presta 1.7.5 , So you need to update this library to intl 63.1

Now your environment is ready for Presta hosting. [Tested]

venty

Hi,

...at points 1, 2 and 3 you say "and also select the required extension", which extension?
and item 5 what happens in its implementation?

Br
Venty

glorency

Quote from: venty on March 14, 2019, 11:16:11 AM
Hi,

...at points 1, 2 and 3 you say "and also select the required extension", which extension?
and item 5 what happens in its implementation?

Br
Venty

1. For PHP-FPM : Select all the extension except memcached & recode because Php IMAP will not work with recode and I will not use memcached because it is vulnerable with udp 11211

2. Repeat the step 1 using PHP Selector v2
3. Now Install and Build Latest PHP 7.3.2 using PHP Version Switcher v2 with all the extension except  litespeed, memcached & recode , dso-handler and fpm

N.B: fpm - Php Handler. Experimental not for public use!!!

PHP-FPM supports zend-opcache and apcu which are prerequisite for Presta 1.7.5

Think your have a domain which is domain.com and you have username for that domain. which is domain.

4.Now Goto WebServer Settings >> WebServer Domain Conf >> Select a UserName >> username >> Apache->php-fpm
5.Now Fix the permission : User Accounts >> Fix Permissions , If necessary

if you need more help , just reply

venty

Hi,

thank you for the answer, but ask:
Why is memcached vulnerable?
IMAP why do I use it in a presta?
Аnd about 4 only Apache->php-fpm , Varnish & Nginx ???

Thanks in advance!

BR
Venty