N
N
Nadya19962017-07-05 17:13:16
css
Nadya1996, 2017-07-05 17:13:16

Why doesn't index.php open on localhost?

Initial data:
OS: Linux Mint 18.1
Server: nginx 1.2.1, mysql, php 7.0., wordpress. It is supposed to be used on localhost
/etc/nginx/default.conf

server {
    server_tokens off
    listen       80 default_server;
    server_name  localhost;

    charset koi8-r;
    access_log  /var/log/nginx/log/host.access.log  main;

    location / {
        root   /usr/local/share/nginx/html/index.php;
        index  index.html index.htm index.php;
    }

    error_page  404              /404.html;

    redirect server error pages to the static page /50x.html
   
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/local/share/nginx/html;
    }

    proxy the PHP scripts to Apache listening on 127.0.0.1:80
    
    location ~ \.php$ {
       proxy_pass   http://127.0.0.1;
    }

     pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    
    location ~ \.php$ {
        root           html;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        include        fastcgi_params;
    }

     deny access to .htaccess files, if Apache's document root
     concurs with nginx's one
    
    location ~ /\.ht {
        deny  all;
    }
}

The site is located in /usr/local/share/nginx/html/ wordpress content unpacked from the archive
Problem:
Nothing was found when typing localhost/index.php into the address bar.
Where is the mistake?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
lagudal, 2018-12-19
@9vanya

5c1a97f44e9c0843016399.jpeg
Still how it works))
Apparently you are just learning to typeset, errors and generally unnecessary a bunch of extra tag here, then, if you want to leave your slogan inside the form, wrap everything that should be on the right with another div, and set float:left to this div, or, as mentioned above, you can leave the slogan class out of the form in the .form class, remove width: 45% from this class and add float: left float for the .slogan class, you can not set it. But in general, you need to learn simply, look at how such forms are made, there are a million of them. Try the following for yourself.
Before writing styles, draw all the elements on the sheet, in the form of blocks, grids, etc., etc., as you imagine and how it should be. Then it will immediately be easier, especially if you know how certain css properties actually work.
And immediately think about how it will look at other resolutions.

S
Semyon Beloglazov, 2017-07-05
@Batlab

location / {
                try_files $uri $uri/ /index.php?$args; # permalinks
}

And delete everything in the indexes except index.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question