Page 1 of 1

vQmod with admin name change - how to install?

Posted: Wed May 01, 2013 9:01 pm
by DrM
Hi everyone,

I got vQmod 2.3.2 to install successfully on a fresh install of opencart 1.5.5.1 with a renamed admin folder, according to the success message.

But I think I am missing a vital step, as my vqcache folder remains empty. I have searched the forums and Google but cannot find a fix that works.

Here is what I did:
1) Installed opencart 1.5.5.1
2) Renamed the admin folder and updated all instances in admin/config.php
At this stage everything works fine.

3) Uploaded vQmod 2.3.2 opencart
4) Set permissions for vqmod/vqcache, admin/index.php, and index.php to 755
5) Edited the vqmod/install/index.php folder to the new name on lines 50 and 86:

if(!is_writeable($opencart_path . 'mynewadminname/index.php')) {
$write_errors[] = 'Administrator index.php not writeable';
}

// Rename the admin part of the text below if you've
// changed your admin folder name
$u->addFile('mynewadminname/index.php');

6) Edited the vqmod/pathReplaces.php with my new admin name:

$replaces[] = array('~^admin\b~', 'mynewadminname');

7) Edited the vqmod/vqmod.php – line 54 – changed ‘include_once’ to ‘include’:

if($replacesPath) {
include($replacesPath);
$this->_lastModifiedTime = filemtime($replacesPath);
}

8) Opened in browser: mywebsite/vqmod/install
At this stage I got the success message and my store homepage seems fine.

But when I check my vqmod/vqcache folder it is empty?
Could somebody please advise me on how to make this work?

Thanks,

Dr M

Re: vQmod with admin name change - how to install?

Posted: Thu May 02, 2013 5:48 pm
by daik01
Did you have an extension xml in your xml folder, besides vqmod_opencart.xml?
Otherwise, there will be no changes, and there will be no caching of changes...

Re: vQmod with admin name change - how to install?

Posted: Thu May 02, 2013 8:08 pm
by rph
Don't modify the vqmod core file. The only thing that has to be updated is pathReplaces.php. There's also no need to mess with the installation file. All you need to do to install is rename /mynewadminname back to /admin, run the installation, change the name back, then set up pathReplaces.php.

To fix all this:
1) Restore vqmod core files
2) Restore original /admin/index.php (and possibly /index.php)
3) Rename /mynewadminname to /admin
4) Ensure proper permissions on files
5) Run the vqmod installer
6) Rename /admin back to /mynewadminname
7) Update /vqmod/pathReplaces.php

Re: vQmod with admin name change - how to install?

Posted: Fri May 03, 2013 6:55 pm
by DrM
Thanks for your help and patience. What I didn't understand was step 7 of the vQmod auto-installer instructions on their website which states:

"Using FTP, verify that there are new "vq" files in the "vqmod/vqcache" folder."

From what you are saying daik01, I gather that on a fresh install of opencart, with only the vQmod extension added on, then there won't be anything in the vqcache folder because there are no other extension xml files. (I then added the vQmod Manager extension and it worked fine and the changes were recorded in my vqcache folder).

I decided to install vQmod on my fresh install of opencart before changing the admin folder name (sort of like the reset instructions provided by rph - thanks).

So now if I rename my admin folder, the only files I need to update to make everything work are the admin/configure.php and the pathReplaces.php?

Despite the instructions in the vqmod/install/index.php telling me to update that line if changed my admin folder?

Thanks again for your help, it's greatly appreciated!

Re: vQmod with admin name change - how to install?

Posted: Fri May 03, 2013 7:28 pm
by labeshops
honestly, I didn't know about the pathreplaces.php file until reading your post - that must be new to the latest vqmod that I updated to the other day. I just search and replace admin/ for my renameddirectory/ in every xml file before copying it into the xml directory.

Re: vQmod with admin name change - how to install?

Posted: Fri May 03, 2013 8:02 pm
by DrM
Yea that's what I read that everyone was doing who wasn't using the new version of vqmod. At least I am more aware now of different options to get everything working. It's a bit of a steep learning curve, but I'm getting there!

The last thing I need to figure out is which files need their permissions changing back after vqmod has been installed?
When I search on this topic it only discusses the changes that need to be made PRE-installation. I'm guessing that all the vqmod files are to be left with their normal permissions, and the index.php and admin/index.php are to be changed back to 644?

Re: vQmod with admin name change - how to install?

Posted: Sun May 05, 2013 3:44 pm
by rph
DrM wrote:So now if I rename my admin folder, the only files I need to update to make everything work are the admin/configure.php and the pathReplaces.php?
Only pathReplaces.php.
Despite the instructions in the vqmod/install/index.php telling me to update that line if changed my admin folder?
You can do it if you want, but why? You're much more likely to upgrade your vqmod version than your OpenCart installation so keeping a custom installer around isn't hugely useful. Plus the admin rename method is fast and simple for novices compared to code editing.

Re: vQmod with admin name change - how to install?

Posted: Sun May 05, 2013 4:36 pm
by DrM
rph wrote:
DrM wrote:So now if I rename my admin folder, the only files I need to update to make everything work are the admin/configure.php and the pathReplaces.php?
Only pathReplaces.php.
Despite the instructions in the vqmod/install/index.php telling me to update that line if changed my admin folder?
You can do it if you want, but why? You're much more likely to upgrade your vqmod version than your OpenCart installation so keeping a custom installer around isn't hugely useful. Plus the admin rename method is fast and simple for novices compared to code editing.
You have made everything clear to me now and it is all working fine! Thank you so much!

Re: vQmod with admin name change - how to install?

Posted: Wed May 22, 2013 7:45 pm
by futureclient
Hey,

Thank you very much for this, had a feeling dread when it all broke down, makes perfect sense. Everyday is a school day! 8)

Re: vQmod with admin name change - how to install?

Posted: Thu May 23, 2013 1:38 am
by Qphoria
DrM wrote: Despite the instructions in the vqmod/install/index.php telling me to update that line if changed my admin folder?
That is what we used to say before adding this new pathReplaced.php option.. We will update the wiki on the vqmod site

Re: vQmod with admin name change - how to install?

Posted: Sat May 25, 2013 11:37 pm
by winter
I'm about to install the vQmod but have seen so may posts about this. Is it a nightmare to do or is it fairly easy? Just spent a lot of time updating my store and would hate for this to pear shaped :?

Re: vQmod with admin name change - how to install?

Posted: Tue Jun 04, 2013 12:46 am
by Qphoria
If it takes you longer than 1 min to install vQmod.... you should be banned from the internet :)

Re: vQmod with admin name change - how to install?

Posted: Sat Jun 08, 2013 4:38 am
by winter
Lol - ok than. I'll take that as a no. Its just that I have seen so many posts querying this so....

Has the vQmod installer list been updated Qphoria?

And must this be installed to use Yahoo media player do you know?

I desperately need a media player for my site....