Docs

Configure cache on Osclass

July 14, 2022 |

Configure cache on Osclass Two system cache implemented: NOTE: before enabling cache make sure you have installed and enabled the cache extension. APC / APCu You need to edit your config.php file and the following line define(‘OSC_CACHE’, ‘apc’); MEMCACHE You need to know ip and port of the machine/s where memcached service is installed and then add the following lines to the file config.php define(‘OSC_CACHE’, ‘memcache’); $_cache_config[] = array( ‘default_host’ => ‘127.0.0.1’, ‘default_port’ => 11211, ‘default_weight’ => 1 );

Fine-Tuning MySQL Full-Text Search – Improving search

July 14, 2022 |

Fine-Tuning MySQL Full-Text Search – Improving search MySQL’s full-text search capability has few user-tunable parameters. NOTE:Note that full-text search is carefully tuned for the most effectiveness. Modifying the default behavior in most cases can actually decrease effectiveness. Do not alter the MySQL sources unless you know what you are doing. For OSClass users, item title and item description have a fulltext index, that do search more efective and speed up. The minimum and maximum lengths of words to be indexed by default is 4 (4 characters), that means, only words more or equal than 4 will be indexed. If you like to change the minium and maxium lengths of words to be indexed, you need update your mysql config file. [mysqld] ft_min_word_len=3 [mysqld] ft_max_word_len=10 Updating minium and maximum lengths of words. After this, if you modify full-text variables that affect indexing (ft_min_word_len, ft_max_word_len, or ft_stopword_file), you must rebuild your FULLTEXT…    read more 

Increasing memory Osclass

July 14, 2022 |

Increasing memory allocated to PHP Released with version 2.3, the OSC_MEMORY_LIMIT option allows you to specify the maximum amount of memory that can be consumed by PHP. This setting may be necessary when you see a message such as “Allowed memory size of X bytes exhausted”. This setting increase PHP memory for OSClass, so it wouldn’t affect other applications. By default, the memory allocated is set to 32MB. If PHP has been allocated 128MB, there is no need to set this value to 128M because OSClass checks if PHP has been allocated more memory than the entered value. This setting may not work if your host doesn’t allow for increasing the PHP memory limit. In that case, contact your host to increase the PHP memory limit. Increase PHP Memory to 128MB (add this define constant in config.php) define(‘OSC_MEMORY_LIMIT’, ‘128M’) ;

Installing new locations

July 14, 2022 |

Installing new locations Via admin panel Under General Settings > Locations you could install new locations (countries, regions and cities). Manually Installing new locations could be a very-long process due to the big amount of data being transferred. You could raise your max_execution_limit on the PHP.ini file or install new locations manually. Download the .sql you want to from geo.osclass.org/downloads Change /*TABLE_PREFIX*/ for whatever your prefix is. (If using the OSClass’ import functionality it’s not needed to modify anything) Import it to your database (via OSClass’ import system -Admin panel > Tools > Import-, phpMyAdmin, command line,… ) Note: If you already installed a country or a region you should not installed it again.

Setting up a mail server

July 14, 2022 |

Setting up a mail server With Osclass you could configure your email server. Some shared hosting has limited mail servers, you should always check with your hosting company about it before. If you own your own dedicated server you probably know how to set up one, if not, you should perform some searches on the internet (on a linux machine it’s enough to install postfix and courier packages). Configuring Osclass to use your mail server is very easy, we also offer a pre-filled configuration to use with Google mail servers, you should notice Google offers a limited service and your emails could get marked as spam. Want to see it in action? Check out our video tutorial on How to set up your mail server. Mail server settings are located on Mail server option, under General Settings Custom mail server Hostname: usually smtp.yourdomain.com but it could be any domain or IP (localhost by default) Server port: This…    read more 

User Guide

July 14, 2022 |

        Log in Osclass To login to your Osclass Administration panel, direct your browser to http://www.yourdomain.com/oc-admin (for root installations). If your installation is in a subdirectory, then the address should be http://www.yourdomain.com/subdirectory/oc-admin.   Dashboard The Dashboard is the first administration page you’re presented with when you login. The Dashboard contains four different modules, which gives a visualization of various information and statistics about your Osclass installation, including: Items by category Statistics Latest comments Latest news from Osclass These modules can be enabled/disabled from view by clicking the Settings button located in the top-right corner of the dashboard screen. Listings The Listings menu tab will give you access to the necessary tools to edit/add/delete all the listings published in your Osclass installation. Manage listings   You can edit any listing from this page. Place your mouse over the ad you’re interested in editing. A submenu will appear for that listing giving you the choice of the following…    read more 

Cron Job Osclass

July 14, 2022 |

Cron is a time-based job scheduler in Unix-like computer operating systems. Cron enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates. It is commonly used to automate system maintenance or administration. Osclass has a built-in functionality in case your system has no cron daemon, you could enable/disable it from the admin panel, general settings > cron. It’s recommended to read more about CRON on the wikipedia. It’s also recommended to use your system’s CRON instead of the built-in functionality of Osclass, since you will get better results with the first one. We use this functionality to run a few jobs as sending email alerts or counting number of items per category. CRON in Osclass As said before, we need some ‘jobs’ to be done from time to time, from sending email alerts, to count number of items per category or allow plugins as…    read more 

Updating Osclass

July 14, 2022 |

Automatic Update These are short instructions, if you need more information go to the forum. Make a backup of your database and files. If you have permalinks enabled, you should disable them before updating Osclass. Go to Tools > Upgrade Osclass and if you meet the requirements, there will appear a button to upgrade your installation. Finally, remember to enable your permalinks again, if you have disabled them before. NOTE: In some versions you may get some warning messages, but the update has been done correctly. However, we’re aware that auto-update doesn’t work in version 2.0.2. So, if you have Osclass 2.0.2 you should update your installation manually. Manual Update These are short instructions, we’re going to extend them in the future. If you experience problems you should report them on Osclass forums. For these instructions, it is assumed that your Osclass URL is http://example.com/. Step 1: Take a backup You should take a backup…    read more 

Install Osclass

July 14, 2022 |

Installing Osclass Here’s a quick step-by-step guide of the installation process: Step 1 Download and unzip the Osclass package. Step 2 Move the Osclass unzipped files to the desired location on your server. Step 3 Execute the Osclass installation script by accessing index.php or oc-includes/osclass/install.php from your browser: – If you’ve installed it in the domain’s root directory, you’ll have to go to: http://example.com/index.php or directly to http://example.com/oc-includes/osclass/install.php – If you’ve installed it in a subdirectory inside the domain, classifieds, for example, go to: http://example.com/clasificados/index.php or directly to http://example.com/clasificados/oc-includes/osclass/install.php Step 4 Follow the installer’s instructions: Step 4.1 Make sure the server has the required permissions to write in the files and directories specified. This will allow you to create a basic configuration file as well as upload images, documents, etc. Step 4.2 Add your access details to the database. If you haven’t created it yet, the installer will ask for another account with permissions that will…    read more 

Support