Category Archives: Internet

Installing an SSL Certificate to Apache on Windows

This is for a Symantec certificate but should work the same with other certificates like Positive SSL issued by Comodo. Pay attention to the paths for certificate and CA chain files.

In Zpanel, instead of looking here c:/Program Files/apache/etc for help, maybe explore these paths:

c:/zpanel/configs/apache/httpd-vhosts.conf

c:/zpanel/bin/apache/OPENSSL-README.txt

c:/zpanel/fin/conf/openssl.cnf

A good question at this point is how to first prepare an SSL Certificate Request to be sent to the certificate authority (CA) so that a certificate can be issued to you by the CA.

Organize WordPress Blog Posts into Categories Listed as Menu Topics

Log into your WordPress dashboard and in the dashboard menu under “Posts”  select “Categories.”  Add a new category such as “Press Releases” and enter “press-releases” as the slug.   Click the “Save Menu” button.  Repeat this procedure if you need to add more new categories.

Make sure that you have already setup a website navigation menu for the front-end of your website.

On the dashboard menu under “Appearance” select “Menus.” Under “Categories,” select to “View All” of the available categories which you have added.  Click the check box next to the particular category title that you want to add as a menu topic to your navigation menu, and then click the button that says “Add to Menu.” Drag the menu topics into your desired order within the Menu. Save.

Whenever you create a blog post, select the category or categories where you would like to see your particular post grouped.  Then, publish or update your post.

On the front end of your WordPress website, you should be able to select the menu-category and all of your posts that you assigned to that particular category will appear on the same page, usually in the order of the most recent posts first near the top.  In other words, each category is like an archive of all the posts to which the particular category has been assigned.

When you customize your site for where blog entries and articles are posted, you can setup a static front-page and select a different web page on your site (or possibly no page at all) where all your posts will appear regardless of category assigned.  I will need to test the “no page selected for blog posts”  scenario.

Here is a much more detailed article on the topic, including organizing into sub-categories.

https://www.it.umass.edu/support/blogs/blog-posts-organize-posts-categories

Solved Cubecart MemCached error Open_BaseDir Restriction

Upon first install of CubeCart 6.0.6 on windows with apache and zpanel, you may receive the following warnings and errors at the beginning of the install and at the top of every cart/html page, as well as admin panel, following the install:

Warning: file_exists(): open_basedir restriction in effect. File(C:\php\pear/memcached.class.php) is not within the allowed path(s): (c:/zpanel/hostdata/username/public_html/your_domain;c:/windows/temp) in C:\zpanel\hostdata\username\public_html\your_domain\classes\autoloader.class.php on line 89 Warning: file_exists(): open_basedir restriction in effect. File(C:\php\pear/memcached.php) is not within the allowed path(s): (c:/zpanel/hostdata/username/public_html/your_domain;c:/windows/temp) in C:\zpanel\hostdata\username\public_html\your_domain\classes\autoloader.class.php on line 92 Warning: file_exists(): open_basedir restriction in effect. File(C:\php\pear/memcache.class.php) is not within the allowed path(s): (c:/zpanel/hostdata/username/public_html/your_domain;c:/windows/temp) in C:\zpanel\hostdata\username\public_html\your_domain\classes\autoloader.class.php on line 89 Warning: file_exists(): open_basedir restriction in effect. File(C:\php\pear/Memcache.php) is not within the allowed path(s): (c:/zpanel/hostdata/username/public_html/your_domain;c:/windows/temp) in C:\zpanel\hostdata\username\public_html\your_domain\classes\autoloader.class.php on line 92

Solution.  If memcached is not installed on your server, force “file” cache by adding the following line to the includes/global, inc:

$glob[‘cache’] = ‘file’;

That should be your solution.  I restarted apache, cleared my cache under maintenance in the admin dashboard, and then reloaded my website homepage.  Surprise, no warning or errors:

2015-07-26-CubeCart

ALSO SEE: https://forums.cubecart.com/topic/49962-warning-memcacheconnect-cant-connect-to-12700111211-connection-refused-111-in-classescachememcacheclassphp/  in case Memcached is not being properly accessed.