• Resolved Ryan

    (@tombellmemorial)


    I am working on a site for someone and trying to install a copy of wordpress using FTP. I have done this successfully before but am not sure what my problem is this time.

    I have changed the settings in the config.php file to connect the files to the database & have added the security keys. Even when I try to pull the config.php file up I am unable to.

    The site is https://www.blpcpa.com.

    I am trying to go to https://www.blpcpa.com/wp-admin/install.php but am receiving a 404 error.

    I think the files are in the right location, because when I place a sample index.html file in the same location I can view it on the home url of the site.

    Any help would be appreciated.

Viewing 15 replies - 1 through 15 (of 20 total)
  • Hello,

    It seems you have a problem with full root of webserver. If you can access it, try deleting .htaccess file in root of it.

    I can tell because I tried both:
    https://www.blpcpa.com/

    And:
    https://www.blpcpa.com/index.php

    This is not normal.

    Your WordPress setup should be able to direct you, and launch WordPress automatic setup. Looks like you uploaded WP to the wrong folder. (not root).
    So, I suggest, you make sure of a few things:

    – Root folder: you uploaded WordPress directly in root folder (wp-config.php file should be there – and following WordPress folders should be directly as sub-folders when you check it in FTP)
    – Make sure you have rights to edit and read, again it’s easier to do it by FTP

    Another possible problem is your Webserver (Apache, Nginx), doesn’t use php as readable files – or wrong file rights. Thus, 2 options:

    1) try to check it with httpd.conf file
    2) check again user rights, a public user should be able to read your website from global root folder (have a look at chmod rights).

    Hope my 2 cents helps,

    Thread Starter Ryan

    (@tombellmemorial)

    I appreciate your input and advice. What you are saying makes sense and is what I have been reading when researching this problem.

    I am concerned that the server doesn’t read php files. What would be the best way to test that?

    Also I feel like I am uploading the files to the proper spot because when I upload a html file like I have done now, it appears see: https://www.blpcpa.com/.

    Also I could not locate .htaccess file. I know it is a file that is usually hidden and using filezilla I do not see it. Also when researching filezilla does not appear to have a show/hidden files option but does have filters. All my filters are turned off so I feel like I would see it if it is there.

    Hello Tom,

    Well, can you tell me what is your webserver and os please?
    It’s not your webserver doesn’t read php files, but doesn’t take it as main file to read in a folder. It happens sometimes on VPS and some servers – file types must be configured.

    You can also try to delete index.html in root. Sometimes it’s enough so that index.php (from WordPress) takes it.

    I’ll try to give you a better answer.

    Thread Starter Ryan

    (@tombellmemorial)

    Is this what you are looking for:

    Site Technologies

    IIS Windows Server 2012 R2 / IIS 8.5 / .NET 4.5

    Classic ASP Windows / IIS (Requires .asp extension)

    Ok, try to delete index.html please, and see if index.php takes it?

    Does it launch WordPress setup?

    Thread Starter Ryan

    (@tombellmemorial)

    It has been deleted now. It was deleted previously when we began this conversation as well. For some reason index.html will show up but index.php does not. I am not sure if it is a setting or what.

    No it does not launch install.

    Thread Starter Ryan

    (@tombellmemorial)

    Also all the folders are 755 permission and the files are 644 like they should be.

    Ok, to make sure your IIS webserver can read it we’ll have a test. I suspect your IIS doesn’t have module to read php.

    Create a file named test.php in your root, please. In a true text editor like for instance PSPad, Notepad, whatever create a file named test.php and put it your root.

    <?php
      {
    		echo 'Test worked';
    	}
    ?>

    Then try for example:

    localhost://yourwordpress-root/test.php

    If it works, ok for your IIS, if not, probably you miss a php module on your IIS webserver.

    I wait for answer,

    Thread Starter Ryan

    (@tombellmemorial)

    It is completed. I used Notepadd++ created a test file called test.php and placed it in the root in the same spot I was placing the html file. It can be viewed here: https://www.blpcpa.com/test.php.

    It appears to have not worked so does that mean the server has an issue with a PHP module and if so how do I go about fixing that?

    It is like like I thought, your IIS webserver cannot YET read PHP.

    After, it’s not a huge issue, now you can install php on any IIS webserver. Just, I’m not an expert on this. It’s, to my knowledge, a module to add to IIS (Windows) to read php.

    I send you links on next post,

    https://php.net/manual/fr/install.windows.iis7.php

    https://technet.microsoft.com/en-us/library/hh994578.aspx

    It works well now, just by default, IIS is disabled on many setups too.

    Hope it helps,

    Thread Starter Ryan

    (@tombellmemorial)

    I found a spot in the hosting to change the server technology to “Linux / Apache / PHP 5.6”

    I am hoping this will help. It said some times it takes time to get properly changed over. I am trying it now and it still does not appear to be picking up the files.

    Personnally, I prefer Apache/Ngnix as webserver, but, now IIS is very efficient too (compared to what is was 5 years ago for php/mysql).

    NB: Install the php module for IIS and restart server. Also make sure no conflict on port 80 on 2 webservers for Windows.

    NB2: You need to restart webserver for any change on https://localhost.

    NB3: PHP version was not the problem I think – IIS – with php module should have been able to read test.php

    If you switch to Linux, just use templates and it will work sweet with same warnings:

    – delete htaccess file
    – delete wp-config.php

    That way you should have the “install screen” of WordPress.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘404 error upon wordpress installation’ is closed to new replies.