Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Sep 24, 2011 2:50 am 
Offline
Senior Newbie

Joined: Sat Sep 17, 2011 1:52 pm
Posts: 10
I have managed to setup a server using ISPConfig 3 on Ubuntu 10.04. I have managed to create a database, but now I need to import a database to move my other site to this server. I haven't been able to access phpMyAdmin. The link from ISPConfig does not work. I searched these forums for similar threads, and while there are many questions like this one, I couldn't find a solution.

So could anyone help me access phpMyAdmin?


Top
   
 Post subject:
PostPosted: Sat Sep 24, 2011 6:25 am 
Offline
Senior Member

Joined: Fri Dec 10, 2010 6:45 pm
Posts: 63
I can't help with ispconfig but you could just use mysql directly, for example:
Code:
mysql -p db_name < import_dump.sql


Top
   
 Post subject:
PostPosted: Sat Sep 24, 2011 10:21 am 
Offline
Senior Member
User avatar

Joined: Thu Jun 16, 2011 8:24 am
Posts: 412
Location: Cyberspace
Some distributions come with phpMyAdmin in a package in their repositories. Since I don't use Ubuntu, I don't know if it does. You can check by running the following command on your Linode:
Code:
sudo apt-get update && sudo apt-cache search phpMyAdmin

If that turns up with phpMyAdmin, do:
Code:
sudo apt-get install phpMyAdmin

If the phpMyAdmin package is named different in the apt-cache command, use that in the apt-get install command. It will download from Ubuntu's software repositories and install it. It won't install directly to your web site, so you'll have to find where it places phpMyAdmin and place it in your website, e.g. /srv/www/mysite.com/html/phpmyadmin (assuming that your web site is stored in /srv/www and your web site's files are stored in html, like on most systems, adjust that for your Linode's web site directory).

Another option is to go to phpMyAdmin's web site, download from there, and unpack the file onto your Linode where your web site's files are stored.

_________________
Kris the Piki Geeker


Top
   
 Post subject:
PostPosted: Sat Sep 24, 2011 12:28 pm 
Offline
Senior Member

Joined: Wed Jul 21, 2010 8:04 pm
Posts: 119
In Ubuntu
Code:
sudo apt-get install phpmyadmin

will work.


Top
   
 Post subject:
PostPosted: Sat Sep 24, 2011 2:26 pm 
Offline
Senior Newbie

Joined: Sat Sep 17, 2011 1:52 pm
Posts: 10
PHPMyAdmin is installed as part of ISPConfig install. Couldn't access it, but iml's method worked (thanks!), so it is all fine.

Now I need to know is what I need to do to upload images, or modify theme files through wordpress? I have tried chmod for public_html, and wp-content, none seems to work.


Top
   
 Post subject:
PostPosted: Sat Sep 24, 2011 6:03 pm 
Offline
Senior Member
User avatar

Joined: Thu Jun 16, 2011 8:24 am
Posts: 412
Location: Cyberspace
I'm not too familiar with WordPress, and modify themes is different for different sites. In general, though, most sites like that have a control panel that you can use to create and modify templates. Failing that, you can make a copy of the template and theme files and modify them in a text editor.

There are several ways to upload files. One is to setup a FTP server on your Linode, and use a regular FTP client like Filezilla. Another possibility is if WordPress has a section to upload files.

Another method is to use scp, which is copy over ssh. If you use Windows at home, you can use WinSCP, which is a GUI tool for using scp in Windows. For Linux, there are different GUI tools to do this; for KDE, Konqueror should work if you go to the location bar and type "sftp://user@yoursite.com" (no quotes, replace user with your user name on your Linode and yoursite.com with the domain name of your Linode, or the IP if you don't have a domain name). SFTP is FTP over ssh, I don't think Konqueror supports regular scp.

If you want to use a Linux or Mac command, use the following command (it's quite similar to the regular cp command):
Code:
scp /path/to/local/file user@yoursite.com:~

Replace /path/to/local/file with the file you want to copy. Replace user with your user name on your Linode. Replace yoursite.com with the domain name OR the IP address to your Linode. The colon ":" is required, along with where you want to copy the file to; the ~ is a shortcut in Linux to your user's home directory. If you have all your images in a single directory, you can add "-r" to the command:
Code:
scp -r /path/to/directory user@yoursite.com:~

_________________
Kris the Piki Geeker


Top
   
 Post subject:
PostPosted: Mon Sep 26, 2011 2:17 am 
Offline
Senior Newbie

Joined: Sat Sep 17, 2011 1:52 pm
Posts: 10
thanks, that was helpful. :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group