OSClass Sub Domain Setting

First try to install the newest osclass version. Here I use 3.6.1 version. Install it locally. It works! here is the url : http://localhost/works/osclass361. user and password for the admin page (/oc-admin/) is ‘admin’ and ‘admin’.

Setup the virtualhost

Here is the content

Then enable the website and reload Apache service using below command

Then register the above local site. open

Then type

Then restart apache

Then set the permalink for SEF url in the admin page on Show more -> Settings -> permalinks (http://localhost/works/osclass361/oc-admin/index.php?page=settings&action=permalinks) then Check ‘Enable friendly urls’ then Save Changes! It’ll create .htaccess file

Then modify config.php file. Edit these two lines

to

Test the site on your browser: http://www.osclass361.dev/ or just osclass361.dev/ Here is how it looksĀ osclass361 Because I still have a little listing available, I need to post some of them. NOW it is time to setup the subdomain. I want to use ‘City’ as the subdomain based and use wildcard * to make it simpler. From this article Use categories, countries, regions or cities as subdomains, I’ll follow the guidelines:
1. go to admin Show More -> Settings -> Advanced (http://www.osclass361.dev/oc-admin/index.php?page=settings&action=advanced) then set:

2. Use DNS wildcard

modify from

to

3. Modify virtualhost. use *.osclass361.dev instead of www.osclass361.dev on ServerAlias

4. Restart apache

5. changes on config.php. Modify from

to

6. Add cookies configuration on config.php

7. Modify .htaccess to be like this

8. Test!

9. Open the site with the subdomain (city) like: http://abbeville.osclass361.dev/
AND IT WORKS!!! IT CAN OPEN THE OTHERS PAGES WITH THE SUBDOMAIN BUT I THINK IT NEED TO BE LIMITED WHICH PAGE CAN BE OPENED BY THE SUBDOMAIN FOR EXAMPLE ONLY FOR ITEMS PAGE AND SHOW THE ITEMS FROM THE CITY!
A FEW ERRORS ENCOUNTER:

WHEN TRYING TO ACCESS ANOTHER LINK LIKE http://www.osclass361.dev/user/login. SO IT ONLY CAN OPEN THE HOMEPAGE!
SOLUTION: It happened because I didn’t modify .htaccess file, Modify it like #7 above!
IT’S WORKS NOW BUT SLOW TO OPEN ANYPAGE (WHEN COOKIES IS ALREADY DELETED)!!!

 

Update PPA For PHP, Change PHP CLI Version

BEWARE! THIS WOULD MAKE YOUR LOCALHOST NOT WORKING LIKE WEB APP, PHPMYADMIN, ETC. NEED TO BACKUP YOUR DATA FIRST!

I need to update the PPA for php from ppa:ondrej/php5-5.6 to ppa:ondrej/php because the earlier ppa already deprecated. Here is the step forĀ PPA migration to ppa:ondrej php. Continue reading “Update PPA For PHP, Change PHP CLI Version”

Respect

We hear it a lot – either demanding we get it from others or wanting to believe that we are people whom respect others.

So I decided to look into this

A feeling of deep admiration for someone or something elicited by their abilities, qualities, or achievements.

“the director had a lot of respect for Douglas as an actor”

synonyms: esteem, regard, high regard, high opinion, acclaim, admiration, approbation, approval, appreciation, estimation, favour, popularity, recognition, veneration, awe, reverence, deference, honour, praise, homage

“the respect due to a great artist”

Imagine if when we dealt with each other as employers and leaders, husbands and wives, parents and children, friends and neighbours, if we held people in high regard for their abilities and qualities. If we focused on ‘hey thanks for speaking to me with such grace or helping me out here, your wonderful keeping the babies whilst I go see my friends or your an amazing sister whom always listens to me’

We find it so easy to focus on people’s lack, mistakes and shortcomings.

As Muslims it’s even more important for us to really digest m this and try our best to apply this to our own lives and always look towards people with respect – respect is a doing word: you have to act to show it’

This principle is something I learnt in my psychology and counselling journey – and you will be surprised to see how many lives can become empowered and uplifted just with the application of creating a respectful environment for them when they attend counselling.

Reminder for myself that respect I apply to my clients is something that should be there always

Beautiful reminder Alhamdulilah

Source: startupmuslim

She Needed A Hero, So That’s What She Became

How many times do we make excuses that no one helped us and look towards all the things we didn’t have

Take it from a single mum – whom started off homeless and broke

Doing the creative things she loves – photography, film, branding and design, counseling, learning business and being free from worrying what others think of her

Your hero is inside you. Believe in your abilities and be strong in your adversities

They will prove to you your strength of endurance and adversity will show you the path of growth, shake you to change and become a better you.

source: startupmuslim