Hi,
Have you checked out this page:
http://codex.wordpress.org/Installing_WordPress
Also, a lot of times the web host will have some type of software package that will install wordpress for you (usually called fantastico, softaculous, mojomarketplace or something like that). I usually go this route because it creates everything for you.
Regards,
Josiah
Have a look at that file and see what’s on line 18 (and line 17 just in case there’s something there as well). If you can’t see anything paste the first 20 or os lines of the file and we’ll see what we can see. If you want to post a lot of code you should use pastebin.
Moderator
t-p
(@t-p)
Parse errors:
Syntax Error
A syntax error means that you have made a mistake while creating your PHP structure. You could, for example, be;
■ Missing a ; at the end of an individual line.
■ Using curly quotation marks.
■ Missing a curly bracket.
When this error appears it will tell you which file the error appears in (in your case “index.php” for example) and approximately which line (it may not always be the exact line so be sure to check just before and just after) in the code.
Unexpected
If you are receiving an error which says ‘parse error: unexpected’ this usually means that you have forgotten to include a character.
Thread Starter
sssona
(@sssona)
Hi, thanks you all, but still didn’t find out what to do…
these are last lines:
*/
define(‘WP_USE_THEMES’, true);
/**
* Loads the WordPress Environment and Template */
require(‘./wp-blog-header.php’);
the last one is number 18
I’ve tried to move all lines down with double enter and error moved as well to number 20
can you see any syntax error?
to Josiah:
my web host is webzdarma.cz – they don’t have any software package, I think, and I don’t want to change my web address because I am using it for years, I just wanted upgrade to wordpress
Hi Ssona,
TL;DR
The reason why the error moves to line number 20 when you move the ‘require’ from line 18 to 20 is because the error is in something that is ‘required’. The most obvious place to look now is the ‘wp-blog-header.php’.
…
So, there is nothing wrong with the file you are looking at. PHP — which is the programming language used in WordPress themes — is trying to ‘require’ the ‘wp-blog-header.php’ but there is some type of error in that file or one of the files it requires.
IF you can access the web-server’s error logs, the error may be more easy to diagnose. It is worth a shot as it might say something nicer such as ‘the require in file BLAH failed’ as opposed to just syntax error.
Find where ‘wp-blog-header.php’ is and examine that file.
Where did you get the ‘original’ WordPress zip, tar.gz (or other archive format) file? I’d be happy to look at that if it came from a publicly available web server or you could send it to me and I’ll attempt to find the error and, if I do, I’ll tell you what it is and how I found it which will help debug the inevitable syntax error(s) we all make from time to time.
DSL