I'm a complete noob with wordpress and i'm trying to install it on my server.
I'm following the instructions on this site but when I get to step 5 and I go to the http://example.com/direct-admin/install.php I get this error:
Not Found
The requested URL /wp-admin/install.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
In my folder 'example.com', located in the 'domains' folder, I started with only stats and logs folders. The first time I added the Wordpress files in the 'example.com' folder.
I tried adding a public_html folder and putting the Wordpress files in the public_html folder but that didn't work either.
How can I install wordpress on my website?
What server are you using? There are several ways of installing WordPress, I would strongly recommend using the WordPress CLI to install WordPress. All you have to do is follow these steps:
Download the WordPress CLI using these five steps.
Use now the CLI to download WordPress:
$ wp core download
Create the wp-config.php file
$ wp core config --dbname="your_db_name" --dbuser="your_db_user" --dbpass="your_db_password"
And then you can put your website URL in your browser and continue following the wizard, WordPress will ask you what site name, username and password do you want to use.
If you're having trouble setting up a wordpress installation and you're getting 404 errors or "apache is function normally" then it's possible that your DNS/server settings aren't correct, this was my error.
First try creating a .html file with a simple text editor by copying the html markup below into a new file and then save it as index.html
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading<h1/>
<p>My first paragraph.</p>
</body>
</html>
</code></pre>
And upload that to your server.
If you're still having errors you know it's not the wordpress installation that causes these but it's your server settings.
You should:
check if you are putting it in the right folder (like f.e. public_html)
make sure that your DNS configuration is correct
Check this answer for more information on how to setup your server to view a simple .html file.
Related
I am learning wordpress, I think I have installed it according to the installation instructions, but the result is 404
Download wordpress (ok)
Create a database for WordPress on your web server, and also create a MySQL user with all permissions to enter and modify. (ok?)
Rename the wp-config-sample.php file to wp-config.php.(ok)
Open wp-config.php with your favorite text editor and fill in your database information.(ok?)
Put the WordPress folder on your server where you want to put it(ok?)
Visit wp-admin/install.php in your favorite browser to launch the installer(404)
Why?
Are you using web server to run wordpress site (ex:xampp, wamp v...). Are you change directory of variable DocumentRoot and Directory in httpd.conf point to wordpress directory?
I'm using WAMP to try and make a local copy of a rather large wordpress site.
After some struggle with the database i moved all the files from the ftp: to my www/ wamp folder.
Now when i try to open the pages i get:
localhost is currently unable to handle this request.
HTTP ERROR 500
BUT i can open my localhost/wp-admin and see my wordpress dashboard.
Generally, it can happen for many reasons but you can debug it step by step!
Check .htaccess file.
Delete this file or replace it with a fresh one!
Some plugins like wp-cache alters .htaccess file to achieve its purpose. So updating this file may solve your problem.
Update Permalinks to default from WordPress settings.
Replace all WordPress files with fresh WordPress files except wp-content folder. you need to update database again.
Set another theme and check if works and again set your default theme. Sometimes theme also causes this error!
A friend of mine asked me for a favour, to move his website. The programmer who made it, send me an archive with the database, and the rest of the files needed. I've installed it on my localhost, with apache, php and mysql installed on it.
I have a problem with it. If I go to localhost/mgro/index2.php, it shows somehow a minimal version of the website, but if I click on something, it gets to index.php?something_else_here and it works. If I go to localhost/mgro I just see the files, and if I go to localhost/mgro/index.php it redirects me to localhost/mgro.
About the configuration file, I've used the configuration.php-dist file, with new info in it. What I've changed was just the database, user and password for the database.
Basically, everything works fine, except that index.php with no requests, because it "backs" me into the folder
NEW PROBLEM: If I click on an Add to cart button, it redirects me to the website that is online.
Is this Joomla 1.5 or Joomla 2.5.x / 3.0? I'm going to guess that you have a potential issue with the live_site variable in the configuration.php file, especially if you're using Joomla 1.5. Make sure that it is configured to your localhost's live site URL directory.
Some other things to check:
1) If you're using SEF urls you need to use a .htaccess file. Usually the one Joomla' includes by default works (if you don't have it you can redownload it from Joomla's code repos: http://joomlacode.org/gf/project/joomla/frs/?action=index
2) When logged in go to global configuration and check the option "URL rewriting". You can try switching it off. (On does require the .htaccess file mentioned before).
3) If you're just seeing files when you hit the directory then Apache isn't configured to load .php files. Since you're running a localhost you'll have to track that down somehow.
Some other notes:
-Index2.php isn't anything, don't use it.
I installed wordpress on my local machine (backtrack) for experimenting. After I got everything setup I moved it to an Ubuntu Server so that everybody can access those pages at work. I followed the same instructions, I moved the wordpress folder into /var/www but I created a new database with the same username, password and hostname.
The problem is whenever I access the webpage #ubuntu it tries to download the file, if access the page #backtrack it goes to the dashboard and everything is fine.
I did not have an .htaccess file on either machine sop I created one just to see if it will fix the problem but it did not.
Apache works fine because I can get to some folders I have setup by going to
"http://ubuntuserver/folder name"
and the logs shows no errors because it is delivering the webpage to the client just fine but the client is downloading it instead.
Any Ideas why this is happening??
Sounds like you haven't installed the PHP module for Apache or enabled it to use PHP using AddType in the Apache config file.
It seems that your WebServer ( Apache here, i suppose ) is not configured to use PHP module and/or is missing some PHP configuration options.
See here for some basic configuration tutorial.
I am taking over for a developer who left a website running a linux/apache on freebsd. I need to add a php page to the site. He used Smarty templates as well. I copied an existing php page and its corresponding template file. Made changes to the template file and it created a compiled newfile.php.tpl file in the compiled directory.
All the php files can be accessed WITHOUT the .php and work fine. If I refer to the newfile without .php I get a 404 error, with the .php it works fine.
.hataccess. I have done a find on the the system and for this website, there does not appear to be a .htaccess file. Even if there were the rest of the pages work fine without php extension.
Things I tried grep for the mod rewrite, i did a find on .htaccess, i rebooted. So is there some cache i am missing or some other basic thing, apache, php? I have put in about 12 hours on this. The only thing i found remotely was a url_rewriter.tags section in a phpcgi.html file.
Went to lighttpd.conf file researching #rodneyrehm sugg. I found a fastcgi.server section and there is a
url.rewrite-once = (
section of code with the specific pages for the site. So I added my new page and all is well.