seLinux and Apache
I typically move my root directory for Apache and this can get complicated when seLinux is enforced but with a bit of knowledge this can be done without disabling seLinux. display current state of seLinux: getenforce displays current permissions and seLinux settings for a directory (ex. ls -ldZ /var/www/html) ls -ldZ [directory path] Executing: ls -ldZ […]
Create a partition, format, and mount on RHEL/Centos
Here is a straight forward method for partitioning, format, and mount a new volume on a Centos or RHEL system. These steps would be performed after physically (or virtually) connecting the new volume. sudo fdisk -l This command will display a list of volumes and their partitions on the system. You can use this to […]
Disable Errors from displaying for PHP
You can disable errors from displaying on you website by modifying the php.ini file or you can add the following to you web page: error_reporting(0); @ini_set(‘display_errors’, 0); Source: http://stackoverflow.com/questions/1308379/how-can-i-stop-php-notices-from-appearing-in-wordpress
Force WordPress not to display PHP errors
If you want to disable php errors from being displayed on your wordpress site you can add the following to your wp-config.php file: define(‘WP_DEBUG’, false); I have, however, experienced instances where plugins will still cause notices to show on the webpages of my site. To make sure no PHP notices show on the site I […]
Check MySQL Database for Errors and Repair
When checking the mysql server logs (located at /var/log/mysqld.log) I started seeing errors ending in: …is marked as crashed and should be repaired. You can use (run from server cli): mysqlcheck [database name] to check all of the tables. If one is identified as being in an error state you can repair it using (run […]
This website uses cookies to improve your browsing experience. Cookies help us remember your preferences, keep you logged in, and understand how you interact with our site. We do not share any personal information collected by cookies with third parties.