Link DB to Wordpress?
Thanks for the help!
12 Replies
You have a few issues.
Your database seems to be fine. You probably don't have the proper permissions set for the uploads folder to be able to upload content. You need to be careful about your directory permissions or you will be the victim of hackers and malicious code. Read this link for an overview of Wordpress file permissions:
If you still have upload issues you may have your installation's permissions set to only allow the admin to upload content.
To get your domain to work without the 'www' you should add an entry to your DNS. If your DNS is still managed by GoDaddy you'd want an A Record with a Host of '@' (without quotes) that points to your IP address. If you're using the Linode DNS manager an empty host field is the equivalent of GoDaddy's '@' entry.
To get your domain to automatically redirect to bwsurfshop.com/wordpress you should add the following code to your root directory's .htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)? bwsurfshop.com$
RewriteRule ^(/)?$ wordpress [L]
Or you could use a simple index.html file in your root directory that redirects to the /wordpress directory. Save the following content in a file named 'index.html' (without quotes) in the root directory of your site:
<title>Breakwater Surf Shop</title>
EDIT :: My apologies, I am looking to remove the /wordpress ending on my url. I have multiple domains which I will have godaddy redirect to the linode server.
To get rid of your /wordpress directory - in other words having your wordpress installation at the root level of your site - read this link:
Many websites aren't just wordpress sites. They have many other pages/sections than just the wordpress installation. Some just have a landing page that links to the wordpress installation. Others redirect to a wordpress directory. I simply offered two separate solutions to your problem. Now that I understand that you don't intend to have any other content on your domain besides the wordpress installation then moving it from /wordpress to / makes sense and will not require a redirect. The link above should help you with that.
As far as other sites having non-admins uploading content, not every website is run and maintained by just one person. Some sites have many people who contribute content. Some even have "guests" who can upload content. Wordpress provides this flexibility.
File permissions aren't as simple as "only let me do this" (though wordpress permissions are much closer to that model). In order for your wordpress code - which is public facing code - to upload to your site you have to allow for it to be written to by the correct Linux users. The file permissions link I included in the previous post should be helpful in explaining the differences.
When you say "I have been changing around file permissions between wordpress", do you mean you're changing permissions from within Wordpress, or are changing the permissions of Wordpress directories (via Linux command line or an another utility such as an FTP application)?
Your issues seem to be Wordpress specific so may have better luck getting help from the Wordpress forums:
Ok so I changed permissions to 777 and still can not upload my theme. Would this be something to bring up with wordpress? I feel it is a issue talking to something because I have had many wordpress sites set up on a shared hosting that all worked fine.
EDIT :: So I found out that uploadmaxfilesize is limited to 2mb which definitely will not work. I was told this can be changed in .htaccess file and also php.ini file.. What if you do not have either..
If you don't have an .htaccess file in your root dir (or wherever you've moved your Wordpress installation) you can just add one. I would assume that Wordpress adds one to its installation directory. If you're working locally on a Mac keep in mind that Mac OS X hides all files that start with a '.' (they are considered system files).
EDIT :: I do not think its a permission error as I am set to 777 right now
What kind of responses are you getting from the Wordpress support forum on these issues?
EDIT:: Also tried creating php.ini and adding
uploadmaxfilesize = 64M
postmaxsize = 64M
maxexecutiontime = 300
to it to try to up the allowed limit but no luck
Now people are saying to call the provider because they can change it?
Also :: Every time I try to create a new wordpress page I get the page does not exist in the server. This can only mean that it is not properly writing correct? Gah this is painful, two weeks trying to build a simple WP server now and I cant seem to get anything remotely stable.. Every time I try to build from scratch something never works how it says it should. Can anyone reccomend a step by step tuttorial to setting a wordpress up? I have followed the linode guides count-less times receiving the same and various errors. Just at a loss now..
Linodes are not 'managed' VPSs so you are responsible for their care & feeding unless you purchase the Managed Linode service (
Adding an .htaccess file to your Wordpress directory is easy. Just create a file named '.htaccess' (without quotes). To get the results you were trying to achieve in the php.ini file copy & paste the code below into the .htaccess file you created.
<ifmodule mod_php5.c="">php_value max_execution_time 300
php_value upload_max_filesize 64M
php_value memory_limit 64M
php_value post_max_size 64M
php_flag file_uploads on</ifmodule>
Note: if your Wordpress installation already added an .htaccess file to the directory you originally installed it in you should add the code above into the .htaccess file Wordpress created. If your installation did not create an .htaccess file then create your own.
Figured out that not having a .htaccess file caused all the issues. Also needed to allow re-writing of directories which solved the blank page and post creation issue. Thanks for the help Main Street James! Saving Lifes!
EDIT :: If anyone else is having this issue, simply add this into your .htaccess file which should be located in your wordpress/wp-admin/ directory.
# BEGIN WordPress
<ifmodule mod_rewrite.c="">RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]</ifmodule>
# END WordPress
THANKS AGAIN!