thedigicraft / Atom.CMS

Atom.CMS
56 stars 50 forks source link

Admin Problem with hostgator #23

Closed daveolon2063 closed 10 years ago

daveolon2063 commented 10 years ago

Does anyone know what you need to include in the .htaccess file for hostgator.com so you can access and edit the admin directory without getting a 404 server error?

thedigicraft commented 10 years ago

Did you start getting this error the moment that you added .htaccess?

daveolon2063 commented 10 years ago

I was playing around with the fantastico CMS software add on's they have before I found your tutorials. I have jacked something up for sure haha. Everything works great until I add the admin folder and index.php, then its just 404 error when you try to access the admin folder

thedigicraft commented 10 years ago

Ah yes. If you do anything with Fantastico Delux, ALWAYS do it in a sub folder. Things like Wordpress being installed in the root folder will jack up the .htaccess all over the place.

Can you copy/paste the contents of the .htaccess file in your root folder for me? That would be the .htaccess within the public_html folder.

daveolon2063 commented 10 years ago

Haha oh nice..well learned that lesson the hard way

# Use PHP55 as default
AddHandler application/x-httpd-php55 .php
<IfModule mod_suphp.c>
    suPHP_ConfigPath /opt/php55/lib
</IfModule>

This is the only code in the file. I removed the Fantasico CMS before starting your tutorial.

daveolon2063 commented 10 years ago

it would probably be a lot easier to just restore the account to original setup and start again now that I know playing around with software add on's is a bad idea in the root folder haha

thedigicraft commented 10 years ago

try commenting out each line in that htaccess file. Just push a hash mark before each statement...

# Use PHP55 as default
#AddHandler application/x-httpd-php55 .php
#<IfModule mod_suphp.c>
#    suPHP_ConfigPath /opt/php55/lib
#</IfModule>
thedigicraft commented 10 years ago

Any luck with this?

daveolon2063 commented 10 years ago

Sorry for not responding, kinda got caught up working the issue. I did try commenting out the code in the .htaccess file, still wasn't working. I ended up just filing a ticket with hostgator to do a complete reset on my account after what you told me about always creating it in a sub folder. I started over created a subdomain and it all works like a champ now. Your tutorials are incredibly helpful, I look forward to your next videos. Thank you.

thedigicraft commented 10 years ago

No worries. I am glad you worked it out. Sometimes starting with a clean slate is the best way to do it! More videos soon!