Skip to content
Advertisement

Tag: apache

Does PHP do any parsing on the php.ini file?

Running PHP Version 7.1.30 under RHEL 7.7. I’m wanting to bump memory_limit, but wasn’t sure if I had the syntax right (i.e. 256M or 256MB). So to start with I put a bad value “Hugo” in as the memory_limit setting. The trouble with this is the result of phpinfo() (run under httpd) literally has the string “Hugo” in place, i.e.:

How can I resolve a cross-site Google Analytics cookie `SameSite=None` warning in Chrome on Apache 2.4 and PHP 7.1?

My client’s website is getting these SameSite cookie warnings in Chrome. I’ve searched all over and I can’t get the warnings to go away. The cookies are due to Google Ad Conversion Tracking on a Wordpress Site. The site is on a Apache/2.4.7 (Ubuntu) hosted by DreamHost running PHP 7.1 for compatibility reasons. To my .htaccess file, I’ve tried adding:

How to remove .php extension only for pages under a sub directory?

I am trying to remove .php extension for only pages under a subcategory folder of the website. currently: example.com/blog/my-first-blog.php what i want: example.com/blog/my-first-blog/ I have tried the following rule in .htaccess (placed in root) but it still shows .php Answer I figured it out I just had to create .htaccess file under the “/guide/” directory. with the following rule note

Advertisement