Showing posts with label webhosting. Show all posts
Showing posts with label webhosting. Show all posts

Hosting Co. Upgrade and causality

In the shared hosting environment the hosting providers upgrade the platform/features/environment which will cause certain unexpected behavior(s) as the screen-shot(s) which showed that certain function were deprecated due to upgrading of php to what the hosting company found fit.

a) In the home page the following msg was displayed

"Function ereg() is deprecated in /home/gnum****/public_html/includes/file.inc on line 895"

In the file file.inc the ereg is replaced with preg_match
- elseif ($depth >= $min_depth && ereg($mask, $file)) {
+ elseif ($depth >= $min_depth && preg_match("/$mask/", $file)) {





b) In the qchronicle page a warning msg similar to
"Warning: strtotime()[fuction.strtotime]: It is not safe to rely on the system's timezone settings. You are "required" to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for 'BST/1.0/DST' instead in /home/gnum****/public_html/sites/all/modules/views/modules/node/views_handler_argument_dates_various.inc on line 66"



The following warning regarding date/time was displayed which was resolved by appending the
date_default_timezone_set('Europe/London');
at the top of bootstrap.inc file

<u-09-08-2012>
when edit tab is selected in the drupal's blog section, following msg is displayed
: Function eregi_replace() is deprecated in /home/gnumeno/public_html/sites/all/themes/basic/template.php on line 46.
- $body_classes[] = 'tax-' . eregi_replace('[^a-z0-9]', '-', $term->name);
+ $body_classes[] = 'tax-' . preg_replace('/[^a-z0-9]/', '-', $term->name);
 </u-09-08-2012>

librelab.gnumen.org = E


librelab.gnumen.org is no more hypothetical, could have registered a domain name with any preferred tld like librelab.org/.net/.com u name it. But wanted it to be a part of gnumen and what better than to have a subdomain based site which even google webmaster tool considers as another site hence having total control over the two different site which of course is under one name(gnumen.org). With cpanel at our disposal it's a cake walk to create a subdomain. I wanted it to be multisite but to my disappointment after trying it on my testbed which required emulating the real time setup of a webhosting co when tried to create one in public domain it failed :( thought of enforcing it using the shell account even that was denied.. they say "its out of security reasons".

Libre - the name is also a latin word, neologism .. I hope I am not getting obessed with romantic language.

[EDIT]
Finally decided on registering a domain name librelab.org - Created On:26-Sep-2012 - can be found using whois or http://whois.domaintools.com/librelab.org
[/EDIT]

DNS record for gnumen.org







On 31st Dec I tried to make avail the free DNS option of my webhosting site but without even changing the record of gnumen.org I latter on couldn't access my site. Hopefully will get it rectified latter.

Restriction of views2 in Drupal6

Even the views2 of drupal6 comes with some contrains on the type of query it can execute.
for eg in case of the displaying number of nodes for a term of blog type node some of query clause or fuctions are to be used are count() and group by

select count(node.nid) as nid, term_data.name as term_data_name, term_data.vid as term_data_vid, term_data.tid as term_data_tid from node node left join term_node term_node on node.vid = term_node.vid left join term_data term_data on term_node.tid =term_data.tid where (node.status <> 0) and (node.type in ('blog')) group by term_data_name;

It was really good to have a go at drupal - Installation, setting the working env, adding modules, themes, working for the (crappy) look but behind the scene there are so many tables that are created and queried

website creation - what else do you want....

It is very simple to host a site with so many cms available that too a dynamic website. I can vote for drupal since I am using it. But if you want to get to have a look and feel of what you have in mind better be ready to get your hands dirty with scripts we can have respite not to type in long lines of code. just eeny viieny. bit html, css be ready to dive in the php pool.
It was really simple to get the look n feel with bit of css and html editing. Lots of features are available in the form of a module.
Interesting:- there are more than one way to get things done. let your imagination run wild.
I have included an image gallery with the 3rd party image hosting site (yet to acheive the desired result), contact form with webform, DPM, blog (it goes without saying) and many more.
A screenshot of creepy look of a site done using drupal.

Setting up fullfledged intranet ....


I hope to setup an intranet as well as launch a site with the desired scrappy look.
Even for such a thing work has to be done... Updating my work related stuff in the intra-blog.. hope to ho(i)st task (not )as per scheduled.

screenshot of the design

Drupal setup on localhost

After setting up drupal... these are the o/p that will keep u going




top