MAMP, a local webserver environment for the Mac, is perfect for testing, developing and designing with WordPress. MAMP comes with a ready to use configuration of Apache, MySQL and PHP in a single folder.
But after installing and configuring a WordPress blog, you may loose the access to the MAMP start page:
Forbidden
You don’t have permission to access /MAMP/ on this server.
Apache/2.0.63 (Unix) PHP/5.2.11 DAV/2 Server at localhost Port XXXX
That’s a big issue, as the start page links to the local phpMyAdmin page for MySQL-database configuration. So you cannot admin the database anymore.
I traced down the problem to a wrong placed file: When I configured the WordPress installation via the web-interface, an .htaccess file was placed in the root directory of my harddrive. Quite scary … but a problem which can be fixed easily
As always: no guarantee and on your own risk … especially the Terminal is a wonderful tool … but if you do the wrong thing, you may be in serious trouble!
You normally do not recognize the .htaccess file within the Finder: all filenames starting with a dot are hidden files in a UNIX system … and the Finder does not show those hidden files. But if you use the Terminal, you can look at all the hidden files easily.
So fire up the Terminal app and go to the root directory of your hard drive:
cd / |
then looks at all the files in your root directory:
ls -la |
If you find a .htaccess there … you probably found your problem. But look inside the file before your rename or delete it:
cat .htaccess |
The easiest way to proceed is to rename the htaccess file:
mv .htaccess htaccess-backup |
This way the file is shown in the Finder again and does not confuse your MAMP installation. If you know what to do you can delete the renamed file now within the Finder and drag it to the trash
Problem: After updating the blog to WP 2.7 everything was running smooth. But when opening some of the plugin setting pages the server responded with a “500 Internal Server Error” – especially when using plugins like “XML Sitemap Generator for WordPress” or when uploading pictures. When I activated the “StatPress Reloaded”-plugin non of the admin section was accessible anymore.
Diagnosis: PHP is running out of memory.
Solution: If you are running your own root, dedicated or virtual server this is an easy bugfix: You just have to change the php.ini of your server and provide more memory to your PHP installation. On a shared hosting server – like at the webhosting solutions at 1and1 you often don’t have access to that central php.ini. But there is an easy workaround:
Create a text file and name it “php.ini” (without the quotes
) and with a single line of code in it:
memory=20MB |
This file has to be placed into the directory /wp-admin/ within your Wordpress installation.
That’s it!
I just installed the Flash based tag cloud Wordpress plugin WP-Cumulus of Roy Tanck and integrated it into the tag-cosmos-page. That 3D-tag-cloud is really great! It functions properly and is easy to configure.
The only downer is Flash … but Roy can’t help it
… the iPhone still does not know what to do with Flash and also search engines stop and do not follow links within swf files. But nevertheless – the 3D-tagcloud is really fun to use … just look here, so you know what I’m talking about!
Sources: WP-Cumuls at Wordpress.org
The development team of popular open-source blog-software Wordpress just released the security update 2.6.2. It is highly recommended to install the update to eliminate some security issues within the Wordpress installation – especially for blogs with open registration.
The update fixes a security issue caused by the weak implementation of the php function mt_rand() in many popular php-distributions. The function is used for seeding the random number generator. It also addresses the security risk of MySQL and SQL column truncation vulnerabilities. Stefan Esser reported both security-issues which are probably relevant to a lot of other php-based open-source projects. Thanks, Stefan!
Beside the fix of security issues, the Wordpress version 2.6.2 also implements some minor bugfixes. Therefor the upgrade to the newest version of WP is highly recommendet to everybody using Wordpress.
A short message to all Wordpress-bloggers: The actual security update version 2.3.3 is strongly recommended. Here at codedifferent no problems occure while upgrading.
Taking this upgrade as an opportunity – the anti spam plugin was also exchanged: In the future every commentator at codedifferent has to prove to be a pattern recognizing human. And by using the reCAPTURE-plugin we aditionally help others: The CAPCHA codes used here are not only some generated graphics – they represent words which could not be recognized by OCR-software. reCAPCHA was developed from Carnegie Mellow University and they actually support the project Internet Archive.