New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

admin-modules.php not found #95

Closed
lordmuffin opened this Issue May 16, 2014 · 18 comments

Comments

Projects
None yet
3 participants
@lordmuffin

lordmuffin commented May 16, 2014

After figuring out how to do a new server install, i managed to get through setting it up, creating a user. And now every time i load it up it redirects to /admin-modules.php and it cannot be found. Obviously because it doesn't exist. What am i missing here?

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented May 16, 2014

Hi lordmuffin,

This is an interesting one. My first reaction is .htaccess did not get copied/moved to your document root, but there are checks in place within the app for that so that is not the case. Would you mind providing the specific steps you took to get to this point? I'd like to see how it could be reproduced.

Thanks.

@lordmuffin

This comment has been minimized.

lordmuffin commented May 16, 2014

I started with a clean Ubuntu 14.04 install. Installed LAMP, created an /var/www/html/fm folder and extracted the server contents. I modified the dir to 777 to go through the install. And thats where i am. Also had to do curl install and create an .htaccess. But its blank, is there something specific that needs to get added?

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented May 16, 2014

The .htaccess file should have the following contents:

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
@lordmuffin

This comment has been minimized.

lordmuffin commented May 16, 2014

Replacing the .htaccess file in my FM folder resolved the issue. That is a step that potentially could be documented? Or was it suppose to write that file on install?

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented May 16, 2014

The .htaccess file is included in the tar file so it should have been extracted with the rest of the files. If it's not extracted, the installer should detect it and inform you to create it along with the contents. I'll take another look at the install process to ensure it's providing users with the proper information.

Glad you are up and running now.

@lordmuffin

This comment has been minimized.

lordmuffin commented May 16, 2014

Yeah, it may have been the way i moved files didnt catch it because its a hidden file. I got another issue when i try to add a server to fmDNS it gives me a blank square, am i doing something dumb?

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented May 16, 2014

Hrm. A blank white square would indicate the ajax call isn't returning the form. If you refresh the page, does it still happen? What about when you try adding a view or ACL?

Under the General Settings, you could turn on error reporting to see if that gives any additional information.

@lordmuffin

This comment has been minimized.

lordmuffin commented May 16, 2014

Not sure how i managed to screw it up, and yes it happens on all of those. So here is what i get.

Notice: Undefined variable: server_builds in /var/www/html/fm/fm-modules/fmDNS/functions.php on line 572

Warning: array_unique() expects parameter 1 to be array, null given in /var/www/html/fm/fm-modules/fmDNS/functions.php on line 572

Fatal error: Cannot re-assign auto-global variable _POST in /var/www/html/fm/fm-modules/fmDNS/classes/class_options.php on line 396

WillyXJ pushed a commit that referenced this issue May 16, 2014

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented May 16, 2014

Found the issue which is restricted to PHP 5.5.x (found in Ubuntu 14.04). Fix will go out with v1.2.3.

@WillyXJ WillyXJ closed this May 16, 2014

@WillyXJ WillyXJ added core labels May 16, 2014

@WillyXJ WillyXJ added this to the 1.2 bugfixes milestone May 16, 2014

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented May 16, 2014

Since this is a new install for you, I would recommend performing a fresh install of the latest version now.

@andrerdrummond

This comment has been minimized.

andrerdrummond commented Jun 30, 2015

Guys, I had the same problem. My .htaccess contains this information:

Header set Cache-Control "max-age=7200" Header set Cache-Control "max-age=2592000" RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]

But I am always getting this message: Not Found

The requested URL /facileManager/admin-modules.php was not found on this server.

What I need to do?

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Jun 30, 2015

@andrerdrummond what is your server environment?

@WillyXJ WillyXJ reopened this Jun 30, 2015

@andrerdrummond

This comment has been minimized.

andrerdrummond commented Jun 30, 2015

I'm using a CentOS 6.6

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Jun 30, 2015

@andrerdrummond What version of facileManager and apache are you using? Do you have a virtualhost defined for this? If so, are you allowing rewrites with it?

@andrerdrummond

This comment has been minimized.

andrerdrummond commented Jun 30, 2015

I'm using these:
facileManager: 2.0.3
Apache: Server version: Apache/2.2.15 (Unix) / Server built: Oct 16 2014 14:45:47.
No virtualhost defined, I'm using a virtualmachine with webservice just to FacileManager.

I the file httpd.conf there is a line to load the rewrites: LoadModule rewrite_module modules/mod_rewrite.so

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Jun 30, 2015

In your httpd.conf you should have a <Directory> directive and inside can you confirm you have the following?

AllowOverride All

@andrerdrummond

This comment has been minimized.

andrerdrummond commented Jun 30, 2015

OMG!!! Thanks a lot. It worked.

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Jun 30, 2015

Glad to hear it.

@WillyXJ WillyXJ closed this Jun 30, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment