Osclass Dashboard login Issue:

Issue with osclass  Admin Dashboard login Issue:

———————————————————————-

Updating the password of osclass admin user from database

UPDATE `user_oscl241`.`os_t_admin` SET `s_password` = SHA1(‘your password’) WHERE `os_t_admin`.`pk_i_id` = 1;

Sometimes you may still face the issue with logging when using correct password due to servers php settings that doesn’t allow to start session file to create on /tmp folder . Bad thing is we may still think we are using incorrect password as it doesn’t throw any error . But checking error_log file on document root will give this following error :

—————-

[26-Jan-2015 00:30:10 Etc/GMT] PHP Warning: session_start() [<a href=’function.session-start’>function.session-start</a>]: open(/tmp/sess_562779fe460a6d0265bd7522f5f3e5b3, O_RDWR) failed: No such file or directory (2) in /home/user/public_html/domain.com/oc-includes/osclass/core/Session.php on line 47
—————–

/home/user/public_html/domain.com/config.php
<?php

session_save_path ( ABS_PATH . ‘oc-content/uploads/’ );            ==>> Adding this line to config.php will solve the issue.

/**
* The base MySQL settings of Osclass
*/
define(‘MULTISITE’, 0);

Advertisements

Issue with starting Proftpd Version: 1.3.3g (maint) on CPanel servers

We can solve the issue with starting proftpd using following steps when you receive this error on debugging: (unable to determine IP address of ‘vps.domain.com’)

——–

[root@vps init.d]# service proftpd start
Starting proftpd: [FAILED]

———

Perform Configuration Check
When making changes to the configuration file, it is often helpful to make sure that your changes are valid. The easiest way to do this is to do an informative syntax check:

  proftpd -td10

The -t option directs the server to only do a syntax check, to parse the configuration file but stop before actually starting its operations as a server. The -d10 will cause the server to display debugging messages during this testing of the configuration file. Another useful command is:

  proftpd -c /path/to/new/config/file -td10

which lets you test the syntax of some new configuration file before it is put into production. If you are still having problems, and you have verified that your proftpd.conf is correct, the next step is see what debugging messages are generated during an FTP session, as described next.

 

[root@vps init.d]# proftpd -td10
Checking syntax of configuration file
– using TCP receive buffer size of 87380 bytes
– using TCP send buffer size of 16384 bytes
– testing Unix domain socket using S_ISFIFO
– testing Unix domain socket using S_ISSOCK
– using S_ISSOCK macro for Unix domain socket detection
– mod_tls/2.4.2: using OpenSSL 1.0.1e-fips 11 Feb 2013
– ROOT PRIVS at mod_core.c:304
– retrieved UID 0 for user ‘root’
– retrieved GID 0 for group ‘root’
– loading ‘mod_sql.c’
– loading ‘mod_sql_mysql.c’
– loading ‘mod_quotatab.c’
– loading ‘mod_quotatab_sql.c’
– RELINQUISH PRIVS at mod_core.c:326
– warning: unable to determine IP address of ‘vps.domain.com’
– error: no valid servers configured
– Fatal: error processing configuration file ‘/etc/proftpd.conf’

 

[root@vps init.d]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 autoreply.vps.domain.com
43.225.53.26 vps.domain.com               ==>> Adding this line to host file will solve the issue.

Installing mod_pagespeed module for CPanel/WHM

mod_pagespeed is available to download and install as an EasyApache Custom Module.

  • Clone the installation scripts onto your CPanel server:
$> /usr/local/cpanel/3rdparty/bin/git clone https://github.com/pagespeed/cpanel.git /tmp/pagespeed/
  • Create Speed.pm.tar.gz
$> cd /tmp/pagespeed/Easy
$> tar -zcvf Speed.pm.tar.gz pagespeed
$> mkdir -p /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy
$> mv Speed.pm Speed.pm.tar.gz -t /var/cpanel/easy/apache/custom_opt_mods/Cpanel/Easy/
$> cd && rm -rf /tmp/pagespeed
  1. Login into your cPanel WHM > EasyApache and look for “mod_pagespeed” option. Alternatively, you can run the easyapache installer from command line (/scripts/easyapache). Rebuild the Apache server, reboot it, and you’re good to go!

Configuring mod_pagespeed

The installation script will copy a default pagespeed.conf file into /usr/local/apache/conf/ on your server. Please consult the following pages to customize your configuration:

For example of the different filters in action and detailed documentation for each, please see modpagespeed.com