WordPress installation problems
-
I am having problems installing wordpress. it is not as easy as it is claimed to be.
Server: Windows Server 2008 R2 IIS 7 – did not have php or mysql installed on it.
I understand I have to start with the installation of php and mysql first.
i tried doing just that. But not having any experience with both installations i don’t know if its properly installed or configured for IIS and WordPress.
At this point I feel I should uninstall all the different versions and start fresh.
this is an image of whats installed on the machine: https://rossow-web.com/inbox/image2.jpg
Any advise would be highly appreciated.
-roy-
-
It is as easy as claimed … into an appropriately configured compatible environment ??
If you must install using IIS, then have a read through this:
https://codex.www.ads-software.com/Installing_on_Microsoft_IIS
Be advised though that the preferred environment is Apache/Linux, not just for WP, but most other PHP/MySQL scripts such as Joomla!, eFront, PrestaShop, Drupal, etc.
Are you planning on hosting the site yourself from this server, or just setting it up locally for testing/development? Either way, I have successfully been running an eFront installation, available on the web, on a Win 2008 R3 server using a freely available AMP (Apache/MySQL/PHP) “stack” called the Uniform Server. No IIS required (in fact, it’s best to uninstall it). A simple, easy alternative to what is mentioned in the above link.
Hi Roy,
If this is a local install for use locally then @2ninerniner2 is better placed with his response.
However if this is going to be a full public website then I would recommend visiting https://www.ads-software.com/hosting/ – here you will find a list of WordPress host companies recommended by WordPress themselves.Alternately do a search for “wordpress hosting” where you will find a number of providers who specialise in WordPress hosting services.
Benefits of using specialist WordPress hosting companies:
– Environment is configured correctly
– One click install (some hosts preinstall it for you)
– Some provide auto backup services
– Some provide “staging” environments before pushing to “live”I hope that this helps.
IainUltimately my client wants me to replace their current site with a WordPress version. I assume so they can update content at will. I can’t even get to the design phase because the server didn’t have mysql or PHP on it.
I’m working remotely with their in house Windows server running IIS7. So I can’t change the server software.
Also I’m not really well versed on IIS7. And though I’m fairly technically savvy to some degree, I’m not an expert on web server software.
In response to: Lain – I’m working with a client’s server. And it is a full public website which they host in house.
I did find and tried the Microsoft Web PI. I started the installation, but again I didn’t quite understand all the prompts during the installation process. For example: do i want to create a new URL for WordPress? i just a note from the client that don’t want a sub directory but to completely replace the current root website.
does all this make sense?
Thank you soo much for responding. I’d appreciate any help you can offer.
-roy-
This is what is currently installed: https://www.rossow-web.com/inbox/image6.jpg
I run several wordpress sites on a Windows 2008 R2 IIS7.
So here’s some initial information and if you let me know where you need the detail, I will start posting the detail to a pastebin because I think it is too much to post here.I assume you want to setup a development environment. I use sub domains (e.g. dev.domainname.com). Whoever is in control of the domain will have to create the subdomain for you…if that isn’t you. Then you add the site in IIS using the IIS Manager. I can tell you step by step how to do this if you need this info.
On MySQL…I see 5.6 is installed. Did you create the database ? Do you need to know how to do this?
I had trouble getting PHP installed correctly. I finally used the Windows Installer for PHP 5.3 and I just installed all of the extensions. Once you have it installed and working it is very easy to upgrade to PHP 5.4.nn or PHP 5.5.nn. There is no Windows installer for later versions of PHP. I will be happy to post more details about this step.
You may have to tweak the php.ini file. I will be happy to post my versions via pastebin (or something). To much to post here.
At this point, you should test that the site is working in IIS, PHP is working and MySQL is working before trying to install WordPress. It will save you a lot of time.
Use a simple index.html…a “hello world” type of thing to test that the development website is in operation (after setting it up in IIS).
Then test that PHP is working by creating a phptest.php file that just contains the following line of code:
<?php phpinfo(); ?>
Then when you visit this URL https://dev.domainname.com/phptest.php you should see the PHP info page. If you don’t, it isn’t working.
Finally, test that you can connect to your database. Put the following code in a php file (e.g. testsql.php) and update it with the connection details for your database. Then visit the URL https://dev.domainname.com/testsql.php. The output will tell you if you’ve successfully connected to the database.
<?php echo "okey dokey <br>"; // hostname or ip of server (for local testing, localhost should work) $dbServer='localhost'; echo "okey dokey <br>"; // username and password to log onto db server $dbUser='mysqlusernamegoeshere'; $dbPass='passwordgoeshere'; // echo "okey dokey again <br>"; // name of database $dbName='databasenamegoeshere'; $link = mysql_connect("$dbServer", "$dbUser", "$dbPass") or die("Could not connect"); print "Connected successfully<br>"; mysql_select_db("$dbName") or die("Could not select database"); print "Database selected successfully<br>"; // close connection mysql_close($link); ?>
Once you’ve got those three elements working you are ready to do the 5 minute WordPress install and it really is only 5 minutes! Okay. Maybe 15 by the time you update your wp-config.php file.
Let me know where you are stuck or what further detail you need.
I forgot to mention that you need to install FASTCGI when you install PHP.
And then setting up the web.config file so the rewrite module works.
Let me know if you need more detail about these two items.Muddg – this is great, thanks for breaking it down step by step!
What do you mean by a development environment? The client wants the current site to become the wordpress site, so there is no need for a sub domain.
PHP installation :
I had php installed. But as you saw in that screen grab from my previous post I uninstalled it from the control panel; just to start from the beginning. Well I thought i uninstalled it. But when I access this test.php file I created this happens –> https://www.mountainhighorganics.com/test.phpI do not believe I install FASTCGI.
MySQL installation:
Looking again at the screen grab-> https://www.rossow-web.com/inbox/image6.jpg there are a bunch of MySQL installs..does that matter?No I did not create a database. And yes I need help with this.
Yes lets test php and MySQL.
Use a simple index.html…a “hello world” type of thing to test that the development website is in operation (after setting it up in IIS).
Could you explain this in more detail?
Questions:
> should I uninstall the Microsoft Web PI?So I believe I should go back to a proper install of PHP. Correct?
-roy-
Well it looks like you have PHP up and running. Your test.php displays the PHP info page. That indicates PHP is working. I don’t think you have to reinstall it. Just delete that test.php file for security reasons.
I don’t think you have to uninstall the Microsoft Web PI.
Here are some additional notes about PHP settings: https://pastebin.com/LAb8KLfN
On the issue of a sub domain. If you install WordPress into the existing site’s directory, you risk bringing down the existing site, maybe clobbering some of the contents (not sure, depends on how it is structured). If the client doesn’t care that their site is down while you do the wordpress development then you don’t need to worry about setting up “a separate” domain for a development environment. So forget about the index.html. You only need to use that if you setup a new development site in IIS and you want to test that it is working.
I would take steps to backup the current Site directory.Do not worry about all the extra MySQL components installed. The important ones are installed.
So to create your database, use MySQL administrator on the server. If you installed MySQL then you should know the password to login to the MySQL server. You will need the MySQL Server login details.
Detailed instructions to create a MySQL database can be found at this pastebin : https://pastebin.com/ZVezk7jh
Finally, you have to setup the rewrite rules so that the WordPress permalink structures work.
Here are the two references I used to get that working. It is pretty straightforward. Just be careful to backup the existing web.config file (if indeed one exists) before you make any changes to it.
You should find it in the root folder of the website.Enabling Pretty Permalinks in IIS and there is a note on this page
https://codex.www.ads-software.com/Using_Permalinks, look for the heading Permalinks without mod_rewrite.
- The topic ‘WordPress installation problems’ is closed to new replies.