🚀 DevOps & SRE Certification Program 📅 Starting: 1st of Every Month 🤝 +91 8409492687 🔍 Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

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');
Subscribe
Notify of
guest


0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x