Bash - Allow WordPress to Write Session Data

#!/bin/bash : ' php.ini see Get php.ini path php -r \@phpinfo\(\)\; | grep 'ini' -m 1 Find the session save path cat /etc/php.ini | grep '' --context=2 ' # WordPress needs to be able to write to this directory # Give it control by setting the owner to <user:group> chown -R apache:apache /var/lib/php/session

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.