Sunday, August 21, 2016

PHP warnings on Windows

In recent PHP distributions on windows, they give you a .zip file, and you just unzip it.  If you're not getting error or warning messages on the command line, here's what you can do to fix that:

copy \path\to\phpInstallDir\php.ini-development c:\Windows\php.ini

Thursday, June 23, 2016

Allow access to phpMyAdmin to all IP address on Fedora 23 and Apache httpd 2.4

If you've installed phpMyAdmin using yum on Fedora 23, you may be getting "Forbidden: You don't have permission to access /phpmyadmin/index.php on this server." messages in the browser when you try to open up the phpMyAdmin in the web browser.  Fix the problem like this: Edit /etc/httpd/conf.d/phpMyAdmin.conf and make the following changes:

...
   <IfModule mod_authz_core.c>
     # Apache 2.4                                                            
     <RequireAny>
       Require all granted
#       Require ip xxx.xxx.xxx.xxx                                              
#       Require ip 127.0.0.1                                                    
#       Require ip ::1                                                        
     </RequireAny>
...