Author Topic: PHP accelerator and Short_open_tag with prestashop  (Read 2447 times)

0 Members and 2 Guests are viewing this topic.

Offline
***
PHP accelerator and Short_open_tag with prestashop
« 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

Offline
***
Re: PHP accelerator and Short_open_tag with prestashop
« Reply #1 on: July 25, 2018, 06:03:49 PM »
??"??

Offline
*
Re: PHP accelerator and Short_open_tag with prestashop
« Reply #2 on: July 26, 2018, 06:47:04 AM »
in file /usr/local/php/php.ini check for short tags and set to on:
Code: [Select]
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.

Offline
***
Re: PHP accelerator and Short_open_tag with prestashop
« Reply #3 on: July 26, 2018, 02:22:43 PM »
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

Offline
*
Re: PHP accelerator and Short_open_tag with prestashop
« Reply #4 on: July 27, 2018, 11:35:48 AM »
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.

Offline
***
Re: PHP accelerator and Short_open_tag with prestashop
« Reply #5 on: July 30, 2018, 05:59:32 AM »
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
« Last Edit: July 30, 2018, 06:36:44 AM by venty »

Offline
*
Re: PHP accelerator and Short_open_tag with prestashop
« Reply #6 on: July 30, 2018, 01:45:38 PM »
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.

Offline
***
Re: PHP accelerator and Short_open_tag with prestashop
« Reply #7 on: July 31, 2018, 04:53:03 PM »
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

Offline
*
Re: PHP accelerator and Short_open_tag with prestashop
« Reply #8 on: August 01, 2018, 11:45:13 AM »
you should read more about suphp handler here and config file locations
http://wiki.centos-webpanel.com/suphp-detailed-info
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.

Offline
***
Re: PHP accelerator and Short_open_tag with prestashop
« Reply #9 on: August 01, 2018, 04:02:41 PM »
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...?!?

Online
*
Re: PHP accelerator and Short_open_tag with prestashop
« Reply #10 on: March 14, 2019, 08:59:00 AM »
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]

Offline
***
Re: PHP accelerator and Short_open_tag with prestashop
« Reply #11 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

Online
*
Re: PHP accelerator and Short_open_tag with prestashop
« Reply #12 on: March 15, 2019, 05:01:04 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

Offline
***
Re: PHP accelerator and Short_open_tag with prestashop
« Reply #13 on: March 15, 2019, 07:15:07 AM »
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