barkster
Member
Posted 4 years ago #
I just installed wordpress on my server, the install went great with no hitches it created the tables in the DB and I can log into the admin section a work throughout no problems. But if I try and view my site it is a blank page, also, I browsed to wp-includes/wp-db.php and I get "Error establishing a database connection" which is pretty weird since I installed and configured fine and can login fine to the admin which means it can connect to my db. Any ideas?
Don't run random php scripts on a whim - bad things could happen. That you got a DB connection error is probably a good thing.
Why your main page is blank may be an .htaccess or permalink problem.
Make sure what's in the .htaccess looks reasonable compared to the installation instructions. Also try set the permalinks to the default/ugly format and use the default theme until that front page is working.
barkster
Member
Posted 4 years ago #
So your saying the code here is insecure???? I'll look into the htaccess, just weird how the admin section works fine
barkster
Member
Posted 4 years ago #
I'm still searching but where can I see what the htaccess file should look like.
wp-include/ contains fragments of a program. they are incomplete, they are meant to be included, not run directly, just to see what happens.
Read/search the codex and installation instructions on permalinks and .htaccess. Or post the contents of your .htaccess here. It should only be a half dozens lines of so.
barkster
Member
Posted 4 years ago #
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.domain.org
AuthUserFile /home/domain/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/domain/public_html/_vti_pvt/service.grp
Options All -Indexes
You don't need any FrontPage-specific htaccess for WP. ON the contrary - searching you can find topics showing that FrontPage is screwing up things.
http://codex.wordpress.org/Using_Permalinks#Permalinks.2C_.htaccess.2C_and_MS_Frontpage
What he said. Don't use Frontpage (and avoid Dreamweaver too)
Test this by deleting all the lines in .htaccess (make an empty file)
barkster
Member
Posted 4 years ago #
I blanked the htaccess with same results. Oh well I guess I need to read the instructions again. I keep missing the part about modifying your htaccess. Thanks
barkster
Member
Posted 4 years ago #
I rebuilt my site without frontpage extensions module and used the htaccess file from Almost Perfect htaccess File for WordPress Blogs
now I'm working fine, thanks for all the help