Jump to content
  • 0
ikedubaku

After renaming the admin folder

Question

Hello

If I install your shop and delete the install folder + renaming the admin folder I’m sure I have to define the renamed folder name somewhere, just I don’t know in which file.

But here is the error message right after the FTP folder renaming procedure and trying to login:
Warning: require_once(/home/****/public_html/****/s/admin/init.php) [function.require-once]: failed to open stream: No such file or directory in /home/****/public_html/****/s/admin/header.inc.php on line 20

Fatal error: require_once() [function.require]: Failed opening required ‘/home/****/public_html/****/s/admin/init.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /home/****/public_html/****/s/admin/header.inc.php on line 20


I can't access the administration page because the script don't find the folder. I need to define the new folder name somewhere in a file.
Am I right?
Where?

Thank You

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0

Unlike zencart/osc you dont need to edit any files to rename the admin folder. You just change the url for your admin to whatever your new folder is called.

Share this post


Link to post
Share on other sites
  • 0

Ok I believe you, but than why is the situation (Can't login) and the error message?

How to solve that and also why it's written: No such file or directory in /home/****/public_html/****/s/admin/header.inc.php?

So the script trying to find files in admin folder but that isn't there, coz I renamed it.
Thanks

Share this post


Link to post
Share on other sites
  • 0

Try using your ftp program to look through your folders

you had:
/home/****/public_html/****/s/admin/

now you have:
/home/****/public_html/****/s/adminnewname/

so place:
www.yourdomain.com/s/adminnewname/ into your browser's URL

Hope this helps :)

Share this post


Link to post
Share on other sites
  • 0

I really apreciate for everyone who is helping me, but until now nobody understood my problem.
Now I try to explain better:
1. Install went OK (This means, folder permissions and database are all OK)
2. Deleted the install folder
3. Renamed the admin folder (for example: "badmin")
4. I have opened from browser the new address and no problem with the login page (what is:http://mydoma.in/s/badmin/login.php)
5. Filled up the fields with correct datas, but after if I send the login form only blank page what I got.
6. I didn't know what is the problem so I turned on the php error reporting, than I got the above error lines, where we can see, the script trying to find that file (header.inc.php) in the old admin folder, what is now not there, it's in "badmin".
So until the script think it has to find files in "admin", nothing can access.
That's why I wrote somewhere in the files need to define the new admin folder name.
Until 1.5 days I would like to step in the admin area, to configure the shop, but here I stocked. :(

Thanks

Share this post


Link to post
Share on other sites
  • 0

Ok, who will have the same problem:

If you see the error message, go to the FTP client and upload the admin folder also.
So you have the renamed admin + the original.
Refresh the page where was those errors and voila, login will be ok.
Start setup the things and (I don't know which or when) after few settings you can delete the folder:admin and leave just the renamed one.

Share this post


Link to post
Share on other sites
  • 0

I didn't wanna mess with the generic admin folder name. So what i did was to add a new A record to my DNS, say admin.yourdomain.com and then add a directive to your apache config to redirect http://admin.yourdomain.com to http://www.yourdomain.com/youradminfolder something like:

 

RewriteCond %{HTTP_HOST} =admin.yourdomain.com
RewriteRule ^(.*) http://www.yourdomain.com/youadminfolder [R]

 

I do realise that it is an old post but it was the first hit on google when i searched "prestashop rename admin folder" so i guess someone else could also be helped by having this option.

Share this post


Link to post
Share on other sites
  • 0

I'm having a similar issue.

 

After Installation, everything ran smooth for some time. Then, suddenly my control panel area stopped working. My hosting company says I exceeded my concurrent connections, but I'm the only one modifying the website. Then, I renamed my adminxxxxxx folder to admin and it started working. So, I renamed the folder to a different name using FTP, and my control panel login (back office) stopped working again.

 

Not sure how to solve this.

Share this post


Link to post
Share on other sites
  • 0

You should migrate to another hosting company (plan). It won't work for more visitors. Too many concurrent connections is a very serious issue.

Share this post


Link to post
Share on other sites
  • 0

I'm having a similar issue.

 

After Installation, everything ran smooth for some time. Then, suddenly my control panel area stopped working. My hosting company says I exceeded my concurrent connections, but I'm the only one modifying the website. Then, I renamed my adminxxxxxx folder to admin and it started working. So, I renamed the folder to a different name using FTP, and my control panel login (back office) stopped working again.

 

Not sure how to solve this.

So the solution to my problem above was deleting the .htaccess file and regenerating it with the prestashop control panel. After I deleted the file it worked for a little bit and then it did it again. So I knew it was related to this file and did some reading online until I found how to regenerate within the control panel.

 

I hope this helps. Not an expert by the way!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×