Setup phpvibe and mediavide with subdirectory

Checklist 1 – Content of .htacces


$ more .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /video
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/?$ index.php [L]
</IfModule>
<ifModule mod_headers.c>
    Header set Access-Control-Allow-Origin: *
</ifModule>

Checklist 2 – Make sure admin user is created in database table vibe_users

Checklist 3 – Mcrypt must be installed

Checklist 4 – php -version


$ php -version
PHP 7.1.33 (cli) (built: Dec 17 2019 23:26:37) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.1.33, Copyright (c) 1

Checklist 5 – sql_mode is disable

To check whether strict mode is enabled or not run the below sql:
SHOW VARIABLES LIKE ‘sql_mode’;
Reference – https://stackoverflow.com/questions/40881773/how-to-turn-on-off-mysql-strict-mode-in-localhost-xampp

Checklist 6 – Remove a cache moderator\cache

Checklist 7 – Disable mod_security by adding following code in .htaccess


<IfModule mod_security.c>
  
  SecFilterEngine Off
  
  SecFilterScanPOST Off

</IfModule>

Checklist 8 – edit vibe_options table with vibe_options

UPDATE `vibe_options` SET `option_value` = 'videos' WHERE `vibe_options`.`option_id` = 39;

Some Suggestions

  • Open the admin, go to Settings -> Permalinks section and set tv in the base path field.
  • Open the main .htaccess file and change RewriteRule from / to /tv
  • Open vibe_config.php and change the site_url field to the new link of the site.

Last Solutions for sub directory


If you can't open the admin panel, open index.php and find

if(!nullval(get_option('SiteBasePath',null))) {
$router->setBasePath('/'.get_option('SiteBasePath'));
} 

Replace it with

$router->setBasePath('/videos');
Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x