WordPress uploads fail. max_upload_filesize set correctly but still fails

Question:

My WordPress blog fails on uploads over a certain size. I’m made sure that php’s max_upload_filesize is set correctly in my php.ini. Why do the uploads still fail.

Answer:

Make sure that post_max_size is also set to be at or above the size file you want to upload. If not, your wordpress uploads will fail. You can set this in your etc/php.ini file. The change takes effect immediately as soon as you save and/or upload the new php.ini file.

I have forgot my WordPress database password

Question:

I’ve forgot my WordPress database password. How can I get it back.

Answer:

WordPress stores your database password in wp-config.php. Open up this file and you should find it near the top.

Note that this is your database password and not your wordpress admin/username password. The password in wp-config.php is the password wordpress uses to connect to your database server.

Quickly install WordPress from the command line (7 easy steps)

Install wordpress from the command line:

Here’s the quickest way to install wordpress from the command line:

1. Get wordpress:
wget --quiet http://wordpress.org/latest.zip ; unzip -q latest.zip

2. Get rid of your old site and mv wordpress to your document root (or put it where-ever it is you want it)
mv www www-old ; mv wordpress www

3. Change to the wordpress directory
cd www

4. Rename the config file

mv wp-config-sample.php wp-config.php

5. Edit the config file, be sure to put in your db name, username and password in the code below

sed -i -e 's/database_name_here/YOUR_DB_NAME_HERE/' wp-config.php
sed -i -e 's/username_here/YOUR_USER_NAME_HERE/' wp-config.php
sed -i -e 's/password_here/YOUR_PASSWORD_HERE/' wp-config.php

6. Set your unique keys and salts

wget -q -O - https://api.wordpress.org/secret-key/1.1/salt/

you’ll get something like:

define('AUTH_KEY', 'Jcie-e]vC6!^;JHf5}ikA]k){#RWr&Sl6/Z-M,F=Y+4{G?dFc`=!E+bl^Mu!,c e');
define('SECURE_AUTH_KEY', '.o5oBJC|p[X4');
define('LOGGED_IN_KEY', 'TR_Nc m|w;5@e2EgA55$5:1U -NWd|tC_^M;oYt^3{j-4;P~oU#&bBBMvXH=m6i(');
define('NONCE_KEY', 'c}c E?V$C*T({;lm:(1K?+~AP`vM4< !rnounx~Qydz:n]7V< *98 6[+!d='); define('LOGGED_IN_SALT', 'pG}6d}~l3nbEHPD9$@?eSp

Do not copy the above into your wp-config.php - it is an example only and not safe to use

paste the output of this into wp-config.php

7. Load the install page into your browser, follow the steps and you are done!

Wordpress install screenshot

or as a near one-liner :

DB_USER=put_the_db_username_here ; DB_PASS=put_the_db_user_password_here ; DB_NAME=put_the_db_name_here ; wget --quiet http://wordpress.org/latest.zip ; unzip -q latest.zip ; mv www www-old ; mv wordpress www ; mv www/wp-config-sample.php www/wp-config.php ; sed -i -e "s/database_name_here/$DB_NAME/" www/wp-config.php ; sed -i -e "s/username_here/$DB_USER/" www/wp-config.php ; sed -i -e "s/password_here/$DB_PASS/" www/wp-config.php ; rm -f latest.zip ; wget -q -O - https://api.wordpress.org/secret-key/1.1/salt/

My WordPress says “Search Engines Blocked”. How do I fix this WP problem?

Login to your wordpress dashbord, select the Settings section near the bottom, then privacy. In the page that opens select the option:

I would like my site to be visible to everyone, including search engines (like Google, Bing, Technorati) and archivers

then save changes.

I have forgot my database password. How can I change it?

Question:

I’ve forgot my database password. What are my options?

Answer:

If you have forgot your database password and do not have any scripts that depend on it, you can change your password via the database section of your control panel. Just click on the link that says “Change Database Password”. Do not log-in to phpmyadmin to change your password.

However things become much more complicated if you have scripts (wordpress, joomla, drupal, etc.) that rely on the password. If you change your password it will break those scripts. Unfortunately, even server admins not have access to your existing database password (the passwords are encrypted and not easily decrypted).

The best option if your scripts depend on your password is to search the scripts for the password. If you know the location of the password this is easy. For example, wordpress stores your password in wp-config.php.

If you do not know where the password is stored, use something like the following to find it:

find . -name "*.php" -exec grep "localhost" {} ; -print
find . -name "*.inc" -exec grep "localhost" {} ; -print
find . -name "*.php" -exec grep "3306" {} ; -print
find . -name "*.inc" -exec grep "3306" {} ; -print

These search through common php file extensions and search for the strings “localhost” and “3306” which are usually close to the location of your password. You can also search for the term “password” or “pass” but will likely get a lot of false positives.

If you are not comfortable doing the above, our support staff can find your password for a one-time fee of $25. Contact support with your request.