Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
25% Recurring Discount on NVMe VPS
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
CloudLinux
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Index.php not loading in browser

nicheniche Member

For a particular cpanel webhosting account, index.php is visible when checked using FTP and file manager, however it is not visible when a browser is used. What could be the reason?

«1

Comments

  • Did you check the file permissions?

  • serverfoodserverfood Member
    edited January 2018
    • check your error log
    • check file permission
    • check if apache directive accepting index.php
  • jarjar Patron Provider, Top Host, Veteran

    Better question would be what is happening instead of index.php loading in browser. Downloading it as a file? Loading something else? Does anything else from that directory load when called by filename, like an HTML file?

  • DirectoryIndex index.php
    
  • WSSWSS Member

    Did you leave 'index.ht??' in there?

    @dcamero said:
    DirectoryIndex index.php

    Add to .htaccess:

    DirectoryIndex index.php index.htm index.html index.shtml index.xhtml index.wml index.perl index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php4 index.php3 index.phtml default.htm default.html home.htm
    

    That should cover things.

    Thanked by 1kkrajk
  • jarjar Patron Provider, Top Host, Veteran

    WSS said: index.pl

    Thanks, I'm going to have nightmares now.

  • WSSWSS Member

    @jarland said:

    WSS said: index.pl

    Thanks, I'm going to have nightmares now.

    #!`env perl`
    print <<'jarland';
    content-type=text/html;
    <html>
      <head>
        <title>TaylorSwift0.0001fansite</title>
      </head>
      <body bgcolor="#ffffff" text="#000000">
        <h1>It Works!</h1>
      </body>
    </html>
    jarland
    ^Z
    
    Thanked by 1eastonch
  • Some domains on the webhosting account have index.php loading properly, others are having a problem and giving the default page
    Index of /

      Name                                                                             Last modified         Size  Description 
    

    directory cgi-bin 07-Jul-2017 09:42 -

    Proudly Served by LiteSpeed Web Server at www..info Port 80

  • @niche said:
    Some domains on the webhosting account have index.php loading properly, others are having a problem and giving the default page
    Index of /

      Name                                                                             Last modified         Size  Description 
    

    directory cgi-bin 07-Jul-2017 09:42 -

    Proudly Served by LiteSpeed Web Server at www..info Port 80

    Goto Addon domains and check if the directory for those domains is correct

  • Thanked by 1Aidan
  • you might also need something like this:

    <IfModule mime_module> AddHandler application/x-httpd-ea-php56 .php .php4 .php5 .html .htm .phtml .shtml </IfModule>

  • @seaeagle said:
    you might also need something like this:

    <IfModule mime_module> AddHandler application/x-httpd-ea-php56 .php .php4 .php5 .html .htm .phtml .shtml </IfModule>

    Please confirm where this has to be added

  • WSSWSS Member

    Just for the sake of argument- did you contact your host?

  • @niche

    Either the virtualhost's configuration or .htaccess.

  • jarjar Patron Provider, Top Host, Veteran

    Answers no probing questions, only responds to ask where to paste the one thing given to them that's just ready for copy/paste.

    HostGator tickets were fun.

  • WSSWSS Member

    @jarland But this is the way LET wants to move in, well, for those 12% who want us to be touchy-feely-free-techsupporty.

  • nicheniche Member
    edited January 2018

    @WSS said:
    Just for the sake of argument- did you contact your host?

    Yes, contacted the host, they are saying no files are deleted

  • WSSWSS Member

    ...and what files are in there?

  • happybeehappybee Member, Host Rep
    edited January 2018

    Have you checked if any .htaccess files are placed outside public_html - ie. inside /home/username/ ?

  • I bet he didnt even change the DNS records

  • WSSWSS Member

    @volver I bet he didn't change his underwear, either. Dude is on the spectrum.

  • @niche said:

    @seaeagle said:
    you might also need something like this:

    <IfModule mime_module> AddHandler application/x-httpd-ea-php56 .php .php4 .php5 .html .htm .phtml .shtml </IfModule>

    Please confirm where this has to be added

    at the top of your .htaccess
    check what php handler(s) are installed.

  • WSSWSS Member

    ..you did put the file under public_html, right?

  • @WSS said:
    ...and what files are in there?

    All files are there , they are not visible when url is acccessed

  • Send them a ticket; your nearly useless replies are not going to enable any of us to help you.

  • Managed hosting exists for a reason, might be worth looking into.

    Thanked by 1jetchirag
  • @WSS said:
    @volver I bet he didn't change his underwear, either. Dude is on the spectrum.

    He keeps on yelling that the files are not visible, I think he is blind...

    @niche I am offering myself to help you, for a price.

  • The index.php files are present when checked with file manager, ftp, they are not loading in the browsers

  • @niche said:
    The index.php files are present when checked with file manager, ftp, they are not loading in the browsers

    You sound like a broken record... A broken record that doesn't want to accept help and give more information. The issue is most likely your DNS configuration.

  • This is happening for multiple hosting companies

Sign In or Register to comment.