• I tried installing WordPress 3.8 on a Windows machine. I am running AMPPS on the Windows machine (full LAMP stack). I created the wp-config.php file from the supplied sample file, and modified it. I ran WordPress, and it initially worked fine.

    My computer restarted due to an error, and the next time I tried to run WordPress, I got the following message:

    Warning: require(C:\Users\Joseph\GoogleDrive\projects\phpapps\wordpress/wp-includes/load.php): failed to open stream: No such file or directory in C:\Users\Joseph\GoogleDrive\projects\phpapps\wordpress\wp-settings.php on line 21
    
    Fatal error: require(): Failed opening required 'C:\Users\Joseph\GoogleDrive\projects\phpapps\wordpress/wp-includes/load.php' (include_path='.;C:\php\pear') in C:\Users\Joseph\GoogleDrive\projects\phpapps\wordpress\wp-settings.php on line 21

    Looking through some of the config files, I can see that most have a slash (‘/) in the file path. That works for Linux but not for Windows. Why hard code a slash, when you can have a directory separator constant defined after testing for the OS version?

    Or am I doing something wrong (I don’t understand why it ran OK the first time).

Viewing 3 replies - 1 through 3 (of 3 total)
  • Some points for clarification that might help speed you on your way to an answer:

    – a LAMP stack implies Apache, MySQL, PHP in a Linux environment. I’m guessing that’s just a typo..

    – Why is GoogleDrive in your installation path? Ampps runs as a local development environment, with an installation path that usually lands in your program files (or preferably at the root of your primary drive). Example: “C:\Ampps” or “C:\Program Files\Ampps”. Are you trying to run Ampps from GoogleDrive?

    I don’t understand why it ran OK the first time

    At first glance, neither do I. 🙂

    Thread Starter josephmouhanna

    (@josephmouhanna)

    I am running AMPPS (ampps.com), which is Apache, PHP, MySQL, PhP, Python, Perl, etc. In my case, I am running it on a Windows environment.

    GoogleDrive appears as a local drive. AMPPS installed in c:\Program Files (X86), but the Apache portion of AMPPS behaves just like an Apache installation on a Linux environment, i.e. I can multiple virtual hosts, and in this case, one of my virtual hosts is http://WordPress, and the document root for this virtual host is specified as c:\users\joseph\googledrive\projects\phpapps\wordpress

    The only caveat here is that AMPPS insists on managing virtual hosts itself, so if you manually edit the files in config.d, it will change them for you. Minor issue, and not relevant to the issue I am dealing with.

    I still don’t understand how WordPress ran the first time. I verified it, and it also created the database locally, added all the tables, I was able to install a theme, add a page, and write some add-on code that ran fine. After I restarted the machine, it gave me these error message, and when I looked at the config files, it was clear why these messages appeared, although it’s still not clear how it ran the first time around.

    So, the question is: is there a Windows-only version of WordPress? One of Microsoft’s web sites has a WordPress install facility, but it wants to install something else in addition to WordPress. I am not sure what that is, and I don’t want it either.

    but the Apache portion of AMPPS behaves just like an Apache installation on a Linux

    Apache is just behaving like Apache.

    So, the question is: is there a Windows-only version of WordPress?

    No. There is a version tailored to run on Windows IIS server, but that’s another issue altogether. WordPress is simply a web application that needs to be installed on any server that meets the minimum requirements for it to run properly.

    Are there prepackaged server environments aimed at developing WordPress (as well as other web applications) locally in a Windows environment? Absolutely. Some more examples:
    WampServer
    XAMPP
    EasyPHP

    This one is completely portable: Instant WordPress

    All are intended for local development, but once you start involving networked drives (or drop-box like storage services such as GoogleDrive) I think your mileage is probably going to vary.

    If you need Perl, (and depending on what those needs are) I’ve had fairly good luck in the past using WampServer + Strawberry Perl for Windows, but everyone’s needs are going to be different of course.

    More reference material: Installing WordPress Locally

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Installing WordPress on a Windows 8.1 machine’ is closed to new replies.