• i made a website for seo purpose and i submitted to google .google fetched each page of the website.but it never fetch the homepage.when i search the site in google and i got a reply like this:

    “A description for this result is not available because of this site’s robots.txt – learn more.You visited this page on 3/03/15.”

    i tried over and over again ,finally, i found google fetchs the site 4hours after i delelte the php.ini file on the cpanle every time

    can someone show me the reason?

    i attatched content of php.ini as below

    memory_limit = 512M
    max_execution_time = 300
    upload_max_filesize = 256M
    post_max_size = 256M
    safe_mode = Off

    max_file_upload = 256M
    max_post_size = 256M

    suhosin.simulation = On
    suhosin.post.max_vars = 4096
    suhosin.request.max_vars = 4096
    request.max_varname_length = 350
    suhosin.session.encrypt = off
    magic_quotes_gpc = Off
    magic_quotes_runtime = Off
    magic_quotes_sybase = Off

    extension=pdo.so
    extension=pdo_sqlite.so
    extension=sqlite.so
    extension=pdo_mysql.so
    extension=mysql.so

    thanks

Viewing 15 replies - 1 through 15 (of 15 total)
  • I see nothing in your php.ini file which might result in restricting the fetching of your homepage, and am wondering why you are considering this file and not your robots.txt file…..

    What are the contents of your robots.txt file? Could you post them here?

    If you are using an SEO plugin, has the homepage been set to nofollow or noindex for some reason

    Thread Starter kate15

    (@kate15)

    thanks Barnez!
    i changed my robots.txt lots of time. finally,i confirmed as below

    User-agent: *
    Allow: /

    it works when i delete some files on cpanles . it doen’t work when i restore files into cpanles.
    i use crazydomains . it’s really not a good choice.
    when i run site on localhsot and othe hosts. the site works well. while i move site to crazydomain. 2 problems occurs
    first one image cann’t be upload anymore .i spent a whole day to add 2 lines of codes in php.ini ,it finally works

    file_uploads = On
    upload_tmp_dir =”/home/treephot/tmp/”

    the second one is the google refused to fetch the homepage of site.

    Thread Starter kate15

    (@kate15)

    i am sure it’s not about the robots.txt but about setting of of hosting files

    Thread Starter kate15

    (@kate15)

    maybe there are something else on cpanle.it’s not the issue of php.ini

    Thread Starter kate15

    (@kate15)

    πŸ™‚
    i learn a lot from you website. it looks great!
    User-agent: *
    Disallow: /wp-includes/
    Disallow: /wp-login.php
    Disallow: /*wp-login.php*
    Disallow: /wp-admin/
    Disallow: /cgi-bin/
    Disallow: /trackback/
    Disallow: /archives/

    # allow google image bot to search all images
    User-agent: Googlebot-Image
    Disallow: /wp-includes/

    by the way, i am not useing any seo plugins
    Allow: /*

    # allow adsense bot on entire site
    User-agent: Mediapartners-Google*
    Disallow:
    Allow: /*

    Thread Starter kate15

    (@kate15)

    by the way ,i am not useing any seo plugins

    Hi kate15

    Yes, definitely nothing wrong with your robots.txt πŸ˜‰

    It’s odd that removing your php.ini file allows the homepage to be fetched by Google after 4 hours. Did you try a) manually fetching the homepage in this 4 hour period after removing the file, or b) just wait for Google to re-attempt to fetch? If b), then you could try commenting out half the code in the php.ini file by placing ; before each line. Then log in to google webmasters and try and fetch the homepage. If it fetches then try commenting out the other half of the code, and so on until you locate the line that is causing trouble.

    For example:

    memory_limit = 512M
    max_execution_time = 300
    upload_max_filesize = 256M
    post_max_size = 256M
    safe_mode = Off
    
    max_file_upload = 256M
    max_post_size = 256M
    
    suhosin.simulation = On
    suhosin.post.max_vars = 4096
    suhosin.request.max_vars = 4096
    ; request.max_varname_length = 350
    ; suhosin.session.encrypt = off
    ; magic_quotes_gpc = Off
    ; magic_quotes_runtime = Off
    ; magic_quotes_sybase = Off
    
    ; extension=pdo.so
    ; extension=pdo_sqlite.so
    ; extension=sqlite.so
    ; extension=pdo_mysql.so
    ; extension=mysql.so

    have you tried google webmaster tools, fetch as… try to fetch your homepage if it works then just wait,, if not try http check, robot.txt check.

    Thread Starter kate15

    (@kate15)

    thanks guys
    problem solved !
    it proved that has nothing to do with contents of php.ini.
    i just delete some folders and files on cpanel
    they are folders
    .cagefs
    cagefs/tmp
    cagefs/var
    .cl.selector
    .htpasswds
    they are files
    bash_logout
    bash_profile
    bashrc
    crms
    ftpquota
    gemrc
    hacklog

    can someone tell me which items block the google fetching?

    Thread Starter kate15

    (@kate15)

    google has fetch the homepage of the site

    I know it’s frustrating, but it’s important to try to be methodical, logical and precise when troublshooting WordPress issues.

    I would be *very cautious* about randomly deleting files through your cPanel. This may impact on the stability of your site/cPanel going forward. In the event where you do choose to delete a file or directory,this should be because you have a *credible reason* for doing so, and you should always take a backup so you can restore the file/directory if things become unstable.

    At this point, I would either 1) restore the files.directories you have deleted (if possible), or 2) contact you hosting company and explain your situation regarding the deleted items – they may be able to restore your setup from a backup.

    If you can get your site back to this original state, then I would resume the troubleshooting process, starting with commenting out half the code in the php.ini file as suggested above.

    Good luck!

    Thread Starter kate15

    (@kate15)

    thanks Barnez
    i have taken a backup for all the files i deleted for emergency
    i called the craydomains staff for 1 hour today.they failed to solved the problems. so i went back to wordpress forum. it’s really a good place!

    That’s great to hear you’ve got backup copies – good thinking!

    I would restore all those deleted files & directories for starters.
    Then I would try installing an SEO plugin such as WordPress SEO. This plugin will allow you to create an xml sitemap (very important for ranking with search engine) and to set the specific meta data for each page/post: SEO title/Meta description/Meta robots index/Meta robots follow.. This will all be good for your site’s SEO and ranking, and may help override the issue with the homepage not fetching. Also, once you have set up your xml sitemap you can submit it manually to google webmaster tools and make sure that all the site pages/posts can and will be indexed, and if not, why.

    Thread Starter kate15

    (@kate15)

    thank you for your kind suggestion~

    No problem at all. Good luck, and post back how you get on.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Does php.ini block google fetch website?’ is closed to new replies.