Copy DB and Webpages

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Copy DB and Webpages

Postby mattaze » Wed Jun 06, 2012 8:33 am

Is it straight forward to copy the asterisk database (with privlages and all) onto a new mySQL, and copy the htdocs pages for Vicidial already setup on my existing server, to doing page modifications from my computer.

Such that edit pages stored on my computers web server, with out touching the working server.

--ViciBox Redux 3.1.15 initial install--
vicidial 2.4-364a
BUILD: 120409-1136
Asterisk v.1.4.39.2-vici


Have copied off the astGUI webpages. they load they admin and welcome screens fine. it querying local for the database, so tried to copy over database. though it seams to say failed in the import process. however all data stored, database created. privliages copied over?

is there something im missing?

my machines runnning Apache 2.2.21 VC9, php 5.3.9
Could this be the version on php that im running? get the following page error, also got error when changed DB config file from localhost to server ip, with different username and password

<code>
Notice: Undefined variable: use_slave_server in C:\web\vicidial\dbconnect.php on line 54

Notice: Undefined index: PHP_AUTH_USER in C:\web\vicidial\admin.php on line 103

Notice: Undefined index: PHP_AUTH_PW in C:\web\vicidial\admin.php on line 104

Notice: Undefined variable: dial_status in C:\web\vicidial\admin.php on line 1737

Notice: Undefined variable: DB in C:\web\vicidial\admin.php on line 1747

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\web\vicidial\admin.php on line 1748

Notice: Undefined variable: adaptive_latest_server_time in C:\web\vicidial\admin.php on line 1797

Deprecated: Function ereg_replace() is deprecated in C:\web\vicidial\admin.php on line 1797

Notice: Undefined variable: admin_hangup_enabled in C:\web\vicidial\admin.php on line 1798

------- a lot of similer looking code, which ends up over the limimt of 60k characters for the forum-----

Deprecated: Function ereg_replace() is deprecated in C:\web\vicidial\admin.php on line 2625

Notice: Undefined variable: carrier_description in C:\web\vicidial\admin.php on line 2626

Deprecated: Function ereg_replace() is deprecated in C:\web\vicidial\admin.php on line 2626

Deprecated: Function ereg_replace() is deprecated in C:\web\vicidial\admin.php on line 2627

Deprecated: Function ereg_replace() is deprecated in C:\web\vicidial\admin.php on line 2628

Deprecated: Function ereg_replace() is deprecated in C:\web\vicidial\admin.php on line 2629

Notice: Undefined variable: blind_monitor_message in C:\web\vicidial\admin.php on line 2630

Deprecated: Function ereg_replace() is deprecated in C:\web\vicidial\admin.php on line 2630

Deprecated: Function ereg_replace() is deprecated in C:\web\vicidial\admin.php on line 2631

Deprecated: Function ereg_replace() is deprecated in C:\web\vicidial\admin.php on line 2632

Deprecated: Function ereg_replace() is deprecated in C:\web\vicidial\admin.php on line 2633

Notice: Undefined variable: modify_url in C:\web\vicidial\admin.php on line 2634

Deprecated: Function ereg_replace() is deprecated in C:\web\vicidial\admin.php on line 2634

Deprecated: Function ereg_replace() is deprecated in C:\web\vicidial\admin.php on line 2635

Deprecated: Function ereg_replace() is deprecated in C:\web\vicidial\admin.php on line 2636

Deprecated: Function ereg_replace() is deprecated in C:\web\vicidial\admin.php on line 2637

Notice: Undefined variable: force_logout in C:\web\vicidial\admin.php on line 3099

Notice: Undefined variable: DB in C:\web\vicidial\admin.php on line 3113

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\web\vicidial\admin.php on line 3114

Notice: Undefined variable: DB in C:\web\vicidial\admin.php on line 3131

Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in C:\web\vicidial\admin.php on line 3134

Notice: Undefined variable: DB in C:\web\vicidial\admin.php on line 3138

Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in C:\web\vicidial\admin.php on line 3140

Notice: Undefined variable: SSwebroot_writable in C:\web\vicidial\admin.php on line 3150

Warning: Cannot modify header information - headers already sent by (output started at C:\web\vicidial\admin.php:1810) in C:\web\vicidial\admin.php on line 3159

Warning: Cannot modify header information - headers already sent by (output started at C:\web\vicidial\admin.php:1810) in C:\web\vicidial\admin.php on line 3160
Invalid Username/Password: |||
</code>
mattaze
 
Posts: 2
Joined: Wed May 30, 2012 10:31 am

Re: Copy DB and Webpages

Postby williamconley » Wed Aug 01, 2012 4:07 pm

If you want to "dupe" a vicidial server, you should use another vicidial installer first, then copy your "data" and "web" pages on top of it.

If you do not want to do that (no .iso install, manual install ...), you must use a scratch install instruction set or you will spend the next six months creating your own scratch install instruction set (which is pointless as several already exist).

But mostly you have not (as far as I could discern) shared your goal. Why are you copying these files?

At the very least, if all you want to do is copy the "Admin" web site for use on another php server ... at least use the same version of PHP and MySQL to avoid warnings and errors.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 107 guests