|
|
| [wordpress] A quick guide when changing urls, subdomains, or subdomain |
Author
ramon fincken
:: Posted: Sun Jan 24, 2010 12:57 pm
:: Category: CMS-ses (Joomla, WordPress, etc..)
Tagged: change, database, move, mysql, server, servers, subdomain, subdomains, transfer, url, urls, wordpress, wp-config
- Creating the dump/export
- Make a full backup of your current online files
- Make a full backup of your current database using PhpMyadmin
- Setting up the new host (Only when not on the same server)
- Create webspace / set up FTP ( write these down ! )
- Create a database with user and password ( write these down ! )
- Transfer files
Transfer the files to their new location/server/directory
- Transfer database (Only when not on the same server)
- Import your database using PhpMyadmin
- Edit wp-config.php using values from 2b. (Only when not on the same server)
| Code: | // ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');
/** MySQL database username */
define('DB_USER', 'database_user_here');
/** MySQL database password */
define('DB_PASSWORD', 'database_pass_here');
/** MySQL hostname */
define('DB_HOST', 'localhost'); // Mostly (99%) localhost |
Update website url in database (Only when changing URL !)
- Open you options table and edit the siteurl and home option values into your new URL location
Permisions and file uploads
- Make sure any plugin or upload directories are writable by PHP/your webserver
- Log in at /wp-admin/ and go to miscellaneous settings ( options-misc.php ).
Now edit/update this folder: "Store uploads in this folder" (Only when changing URL !)
Update url "referals" (Only when changing URL !)
- Update your theme hardcoded paths
- Update your content if they point to an old URL location, use this plugin: http://wordpress.org/extend/plugins/find-replace/
Thanks to http://www.linkedin.com/in/stephanieleary for mentioning the file upload path
|
| [wordpress][solution] Phpbb single signon phpbb_captcha_factory not found no object |
Author
ramon fincken
:: Posted: Sat Jan 02, 2010 10:10 pm
:: Category: CMS-ses (Joomla, WordPress, etc..)
Tagged: authentication, captcha, class, connector, factory, login, password, phpbb, sign on, single, solution, wordpress, wrapper
I client had the phpbb single signon plugin installed but he encountered an error when he had to many login tries on WordPress itself.
http://wordpress.org/extend/plugins/php...e-sign-on/
| Code: | | class or object phpbb_captcha_factory not found |
Why?
Phpbb3 logs every login attempt. If you have too many failed logins you must enter a code (CAPTCHA). But this WP plugin does not facilitate in that.
Here is the solution:
OPEN
FIND
| Code: | // AUTHENTICATE
add_action('wp_authenticate_user','op_login',10,2);
function op_login(&$userdata,$password){
if(file_exists(ABSPATH.'/'.PHPBBPATH.'config.php')){ // check to see if phpBB exists
if(defined('IN_PHPBB')){
return $userdata; // return if we're already in phpBB (to avoid a loop)
} |
AFTER, ADD
| Code: |
// FIX start, RamonFincken.com WebsiteFreelancers.nl
// Fix for phpbb3 login attempts. If too many failed logins, phpbb demands you enter a visual code
// So include ( but do not use ) the class to make phpbb happy :)
define(IN_PHPBB,true);
include_once('./'.PHPBBPATH.'includes/captcha/captcha_factory.php');
// FIX end, RamonFincken.com WebsiteFreelancers.nl
|
This solution has been reported to the author and placed at http://wordpress.org/support/topic/347509?replies=1
|
| [wordpress][solution] My qTranslate stopped working after a WordPress upgrade |
Author
ramon fincken
:: Posted: Wed Dec 23, 2009 9:20 pm
:: Category: CMS-ses (Joomla, WordPress, etc..)
Face it ... we all love qTranslate: http://wordpress.org/extend/plugins/qtranslate/
But it disables itself the moment you upgrade WordPress itself.
I can agree with this option, but it is really annoying.
If you are sure that the qTranslate is still working >
OPEN
| Code: | | ./wp-content/plugins/qtranslate/qtranslate.php |
FIND
| Code: | | /* There is no need to edit anything here! */ |
FIND ( note: this is a PARTIAL find )
| Code: | // qTranslate Editor will only activated for the given version of Wordpress.
// Can be changed to use with other versions but might cause problems and/or data loss!
define('QT_SUPPORTED_WP_VERSION', |
now, INLINE, edit the last line, in my case: edit it to:
| Code: | | define('QT_SUPPORTED_WP_VERSION', '2.9'); |
|
| [solution] Ubuntu: automatically connect and mount to windows shares |
Author
ramon fincken
:: Posted: Sat Dec 19, 2009 6:49 pm
:: Category: Lounge
Tutorial to auto mount any share, applied to Windows share.
This example will auto mount
//Windows_server_name/video_dir to my Ubunutu upon login at /mnt/videos
You may need to install Samba, smbfs and /or CIFS first:
https://help.ubuntu.com/community/Mount...ermanently
| Code: | sudo apt-get install smbfs
sudo update-rc.d -f umountnfs.sh remove
sudo update-rc.d umountnfs.sh stop 15 0 6 . |
- Make a Mount directory first
In order to have a share mounted automatically every time you reboot, you need to do the following:
Open a shell as root
Create a file containing your Windows/Samba user account details:
| Code: | | gedit /home/yourubuntuusername/.sambaautologin |
/home/yourubuntuusername is of course your own home folder containing your name
...it should contain two lines as follows:
| Code: | username=share_username
password=share_password |
Optional: Change the permissions on the file for security:
| Code: | | chmod 0600 /home/yourubuntuusername/.sambaautologin |
Now create a directory where you want to mount your share (e.g. /mnt/videos):
Now edit the file system table (/etc/fstab) and add a line as follows: ( Make a backup first )
| Code: | | //Windows_server_name/video_dir /mnt/videos smbfs credentials=/home/yourubuntuusername/.sambaautologin,rw,uid=bob 0 0 |
...where 'bob' is the non-root user you log into ubuntu with, 'Windows_server_name' is the name or address of the Windows machine and 'video_dir' is the name of the share. So if your Ubuntu login name = pete >
| Code: | | //Windows_server_name/video_dir /mnt/video smbfs credentials=/home/yourubuntuusername/.sambaautologin,rw,uid=pete 0 0 |
To mount the share now, just use the following command as root. It will mount automatically on subsequent reboots.
Not working? Try to rewrite | Code: | | //Windows_server_name/video_dir | as: | Code: | | //[ip_adres_of_windows_server]/video_dir |
and try to mount again.
Solution about this hosts/ip problem: http://www.linuxquestions.org/questions...nt-437901/
Partially rewritten from:
https://help.ubuntu.com/community/SettingUpSamba
Read on:
http://www.arsgeek.com/2006/09/25/ubunt...dwritable/
http://www.cyberciti.biz/tips/how-to-mo...linux.html
|
| Forum |
Topics |
Posts |
Last Post |
| General forums |
|
 |
About this blog
Moderator ramon fincken |
4 |
4 |
Mon Jan 05, 2009 5:47 pm ramon fincken  |
 |
Lounge
Chit - chat
Moderator ramon fincken |
49 |
64 |
Sat Dec 19, 2009 6:49 pm ramon fincken  |
 |
Reviews
Movie reviews - Goodie reviews and much more !
Moderator ramon fincken |
5 |
5 |
Sun Oct 11, 2009 8:00 pm ramon fincken  |
 |
Rants
Rants about things in daily life ...
|
5 |
10 |
Thu Oct 22, 2009 10:25 am ramon fincken  |
| The world of freelance |
|
 |
Freelancing
Moderator ramon fincken |
2 |
2 |
Wed Jan 21, 2009 9:52 am ramon fincken  |
 |
Coping with clients
Moderator ramon fincken |
1 |
1 |
Thu Jan 08, 2009 12:00 pm ramon fincken  |
 |
Services
I offer many webdevelopment services such as custom coding, photoshop webdesign and W3 valid slicing and basing !
Feel free to ask for a quote !
Moderator ramon fincken |
1 |
1 |
Tue Jun 10, 2008 11:12 am ramon fincken  |
| Programming |
|
 |
PHP coding
Moderator ramon fincken |
56 |
66 |
Sat Nov 21, 2009 8:51 pm ramon fincken  |
 |
Mysql databases
Moderator ramon fincken |
5 |
5 |
Sat Aug 15, 2009 8:07 pm ramon fincken  |
 |
HTML and other markup&programming languages
Moderator ramon fincken |
15 |
15 |
Sun Jan 24, 2010 8:02 pm ramon fincken  |
 |
Control panels (plesk, cpanel, direct admin)
Moderator ramon fincken |
4 |
6 |
Thu Oct 30, 2008 11:53 pm ramon fincken  |
 |
CMS-ses (Joomla, WordPress, etc..)
Moderator ramon fincken |
22 |
30 |
Sat Feb 06, 2010 1:13 pm ramon fincken  |
| Other projects |
|
 |
Antispam
Moderator ramon fincken |
5 |
5 |
Tue Aug 18, 2009 1:12 pm ramon fincken  |
 |
Other projects
Moderator ramon fincken |
7 |
13 |
Mon Oct 19, 2009 7:26 pm ramon fincken  |
| Who is Online |
 |
Our users have posted a total of 231 articles We have 9 registered users The newest registered user is Xarzu
|
In total there are 5 users online :: 0 Registered, 0 Hidden and 5 Guests [ Administrator ] [ Moderator ] Most users ever online was 40 on Tue Jan 05, 2010 11:59 pm Registered Users: None |
| This data is based on users active over the past five minutes |
 |
New posts |
|
 |
No new posts |
|
 |
Forum is locked |
|
|
|