I recently installed Debian 6.0.1a Squeeze with Nginx and phpmyadmin
When I go to ‘http://localhost’ phpmyadmin pops up.
What I want is that phpmyadmin is located at
‘http://localhost/phpmyadmin/’
I already tried to add this in nginx.conf. It didn’t work
location /phpmyadmin {
alias /usr/share/phpmyadmin/;
}
Post your /etc/nginx/sites-enabled/ files and also, keeping phpmyadmin
on a public directory is bad since bots / scripts automatically scan
for that in URLs. Restrict it with .htaccess if you want to keep
phpmyadmin as the directory name or change it to something like
“fuzzykittens” to hide it.
I also have one other site enabled, I don’t know if thats relevant but
you can find it here.
I want this site to be located at ‘localhost’ http://pastie.org/1970411
Thank you, that did the trick!
Only I have a new problem now. PHP looks suddenly disabled
I get a text file, when I visit: ‘127.0.0.1/phpmyadmin’
Like this: http://postimage.org/image/2j6o8olyc/
I already tried to add the line:
fastcgi_index index.php;
and restarting nginx. That didn’t work
Rebooting also didn’t help
On Wed, May 25, 2011 at 06:13:49AM -0400, Trazzt wrote:
Thank you, that did the trick!
Only I have a new problem now. PHP looks suddenly disabled
I get a text file, when I visit: ‘127.0.0.1/phpmyadmin’
Like this: http://postimage.org/image/2j6o8olyc/
I already tried to add the line:
fastcgi_index index.php;
and restarting nginx. That didn’t work
You do not need this directive.
Rebooting also didn’t help
Do you know how I can enable PHP again?
location ~ ^/phpmyadmin/.php$ {
location ~ ^/phpmyadmin/.+.php$ {
This is yet one of the reasons why I try to avoid as much as possible
regex locations - too high mistake probability if you do not write or
read
a hundrend regexes a day.
On Wed, May 25, 2011 at 09:07:30AM -0400, Trazzt wrote:
I mean I still get the text screen like in the image. I still get no
layout, only the ‘index.php’ file in text format.
Like in the screenshot: http://postimage.org/image/2j6o8olyc/
Try to add localhost and 127.0.0.1 to ensure that you request a right
server:
I mean I still get the text screen like in the image. I still get no
layout, only the ‘index.php’ file in text format.
Like in the screenshot: http://postimage.org/image/2j6o8olyc/
I’m trying to explain to you why I can’t debug the file, but the forum
says
Possible hack attempt detected. The posted form data was rejected.
I’m having trouble running the “./configure” command, when I try to run
it in terminal
When I uninstalled nginx, somehow apache2 started, while I never
installed apache2
I couldn’t uninstall apache, because only the apache2 service was on my
pc, and no installation files.