Меню

Ошибка 404 phpmyadmin apache

Has anyone had problems with 404 errors and phpmyadmin after upgrading to Apache 2.4?

My ubuntu machine ran the upgrade a few days ago and I have not been able to access localhost/phpmyadmin since. I just get 404 errors.

I know there have been security changes in 2.4 but I checked out the settings in the phpmyadmin.conf loaded by apache and I can’t see anything that would affect non-admin users. Furthermore I commented out the old security rules and added the new ones, but still not working…

asked Aug 3, 2013 at 9:01

DatsunBing's user avatar

DatsunBingDatsunBing

8,46414 gold badges82 silver badges169 bronze badges

1

the directory of configuration files apparently changed in apahe 2.4 fron conf.d to conf-available. Also, the conf files must be loaded explicitly. I did

sudo cp /etc/apache2/conf.d/phpmyadmin.conf /etc/apache2/conf-available/

sudo a2enconf phpmyadmin 

sudo service apache2 reload

answered Oct 4, 2013 at 7:53

mmzc's user avatar

2

Here’s what I found.

The configuration file is /etc/phpmyadmin/apache.conf.

The package installer for phpMyAdmin creates a link from /etc/apache2/conf.d/phpmyadmin.conf to the configuration file.

In my case, Apache did not seem to be picking up that configuration. So I created a link in my «sites-available» folder and enabled the site:

ln -s /etc/phpmyadmin/apache.conf /etc/apache2/sites-available/phpmyadmin.conf

a2ensite phpmyadmin

Seems to be working fine now.

answered Aug 8, 2013 at 15:02

Kryten's user avatar

KrytenKryten

14.9k6 gold badges47 silver badges67 bronze badges

Ok so I found the answer with a bit of fiddling.

Basically /phpmyadmin is an alias for /usr/share/phpmyadmin This was previously defined in phpmyadmin.conf. I now have it defined in the apache2 alias.conf file, and it works fine.

Not sure if that means that I am missing out on other things defined in phpmyadmin.conf, but will have to see, I suppose.

answered Aug 4, 2013 at 5:44

DatsunBing's user avatar

DatsunBingDatsunBing

8,46414 gold badges82 silver badges169 bronze badges

Apache update probably overwrites config.

Adding include conf.d/phpmyadmin.conf to /etc/apache2/apache2.conf should fix it.

answered Dec 4, 2013 at 9:05

umpirsky's user avatar

umpirskyumpirsky

9,81213 gold badges71 silver badges95 bronze badges

Make sure you have selected your httpd server, during the installatino process. I thought I had checked apache, but I didnot.

I removed phpmyadmin and reinstall it taking care to check apache this time, and everything was automatically setted up. I was finally able to use phpmyadmin without configure anything else.

answered Jan 18, 2016 at 18:08

besrow's user avatar

I have installed php5 and phpMyAdmin from the Ubuntu Software Centre on a fresh install of Ubuntu 13.04.

when I enter localhost in my browser the following is displayed:

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

So something is working.

if I then type in localhost/phpmyadmin or localhost/phpmyadmin/index.php the page returns a 404 error page, file not found.

I created a file in /var/www called test.php with one line in it <?php phpinfo(); ?> when I try to access it through my browser, I get 403 Forbidden

This points to a permissions problem

with phpMyAdmin I also installed:

  • Apache HTTP Server metapackage (apache2)
  • Base support for JavaScript library packages (javascript-common)
  • Fast webserver with minimal memory footprint (lighttpd)
  • MySQL Client (mysql-client)
  • GD module for php5 (php5-gd)
  • MySQL Server (mysql-server)

When installing phpMyAdmin, I was not asked any questions, which I found interesting as on previous installs, I have been asked to choose a server.

The folder /etc/phpmyadmin has the following content:

  • conf.d/
  • config-db.php.ucf-dist

The folder conf.d has no content

Is there something I need to install which I haven’t or is there something I can do to fix the 404 & 403 errors?

Edit

owners in /var

:/var$ ls -lh
total 48K
drwxr-xr-x  2 root root     4.0K Jun  9 12:16 backups
drwxr-xr-x 21 root root     4.0K Jun  9 13:28 cache
drwxrwsrwt  2 root whoopsie 4.0K Jun  9 16:01 crash
drwxr-xr-x 73 root root     4.0K Jun  8 19:24 lib
drwxrwsr-x  2 root staff    4.0K Apr 19 10:03 local
lrwxrwxrwx  1 root root        9 Jun  9 16:00 lock -> /run/lock
drwxr-xr-x 20 root root     4.0K Jun  9 16:01 log
drwxrwsr-x  2 root mail     4.0K Apr 24 18:01 mail
drwxrwsrwt  2 root whoopsie 4.0K Apr 24 18:05 metrics
drwxr-xr-x  2 root root     4.0K Apr 24 18:01 opt
lrwxrwxrwx  1 root root        4 Jun  9 16:00 run -> /run
drwxr-xr-x 10 root root     4.0K Jun  8 19:41 spool
drwxrwxrwt  4 root root     4.0K Jun  9 16:25 tmp
drwxr-xr-x  2 www-data www-data     4.0K Jun  7 21:04 www

and:

...:/var$ ls -lh /var/www
total 12K
-rw-r--r-- 1 www-data www-data  177 Jun  7 20:30 index.html
-rw-r--r-- 1 www-data www-data 3.5K Jun  7 20:30 index.lighttpd.html
-rw-r--r-- 1 www-data www-data   20 Jun  7 21:04 test.php
-rw-r--r-- 1 www-data www-data    0 Jun  7 21:04 test.php~

on restarting the apache2 service I get the following in Terminal

simon@simon-VGN-AR71E:~$ sudo service apache2 restart
apache2: Syntax error on line 260 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/phpmyadmin.conf: No such file or directory
Action 'configtest' failed.
The Apache error log may have more information.
   ...fail!

i renamed phpmyadmin.conf link and ran

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf

see the broken link symbol in nautilus:

enter image description here

simon@simon-VGN-AR71E:~$ ls -lh /etc/apache2/conf.d
total 16K
-rw-r--r-- 1 root root  269 Jul 16  2012 charset
lrwxrwxrwx 1 root root   45 Jun  7 21:14 javascript-common.conf -> /etc/javascript-common/javascript-common.conf
-rw-r--r-- 1 root root 3.3K Jul 16  2012 localized-error-pages
-rw-r--r-- 1 root root  143 Jul 16  2012 other-vhosts-access-log
lrwxrwxrwx 1 root root   28 Jun  9 17:28 phpmyadmin.conf -> ../../phpmyadmin/apache.conf
-rw-r--r-- 1 root root 1.7K Jul 16  2012 security

END===================================

Problem:

I can’t access localhost/phpmyadmin/

before I can access localhost/phpmyadmin/ but today when I’m trying to access this page I got weird page

also I can access localhost/xampp/ without any problem

Question:

How can I solve this problem ?

Ing. Michal Hudak's user avatar

asked Apr 11, 2012 at 18:03

user1327157's user avatar

7

what you need to do is to add phpmyadmin to the apache configuration:

sudo nano /etc/apache2/apache2.conf

Add the phpmyadmin config to the file:

Include /etc/phpmyadmin/apache.conf

then restart apache:

sudo service apache2 restart

On windows, I think you can just navigate to the apache2 config file and include the phpmyadmin config file as shown above, then restart apache

David LeBauer's user avatar

David LeBauer

30.6k31 gold badges115 silver badges186 bronze badges

answered Nov 16, 2012 at 11:54

Lingani's user avatar

LinganiLingani

1,3411 gold badge8 silver badges3 bronze badges

2

A cleaner way is to create the new configuration file:

/etc/apache2/conf-available/phpmyadmin.conf

and write the following in it:

Include /etc/phpmyadmin/apache.conf

then, soft link the file to the directory /etc/apache2/conf-enabled:

sudo ln -s /etc/apache2/conf-available/phpmyadmin.conf /etc/apache2/conf-enabled

kosmos's user avatar

kosmos

4,2431 gold badge17 silver badges35 bronze badges

answered May 6, 2014 at 3:17

Christine's user avatar

ChristineChristine

4095 silver badges8 bronze badges

1

You should use localhost:portnumber/phpmyadmin
Here the Portnumber is the number which you set for your web server or if you have not set it until now it is by Default — 80.

Stephen Ostermiller's user avatar

answered Jun 9, 2014 at 13:14

Akshay's user avatar

AkshayAkshay

1791 silver badge2 bronze badges

3

Make sure that both apache webserver and MySQL server are running. I had the same failure because I forgot to start my webserver.

answered May 5, 2017 at 22:43

Black's user avatar

BlackBlack

17k36 gold badges150 silver badges256 bronze badges

when you run Xampp, check the apache port no. ex: if it is displaying port 80, then type

http://localhost:80/phpmyadmin/

After that it will display automatically

http://localhost/phpmyadmin/

Shawn Mehan's user avatar

Shawn Mehan

4,4659 gold badges30 silver badges50 bronze badges

answered May 16, 2017 at 16:33

Manibala Sinha's user avatar

I am using Linux Mint :
After installing LAMP along with PhpMyAdmin, I linked both the configuration files of Apache and PhpMyAdmin. It did the trick. Following are the commands.

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf

sudo /etc/init.d/apache2 reload

answered Mar 16, 2013 at 18:10

Arun GK's user avatar

Arun GKArun GK

5183 silver badges10 bronze badges

sudo apt-get -y --reinstall install phpmyadmin;
sudo service apache2 restart;

Hope this helps.

answered Dec 6, 2014 at 15:43

Nasif Md. Tanjim's user avatar

Nasif Md. TanjimNasif Md. Tanjim

3,7724 gold badges25 silver badges38 bronze badges

It generally occurs when your default port for localhost is being used by another application (like apache tomcat). Easy fix is to stop the application and simply go to localhost/phpmyadmin.

In my case it worked after stopping apache tomcat.

answered Dec 24, 2015 at 17:48

Prateek Joshi's user avatar

Prateek JoshiPrateek Joshi

3,8333 gold badges41 silver badges51 bronze badges

1

Sometimes it’s case sensitive. Have you tried going to http://localhost/phpMyAdmin?

answered Apr 11, 2012 at 18:08

blake305's user avatar

blake305blake305

2,1863 gold badges23 silver badges52 bronze badges

4

Based on your output, one of your plugins is messing up with the phpmyadmin. Try disabling all plugins to see if that works.

If it does, enable them one by one and check again, to find the problematic one.

answered Sep 16, 2012 at 9:39

Madara's Ghost's user avatar

Madara’s GhostMadara’s Ghost

170k50 gold badges264 silver badges308 bronze badges

1

Resolving same problem on Ubuntu 14.04, I use code:

    sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-enabled/phpmyadmin.conf
    sudo /etc/init.d/apache2 reload

it is because since Ubuntu 13, Apache loads configuration files from the /etc/apache2/conf-enabled directory.

Ubuntu Documentation

answered Oct 20, 2014 at 20:22

KobKol's user avatar

You need reload the server.

If you use apache server
systemctl reload apache2

If you use nginx server
systemctl reload nginx

answered Mar 9, 2021 at 9:55

xorozo's user avatar

xorozoxorozo

4504 silver badges18 bronze badges

Judging by the output of the image which you linked in one of your comments:

http://imageshack.us/photo/my-images/638/erroruh.png/

… maybe you accidentally downloaded some form of the website from where you thought you were downloading phpMyAdmin. The text contains references to «Dropbox» which makes me think that the information displaying is in no way related to phpmyadmin.

Try re-installing and see if that helps…

http://www.phpmyadmin.net

answered Apr 8, 2013 at 17:52

Lotus's user avatar

LotusLotus

2,5361 gold badge22 silver badges20 bronze badges

Or it could be that Skype is running on the same port (it does by default).

Disable Skype or configure Skype to use another port

answered Apr 14, 2013 at 11:00

mikkel's user avatar

1

I also faced the same issue.
i worked on it and found out ,this is simply because i have mistakenly moved my «phpmyadmin» folder in to a some folder inside Xampp. Go through all the other folders which are inside the main «XAMPP» folder.
Then if you find the «phpmyadmin» inside another folder other than «xampp» move it back to the main «XAmpp» folder and refresh the page.
🙂

answered May 30, 2013 at 4:37

atr's user avatar

A cleaner way to include the phpmyadmin config into apache2 is to create a new config file by:

sudo nano /etc/apache2/conf-enabled/phpmyadmin.conf

and write in it:

Include /etc/phpmyadmin/apache.conf

answered Feb 18, 2014 at 9:49

rekarnar's user avatar

rekarnarrekarnar

4644 silver badges11 bronze badges

Run the Apache server, note down the port number(eg:8081)
Open your browser and type localhost:8081(or apache’s port number)

answered Sep 21, 2014 at 4:29

Diana Gene's user avatar

Just change —
$cfg[‘Servers’][$i][‘host’] = ‘localhost’;
in config.inc.ph. i.e. from existing to localhost if you installed it locally

answered Oct 9, 2015 at 18:33

Mon R's user avatar

Restarting the xampp services helped me

answered Aug 29, 2022 at 7:58

Jeyhun Rashidov's user avatar

Make sure you still have phpMyAdmin maybe you deleted it in your htdocs folder?

Get the latest version: http://www.phpmyadmin.net/home_page/downloads.php

Unzip then place the phpMyAdmin (rename the folder if it has version numbers) in your htdocs folder.

Make sure Skype is disabled as it will some times run on the same port as your XAMPP install… I’m not sure why but apache installed via xampp on some windows 7 machines ive seen apache not run if skype is on after 10years of IT work.

So make sure apache is running, mysql is running and hit:

localhost/phpMyAdmin

You should get some kind of install prompt. Step through this you will learn lots along the way. But basically its one config file that needs some settings.

answered Nov 21, 2013 at 22:58

Dan Carter's user avatar

Dan CarterDan Carter

2013 silver badges12 bronze badges

I had the same problem. Couldn’t access http://localhost/joomla neither.
and I did not quite understand the other answers.
The simple solution for me:

  1. stop all actions in xampp (I had apache and mysql running. apache on port 80 and 7000something)
  2. quit firefox
  3. restart the actions (apache and mysql)
  4. restart firefox.
  5. open http://localhost/phpmyadmin (or http://localhost/joomla — whatever it be)
  6. voila!

Now apache runs on port 80 and 443 and mysql on 3306.

answered Sep 18, 2015 at 14:00

einserpasch's user avatar

What you need to do is to add phpmyadmin to the apache configuration:⠀⠀⠀⠀⠀⠀⠀

sudo nano /etc/apache2/apache2.conf

Add the phpmyadmin config to the file:

Include /etc/phpmyadmin/apache.conf

Then restart apache:

sudo service apache2 restart

On ubuntu 18.0.1, I think you can just navigate to the apache2 config file and include the phpmyadmin config file as shown above, then restart apache

http://127.0.0.1/phpmyadmin/

Community's user avatar

answered Jan 7, 2020 at 13:12

Javed's user avatar

JavedJaved

3873 silver badges6 bronze badges

1

Problem:

I can’t access localhost/phpmyadmin/

before I can access localhost/phpmyadmin/ but today when I’m trying to access this page I got weird page

also I can access localhost/xampp/ without any problem

Question:

How can I solve this problem ?

Ing. Michal Hudak's user avatar

asked Apr 11, 2012 at 18:03

user1327157's user avatar

7

what you need to do is to add phpmyadmin to the apache configuration:

sudo nano /etc/apache2/apache2.conf

Add the phpmyadmin config to the file:

Include /etc/phpmyadmin/apache.conf

then restart apache:

sudo service apache2 restart

On windows, I think you can just navigate to the apache2 config file and include the phpmyadmin config file as shown above, then restart apache

David LeBauer's user avatar

David LeBauer

30.6k31 gold badges115 silver badges186 bronze badges

answered Nov 16, 2012 at 11:54

Lingani's user avatar

LinganiLingani

1,3411 gold badge8 silver badges3 bronze badges

2

A cleaner way is to create the new configuration file:

/etc/apache2/conf-available/phpmyadmin.conf

and write the following in it:

Include /etc/phpmyadmin/apache.conf

then, soft link the file to the directory /etc/apache2/conf-enabled:

sudo ln -s /etc/apache2/conf-available/phpmyadmin.conf /etc/apache2/conf-enabled

kosmos's user avatar

kosmos

4,2431 gold badge17 silver badges35 bronze badges

answered May 6, 2014 at 3:17

Christine's user avatar

ChristineChristine

4095 silver badges8 bronze badges

1

You should use localhost:portnumber/phpmyadmin
Here the Portnumber is the number which you set for your web server or if you have not set it until now it is by Default — 80.

Stephen Ostermiller's user avatar

answered Jun 9, 2014 at 13:14

Akshay's user avatar

AkshayAkshay

1791 silver badge2 bronze badges

3

Make sure that both apache webserver and MySQL server are running. I had the same failure because I forgot to start my webserver.

answered May 5, 2017 at 22:43

Black's user avatar

BlackBlack

17k36 gold badges150 silver badges256 bronze badges

when you run Xampp, check the apache port no. ex: if it is displaying port 80, then type

http://localhost:80/phpmyadmin/

After that it will display automatically

http://localhost/phpmyadmin/

Shawn Mehan's user avatar

Shawn Mehan

4,4659 gold badges30 silver badges50 bronze badges

answered May 16, 2017 at 16:33

Manibala Sinha's user avatar

I am using Linux Mint :
After installing LAMP along with PhpMyAdmin, I linked both the configuration files of Apache and PhpMyAdmin. It did the trick. Following are the commands.

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf

sudo /etc/init.d/apache2 reload

answered Mar 16, 2013 at 18:10

Arun GK's user avatar

Arun GKArun GK

5183 silver badges10 bronze badges

sudo apt-get -y --reinstall install phpmyadmin;
sudo service apache2 restart;

Hope this helps.

answered Dec 6, 2014 at 15:43

Nasif Md. Tanjim's user avatar

Nasif Md. TanjimNasif Md. Tanjim

3,7724 gold badges25 silver badges38 bronze badges

It generally occurs when your default port for localhost is being used by another application (like apache tomcat). Easy fix is to stop the application and simply go to localhost/phpmyadmin.

In my case it worked after stopping apache tomcat.

answered Dec 24, 2015 at 17:48

Prateek Joshi's user avatar

Prateek JoshiPrateek Joshi

3,8333 gold badges41 silver badges51 bronze badges

1

Sometimes it’s case sensitive. Have you tried going to http://localhost/phpMyAdmin?

answered Apr 11, 2012 at 18:08

blake305's user avatar

blake305blake305

2,1863 gold badges23 silver badges52 bronze badges

4

Based on your output, one of your plugins is messing up with the phpmyadmin. Try disabling all plugins to see if that works.

If it does, enable them one by one and check again, to find the problematic one.

answered Sep 16, 2012 at 9:39

Madara's Ghost's user avatar

Madara’s GhostMadara’s Ghost

170k50 gold badges264 silver badges308 bronze badges

1

Resolving same problem on Ubuntu 14.04, I use code:

    sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-enabled/phpmyadmin.conf
    sudo /etc/init.d/apache2 reload

it is because since Ubuntu 13, Apache loads configuration files from the /etc/apache2/conf-enabled directory.

Ubuntu Documentation

answered Oct 20, 2014 at 20:22

KobKol's user avatar

You need reload the server.

If you use apache server
systemctl reload apache2

If you use nginx server
systemctl reload nginx

answered Mar 9, 2021 at 9:55

xorozo's user avatar

xorozoxorozo

4504 silver badges18 bronze badges

Judging by the output of the image which you linked in one of your comments:

http://imageshack.us/photo/my-images/638/erroruh.png/

… maybe you accidentally downloaded some form of the website from where you thought you were downloading phpMyAdmin. The text contains references to «Dropbox» which makes me think that the information displaying is in no way related to phpmyadmin.

Try re-installing and see if that helps…

http://www.phpmyadmin.net

answered Apr 8, 2013 at 17:52

Lotus's user avatar

LotusLotus

2,5361 gold badge22 silver badges20 bronze badges

Or it could be that Skype is running on the same port (it does by default).

Disable Skype or configure Skype to use another port

answered Apr 14, 2013 at 11:00

mikkel's user avatar

1

I also faced the same issue.
i worked on it and found out ,this is simply because i have mistakenly moved my «phpmyadmin» folder in to a some folder inside Xampp. Go through all the other folders which are inside the main «XAMPP» folder.
Then if you find the «phpmyadmin» inside another folder other than «xampp» move it back to the main «XAmpp» folder and refresh the page.
🙂

answered May 30, 2013 at 4:37

atr's user avatar

A cleaner way to include the phpmyadmin config into apache2 is to create a new config file by:

sudo nano /etc/apache2/conf-enabled/phpmyadmin.conf

and write in it:

Include /etc/phpmyadmin/apache.conf

answered Feb 18, 2014 at 9:49

rekarnar's user avatar

rekarnarrekarnar

4644 silver badges11 bronze badges

Run the Apache server, note down the port number(eg:8081)
Open your browser and type localhost:8081(or apache’s port number)

answered Sep 21, 2014 at 4:29

Diana Gene's user avatar

Just change —
$cfg[‘Servers’][$i][‘host’] = ‘localhost’;
in config.inc.ph. i.e. from existing to localhost if you installed it locally

answered Oct 9, 2015 at 18:33

Mon R's user avatar

Restarting the xampp services helped me

answered Aug 29, 2022 at 7:58

Jeyhun Rashidov's user avatar

Make sure you still have phpMyAdmin maybe you deleted it in your htdocs folder?

Get the latest version: http://www.phpmyadmin.net/home_page/downloads.php

Unzip then place the phpMyAdmin (rename the folder if it has version numbers) in your htdocs folder.

Make sure Skype is disabled as it will some times run on the same port as your XAMPP install… I’m not sure why but apache installed via xampp on some windows 7 machines ive seen apache not run if skype is on after 10years of IT work.

So make sure apache is running, mysql is running and hit:

localhost/phpMyAdmin

You should get some kind of install prompt. Step through this you will learn lots along the way. But basically its one config file that needs some settings.

answered Nov 21, 2013 at 22:58

Dan Carter's user avatar

Dan CarterDan Carter

2013 silver badges12 bronze badges

I had the same problem. Couldn’t access http://localhost/joomla neither.
and I did not quite understand the other answers.
The simple solution for me:

  1. stop all actions in xampp (I had apache and mysql running. apache on port 80 and 7000something)
  2. quit firefox
  3. restart the actions (apache and mysql)
  4. restart firefox.
  5. open http://localhost/phpmyadmin (or http://localhost/joomla — whatever it be)
  6. voila!

Now apache runs on port 80 and 443 and mysql on 3306.

answered Sep 18, 2015 at 14:00

einserpasch's user avatar

What you need to do is to add phpmyadmin to the apache configuration:⠀⠀⠀⠀⠀⠀⠀

sudo nano /etc/apache2/apache2.conf

Add the phpmyadmin config to the file:

Include /etc/phpmyadmin/apache.conf

Then restart apache:

sudo service apache2 restart

On ubuntu 18.0.1, I think you can just navigate to the apache2 config file and include the phpmyadmin config file as shown above, then restart apache

http://127.0.0.1/phpmyadmin/

Community's user avatar

answered Jan 7, 2020 at 13:12

Javed's user avatar

JavedJaved

3873 silver badges6 bronze badges

1

It seems like a unsolved mystery story.Moreover, you need a detective like Sherlock Holmes or Inspector Maigret, to solve this problem.

However, it’s not a big problem that needs a detective.

In my case, it happens. And perhaps, sometimes it happens. I’ve installed phpMyAdmin locally in Ubuntu 20 Focal Fossa. But I get the 404 error – the requested url /phpmyadmin was not found on this server.

Basically, it happens due to the Apache configuration. In addition to that, you must have installed MySQL before.

How to solve the problem of phpMyAdmin?

First, we need to open the Apache configuration file. And to do that, we need to issue this command:

sudo -H gedit /etc/apache2/apache2.conf

After that, we must add this line to the end of configuration file:

Include /etc/phpmyadmin/apache.conf

Then we have to start the Apache by this command:

/etc/init.d/apache2 restart

Now phpMyAdmin opens up as expected.

How do you fix the requested URL phpMyAdmin was not found on this server?

How do you fix the requested URL phpMyAdmin was not found on this server?

Are phpMyAdmin and MySQL database working?

Yes, it’s working as we expect.

Suppose we have a todo.php file, where we have a database – “example_database”, and a table – “todo_list”. We have just shown these in the above image.

<?php
$user = "****";
$password = "******";
$database = "example_database";
$table = "todo_list";

try {
$db = new PDO("mysql:host=localhost;dbname=$database", $user, $password);
echo "<h2>TODO</h2><ol>";
foreach($db->query("SELECT content FROM $table") as $row) {
echo "<li>" . $row['content'] . "</li>";
}
echo "</ol>";
} catch (PDOException $e) {
print "Error!: " . $e->getMessage() . "<br/>";
die();
}

If we run this file locally, we get this output:

TODO

My first important item
My first important item
My first important item
My first important item

Now, our phpMyAdmin is working perfectly. We are ready to go.

What Next?

Leanpub books
Written six books for Apress
Amazon books
GitHub repository
Technical blog
Blog on anything that comes to mind!
Twitter

I can’t seem to get phpmyadmin to work correctly with my current Apache/2.4.7 (Ubuntu:Trusty) setup.

Phpmyadmin installed correctly, and I’ve included the /etc/phpmyadmin/apache.conf file in the VirtualHost itself, but navigating to https://www.domain.com/phpmyadminpanel/, gives me a 404 response, whilst the rest of the site is functioning correctly.

I’m not entirely sure what could be causing this, am I missing something obvious?

/etc/phpmyadmin/apache.conf

# phpMyAdmin default Apache configuration

Alias /phpmyadminpanel /usr/share/phpmyadmin

<Directory /usr/share/phpmyadmin>
    Options FollowSymLinks
    DirectoryIndex index.php

    <IfModule mod_php5.c>
        AddType application/x-httpd-php .php

        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals Off
        php_admin_flag allow_url_fopen Off
        php_value include_path .
        php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
        php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/javascript/
    </IfModule>

</Directory>

# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
    <IfModule mod_authn_file.c>
    AuthType Basic
    AuthName "phpMyAdmin Setup"
    AuthUserFile /etc/phpmyadmin/htpasswd.setup
    </IfModule>
    Require valid-user
</Directory>

# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
    Order Deny,Allow
    Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
    Order Deny,Allow
    Deny from All
</Directory>

/etc/apache2/sites-enabled/domain.com.conf

# Redirect HTTP traffic to HTTPS
<VirtualHost *:80>

    ServerName  domain.com
    ServerAlias  www.domain.com
    Redirect / https://www.domain.com/za

</VirtualHost>

# Redirect HTTP traffic to HTTPS
<VirtualHost *:80>

    ServerName  sub.domain.com
    Redirect / https://sub.domain.com/na

</VirtualHost>

# HTTPS configuration
<IfModule mod_ssl.c>
    <VirtualHost _default_:443>

        ServerName domain.com
        ServerAlias www.domain.com
        ServerAlias sub.domain.com

        ServerAdmin info@domain.com
        DocumentRoot /var/www/html
        DirectoryIndex index.php

        # Logging and such
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # Enable mod_ssl and mod_rewrite
        RewriteEngine on
        SSLEngine on

        RewriteCond %{HTTP_HOST} ^sub.domain.com$
        RewriteCond %{REQUEST_URI} ^/?$
        RewriteRule ^/?(.*)$ /na/ [R=301]

        RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
        RewriteCond %{HTTP_HOST} ^www.domain.com$
        RewriteCond %{REQUEST_URI} ^/?$
        RewriteRule ^/?(.*)$ https://www.domain.com/za/ [R=301]

        RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
        RewriteCond %{HTTP_HOST} ^www.domain.com$
        RewriteCond %{REQUEST_URI} ^/na/.*$
        RewriteRule ^/na/(.*)$ https://www.domain.com/za/$1 [R=301]

        RewriteCond %{HTTP_HOST} ^sub.domain.com$
        RewriteCond %{REQUEST_URI} ^/za/.*$
        RewriteRule ^/za/(.*)$ /na/$1 [R=301]

        RewriteCond %{REQUEST_URI} ^.*.php$
        RewriteRule ^/(.*).php$ /$1 [R=301,QSA]

        RewriteCond %{REQUEST_URI} !^/za/admn/.*
        RewriteCond %{REQUEST_URI} !^/za/ea/.*
        RewriteCond %{REQUEST_URI} ^/.*/index$
        RewriteRule ^/(.*)/index$ /$1 [R=301,QSA]

        RewriteCond %{HTTP_HOST} ^sub.domain.com$
        RewriteCond %{REQUEST_URI} ^/na/.*$
        RewriteRule ^/na/(.*)$ /za/$1

        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{DOCUMENT_ROOT}/$1.php -f
        RewriteRule ^/(.*)$ /$1.php [L,QSA]

        # SSL Stuff goes here
        SSLCertificateFile  /etc/ssl/certs/ssl-cert-snakeoil.pem
        SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

        <FilesMatch ".(cgi|shtml|phtml|php)$">
            SSLOptions +StdEnvVars
        </FilesMatch>
        <Directory /usr/lib/cgi-bin>
            SSLOptions +StdEnvVars
        </Directory>
        <Directory /var/www/>
            Options Indexes FollowSymLinks
            AllowOverride All
            Order allow,deny
            allow from all
        </Directory>

        BrowserMatch "MSIE [2-6]" 
                       nokeepalive ssl-unclean-shutdown 
                       downgrade-1.0 force-response-1.0

        Include /etc/phpmyadmin/apache.conf

    </VirtualHost>
</IfModule>

Вы не вошли. Пожалуйста, войдите или зарегистрируйтесь.

Активные темы Темы без ответов

Страницы 1

Чтобы отправить ответ, вы должны войти или зарегистрироваться

1 2013-02-09 21:04:25 (изменено: Hanut, 2013-02-09 21:32:06)

  • devil
  • devil
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2013-02-09
  • Сообщений: 7

Тема: Ошибка 404 Not Found (Debian)

Всем доброго времени суток.
У меня такая проблема я устанавливаю phpmyadmin вот этой командой:
apt-get install phpmyadmin
Вот что пишет:

root@devils:~# apt-get install phpmyadmin
Reading package lists… Done
Building dependency tree
Reading state information… Done
phpmyadmin is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@devils:~#

Далее ввожу:
/etc/init.d/apache2 restart
мне в ответ пишет:

[Sat Feb 09 23:55:08 2013] [warn] module auth_basic_module is already loaded, skipping
[Sat Feb 09 23:55:08 2013] [warn] module authn_file_module is already loaded, skipping
[Sat Feb 09 23:55:08 2013] [warn] module authz_default_module is already loaded, skipping
...
apache2: Syntax error on line 227 of /etc/apache2/apache2.conf: Syntax error on line 234 of
/etc/apache2/conf.d/apache2.conf: Syntax error on line 234 of /etc/apache2/conf.d/apache2.conf: Syntax error on line 234 of
/etc/apache2/conf.d/apache2.conf: Syntax error on line 234 of /etc/apache2/conf.d/apache2.conf: Syntax error on line 234 of
/etc/apache2/conf.d/apache2.conf: Syntax error on line 234 of /etc/apache2/conf.d/apache2.conf: Syntax error on line 234 of
...
include depth of 128. You have probably a recursion somewhere.
Action 'configtest' failed.
The Apache error log may have more information.
[color=red] failed![/color]
root@devils:~#

По запросу в браузере ip/phpmyadmin пишет 404 Not Found.
Как быть что сделать?
В /etc/apache2/apache2.conf добавлял Include /etc/phpmyadmin/apache.conf

2 Ответ от Hanut 2013-02-09 21:10:42

  • Hanut
  • Hanut
  • Модератор
  • Неактивен
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,722

Re: Ошибка 404 Not Found (Debian)

Повторная загрузка модулей, конфигурационный файл подгружает сам себя. Зачем вы добавляли инклюд  в конфигурационный файл — мне не ясно.

3 Ответ от devil 2013-02-09 21:14:10

  • devil
  • devil
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2013-02-09
  • Сообщений: 7

Re: Ошибка 404 Not Found (Debian)

Дело в том что это мой первый linux вот я и не знаю что куда и как сделать, а про инклюд я прочитал здесь http://forum.xeksec.com/f18/t47975/

4 Ответ от devil 2013-02-09 21:23:54

  • devil
  • devil
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2013-02-09
  • Сообщений: 7

Re: Ошибка 404 Not Found (Debian)

Hanut сказал:

Повторная загрузка модулей, конфигурационный файл подгружает сам себя. Зачем вы добавляли инклюд  в конфигурационный файл — мне не ясно.

Подскажи пожалуйста как сделать, я просто первый раз столкнулся с VPS впрочем как и с Debian.

5 Ответ от Hanut 2013-02-09 21:28:53

  • Hanut
  • Hanut
  • Модератор
  • Неактивен
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,722

Re: Ошибка 404 Not Found (Debian)

В каталоге /etc/apache2/conf.d/ находятся конфигурационные файлы подгружаемые Apache. Если /etc/apache2/apache2.conf является основным конфигурационным файлом, то переносить его в conf.d нельзя, иначе он будет загружаться рекурсивно, то есть бесконечно, о чем ошибка и говорит.

Чтобы мне понять зачем подключать /etc/phpmyadmin/apache.conf надо увидеть его содержимое. Обычно все необходимые настройки уже сделаны при установке и лежат в /etc/apache2/conf.d/

6 Ответ от devil 2013-02-09 21:37:40

  • devil
  • devil
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2013-02-09
  • Сообщений: 7

Re: Ошибка 404 Not Found (Debian)

Я сейчас снес все полностью то-есть поставил свежий дебиан Debian 6 32bit, подскажи что делать дальше по пунктам что установить что бы все работало.. А то уже раза 3 все переделывал не могу понять почему не запускается… hmm

7 Ответ от devil 2013-02-09 21:38:41

  • devil
  • devil
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2013-02-09
  • Сообщений: 7

Re: Ошибка 404 Not Found (Debian)

или проще поставить Ubuntu 12.04???

8 Ответ от devil 2013-02-09 21:51:20

  • devil
  • devil
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2013-02-09
  • Сообщений: 7

Re: Ошибка 404 Not Found (Debian)

root@devils:~# sudo apt-get install phpmyadmin
Reading package lists… Done
Building dependency tree… Done
E: Unable to locate package phpmyadmin
root@devils:~#

9 Ответ от Hanut 2013-02-09 22:00:24

  • Hanut
  • Hanut
  • Модератор
  • Неактивен
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,722

Re: Ошибка 404 Not Found (Debian)

Установка описана здесь: http://wiki.debian.org/LaMp

Я бы попробовал установить phpMyAdmin, он потянет все остальное на автомате.

10 Ответ от devil 2013-02-09 22:40:10

  • devil
  • devil
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2013-02-09
  • Сообщений: 7

Re: Ошибка 404 Not Found (Debian)

При попытке изменить пароль:

/usr/bin/mysqladmin -u root password ‘enter-your-good-new-password-here’

Пишет:

root@devils:~# /usr/bin/mysqladmin -u root password ‘password’ 
bash: /usr/bin/mysqladmin: No such file or directory

11 Ответ от Hanut 2013-02-10 00:38:17

  • Hanut
  • Hanut
  • Модератор
  • Неактивен
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,722

Re: Ошибка 404 Not Found (Debian)

devil сказал:

/usr/bin/mysqladmin: No such file or directory

Значит MySQL не установился, или установился куда-то не туда.

Сообщения 11

Страницы 1

Чтобы отправить ответ, вы должны войти или зарегистрироваться

Содержание

  1. Запускаю phpMyAdmin — Пишет ошибку 404. (Хотя вроде все сделал)
  2. Сообщения 3
  3. 1 Тема от Sperantos 2010-02-12 00:08:08
  4. Тема: Запускаю phpMyAdmin — Пишет ошибку 404. (Хотя вроде все сделал)
  5. 2 Ответ от Hanut 2010-02-12 12:58:29
  6. Re: Запускаю phpMyAdmin — Пишет ошибку 404. (Хотя вроде все сделал)
  7. 3 Ответ от chiffa 2010-02-16 21:20:42
  8. Re: Запускаю phpMyAdmin — Пишет ошибку 404. (Хотя вроде все сделал)
  9. Сообщения 3
  10. PhpMyAdmin got 404 not found error on nginx ubuntu 16.04
  11. Popular Topics
  12. Questions
  13. Welcome to the developer cloud
  14. A 404 error occurred while importing the data script timeout #13189
  15. Comments
  16. Steps to reproduce
  17. Expected behaviour
  18. Actual behaviour
  19. Server configuration
  20. Client configuration
  21. Ошибка 404 Not Found (Debian)
  22. Сообщения 11
  23. 1 Тема от devil 2013-02-09 21:04:25 (изменено: Hanut, 2013-02-09 21:32:06)
  24. Тема: Ошибка 404 Not Found (Debian)
  25. 2 Ответ от Hanut 2013-02-09 21:10:42
  26. Re: Ошибка 404 Not Found (Debian)
  27. 3 Ответ от devil 2013-02-09 21:14:10
  28. Re: Ошибка 404 Not Found (Debian)
  29. 4 Ответ от devil 2013-02-09 21:23:54
  30. Re: Ошибка 404 Not Found (Debian)
  31. 5 Ответ от Hanut 2013-02-09 21:28:53
  32. Re: Ошибка 404 Not Found (Debian)
  33. 6 Ответ от devil 2013-02-09 21:37:40
  34. Re: Ошибка 404 Not Found (Debian)
  35. [BUG]Phpmyadmin error 404 #2243
  36. Comments

Запускаю phpMyAdmin — Пишет ошибку 404. (Хотя вроде все сделал)

Форум PHP-MyAdmin.RU → Установка phpMyAdmin → Запускаю phpMyAdmin — Пишет ошибку 404. (Хотя вроде все сделал)

Чтобы отправить ответ, вы должны войти или зарегистрироваться

Сообщения 3

1 Тема от Sperantos 2010-02-12 00:08:08

  • Sperantos
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2010-02-11
  • Сообщений: 2

Тема: Запускаю phpMyAdmin — Пишет ошибку 404. (Хотя вроде все сделал)

Запускаю phpMyAdmin — Пишет ошибку 404. Люди помогите, вроде все по инструкции сделал.

Not Found

The requested URL /phpmyadmin was not found on this server.

Apache/2.2.14 (Win32) PHP/5.2.12 Server at localhost Port 80

2 Ответ от Hanut 2010-02-12 12:58:29

  • Hanut
  • Модератор
  • Неактивен
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,722

Re: Запускаю phpMyAdmin — Пишет ошибку 404. (Хотя вроде все сделал)

Sperantos
В error.log хоста посмотрите где сервер ищет данный каталог.

Попробуйте ввести в браузере:
localhost/phpmyadmin

3 Ответ от chiffa 2010-02-16 21:20:42

  • chiffa
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2009-03-25
  • Сообщений: 7

Re: Запускаю phpMyAdmin — Пишет ошибку 404. (Хотя вроде все сделал)

да у меня такая же проблема была
Благодаря совету Hanut сделала. Зашла в лог ошибок там посмотрела на что ссылается, оказалось что надо просто имя папки поменять

Сообщения 3

Чтобы отправить ответ, вы должны войти или зарегистрироваться

Форум PHP-MyAdmin.RU → Установка phpMyAdmin → Запускаю phpMyAdmin — Пишет ошибку 404. (Хотя вроде все сделал)

Форум работает на PunBB , при поддержке Informer Technologies, Inc

Currently installed 7 official extensions . Copyright © 2003–2009 PunBB.

Источник

PhpMyAdmin got 404 not found error on nginx ubuntu 16.04

Hello Digital Oceans, I’m using ubuntu 16.04 and configured LEMP with this tutorial on it. I tried to add phpMyAdmin with this tutorial , but when I tried to access /phpmyadmin route, I got 404 error. here is my default site-available config file:

Am i miss something? Thank you, JavaDroid 🙂

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

The symlink created in that guide points to /usr/share/nginx/www while your root directive points to another directory. Unless you specify another location block, NGINX doesn’t technically know that the directory exists, and doesn’t know where to route the incoming request.

First, remove the symlink you just created by running:

That won’t delete phpMyAdmin, it’ll just delete the symlink. Now we’ll create a new one using:

Since you’ve set root to /var/www/html , that’s your “home” directory or root path that your server block uses. What the above command does is create a symlink from where the phpMyAdmin files are to your root directory.

Once the new symlink is there, you should be able confirm that by running:

That should produce something that looks like:

Which means the symlink is valid and should now work when you visit:

Where IP_ADDR is your IP address.

Hello Digital Oceans, I had nginx, phpmyadmin, mysql, php7.2-fpm on a Ubuntu in browser on 159.89.106.31/phpmyadmin — “couldn’t find this page”

I can not configure phpmyadmin Help me, what am I doing wrong?

user www-data; error_log /var/log/nginx.error_log info; worker_processes auto; pid /run/nginx.pid;

I add link sudo ln -s /usr/share/phpmyadmin/ /var/www/html/phpmyadmin lrwxrwxrwx 1 root root 22 Mar 13 07:38 phpmyadmin -> /usr/share/ph pmyadmin/

* ^/phpmyadmin/(.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ < root /usr/share/; >> location /phpMyAdmin < rewrite ^/* /phpmyadmin last; >in browser on 159.89.106.31/phpmyadmin 502 Bad Gateway

I had nginx, phpmyadmin, mariadb, php-fpm on a centos 7. now i just update php5 to php7. and phpmyadmin is not found. so i followed all your steps.even restart nginx, php-fpm. ls -l showing phpmyadmin in my server location directory. but in browser its showing 404. its chown by root:root and chmod 777. phpmyadmin -> /usr/share/phpmyadmin. i know upgrading to php7 uninstall old one, so i download and properly extract phpmyadmin in /usr/share/ directory. no error log found in php/nginx error log files. any idea??

gracias me ha funcionado correctamente

Popular Topics

Questions

Sign up for Infrastructure as a Newsletter.

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

You get paid; we donate to tech nonprofits.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Источник

A 404 error occurred while importing the data script timeout #13189

Steps to reproduce

  1. Use the browser to open «http://127.0.0.1/phpMyAdmin-4.7.0/» and log in
  2. Click the «Import» button on the right navigation
  3. Select the script file to import by format, click «GO»
  4. Wait for the import timeout to see the problem

Expected behaviour

Click the «resubmit the same file» link and will not continue importing.

Actual behaviour

Server configuration

Operating system:

Web server:

Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9

Database:

PHP version:

phpMyAdmin version:

Client configuration

Browser:

Operating system:

I simply analyzed the problem and found that the problem exists in ./import.php and ./libraries/URL.php , ./import.php calls the URL::getCommon() method in ./libraries/URL.php in the ./import.php file.

Because URL::getCommon() This method returns an empty, so the resulting ./import.php in $err_url variable error ( ./import.php file 613 lines) in the connection string.

The text was updated successfully, but these errors were encountered:

Источник

Ошибка 404 Not Found (Debian)

Чтобы отправить ответ, вы должны войти или зарегистрироваться

Сообщения 11

1 Тема от devil 2013-02-09 21:04:25 (изменено: Hanut, 2013-02-09 21:32:06)

  • devil
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2013-02-09
  • Сообщений: 7

Тема: Ошибка 404 Not Found (Debian)

Всем доброго времени суток.
У меня такая проблема я устанавливаю phpmyadmin вот этой командой:
apt-get install phpmyadmin
Вот что пишет:

# apt-get install phpmyadmin
Reading package lists. Done
Building dependency tree
Reading state information. Done
phpmyadmin is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@devils:

Далее ввожу:
/etc/init.d/apache2 restart
мне в ответ пишет:

По запросу в браузере ip/phpmyadmin пишет 404 Not Found.
Как быть что сделать?
В /etc/apache2/apache2.conf добавлял Include /etc/phpmyadmin/apache.conf

2 Ответ от Hanut 2013-02-09 21:10:42

  • Hanut
  • Модератор
  • Неактивен
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,722

Re: Ошибка 404 Not Found (Debian)

Повторная загрузка модулей, конфигурационный файл подгружает сам себя. Зачем вы добавляли инклюд в конфигурационный файл — мне не ясно.

3 Ответ от devil 2013-02-09 21:14:10

  • devil
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2013-02-09
  • Сообщений: 7

Re: Ошибка 404 Not Found (Debian)

Дело в том что это мой первый linux вот я и не знаю что куда и как сделать, а про инклюд я прочитал здесь http://forum.xeksec.com/f18/t47975/

4 Ответ от devil 2013-02-09 21:23:54

  • devil
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2013-02-09
  • Сообщений: 7

Re: Ошибка 404 Not Found (Debian)

Повторная загрузка модулей, конфигурационный файл подгружает сам себя. Зачем вы добавляли инклюд в конфигурационный файл — мне не ясно.

Подскажи пожалуйста как сделать, я просто первый раз столкнулся с VPS впрочем как и с Debian.

5 Ответ от Hanut 2013-02-09 21:28:53

  • Hanut
  • Модератор
  • Неактивен
  • Откуда: Рига, Латвия
  • Зарегистрирован: 2006-07-02
  • Сообщений: 9,722

Re: Ошибка 404 Not Found (Debian)

В каталоге /etc/apache2/conf.d/ находятся конфигурационные файлы подгружаемые Apache. Если /etc/apache2/apache2.conf является основным конфигурационным файлом, то переносить его в conf.d нельзя, иначе он будет загружаться рекурсивно, то есть бесконечно, о чем ошибка и говорит.

Чтобы мне понять зачем подключать /etc/phpmyadmin/apache.conf надо увидеть его содержимое. Обычно все необходимые настройки уже сделаны при установке и лежат в /etc/apache2/conf.d/

6 Ответ от devil 2013-02-09 21:37:40

  • devil
  • Редкий гость
  • Неактивен
  • Зарегистрирован: 2013-02-09
  • Сообщений: 7

Re: Ошибка 404 Not Found (Debian)

Я сейчас снес все полностью то-есть поставил свежий дебиан Debian 6 32bit, подскажи что делать дальше по пунктам что установить что бы все работало.. А то уже раза 3 все переделывал не могу понять почему не запускается.

Источник

[BUG]Phpmyadmin error 404 #2243

After update i cant use phpmyadmin, error 404
Page Not Found
Oops! We couldn’t find the page that you’re looking for.

Please check the address and try again.

The text was updated successfully, but these errors were encountered:

We do not suggest to revert it, due to security.

So is there any other way to access the phpmyadmin ?
I mean like making ssh tunnel ETC ?

For other options we can’t provide support for

@jaapmarcus
Followed documentation exactly.
Hitting http:///phpmyadmin/ produces 403 Forbidden status code and shows Page Not Found page.

Fresh Debian 11, Hestia 1.5.1 installation with nginx, multiple php and no apache.

EDIT
Solved it by adding index index.php index.html; to the server <> block of /etc/nginx/conf.d/ip.conf

Not working, please check

@farkhod89
Try the domain which is your default one given on hestiacp
I just tried mine and its working

@akhzarjaved
Thank you, I initially deleted this domain. That’s why it didn’t work for me. Everything is working now.

The domain is also used for LE on the host panel

Hi,
I have a fresh install hestiacp last version with ubuntu 20.04.
I installed apache with nginx, Follow the instructions here https://docs.hestiacp.com/admin_docs/database.html#how-can-i-enable-access-to-http-ip-phpmyadmin

But when access to phpmyadmin:
(I changed the IP is not real )

Some solutions for this error?

Just checked my test server this should work fine

Just checked my test server this should work fine

Yes is same, see my image

After restart service apache, but result is same:

Why don’t I have permissions?

Does the phpmyadmin.inc exists on your server?

Does the phpmyadmin.inc exists on your server?

I don’t know but If I remove the IncludeOptional /etc/apache2/conf.d/*.inc I get an 404

What happens when you visits http://ip/

I don’t know but If I remove the IncludeOptional /etc/apache2/conf.d/*.inc I get an 404

What happens when you visits http://ip/

Yes, if remove the includeOptional I get an 404.
When visits http://ip/ return

@ssheduardo you need to use a web domain which is added to hestia, not only point to the server!

Edit: After reviewing it I’m wrong on that one :). I still strongly suggest to use a valid domain and access it over a hostname with ssl certificate — this can’t be added for an ip address itself.

I don’t know but If I remove the IncludeOptional /etc/apache2/conf.d/*.inc I get an 404
What happens when you visits http://ip/

Yes, if remove the includeOptional I get an 404. When visits http://ip/ return

According Apache2 documentation it should work

I don’t know but If I remove the IncludeOptional /etc/apache2/conf.d/*.inc I get an 404
What happens when you visits http://ip/

Yes, if remove the includeOptional I get an 404. When visits http://ip/ return

According Apache2 documentation it should work

The truth is that this permissions error is very strange, I have followed all the steps and it still doesn’t work.

@ssheduardo you need to use a web domain which is added to hestia, not only point to the server!

Edit: After reviewing it I’m wrong on that one :). I still strongly suggest to use a valid domain and access it over a hostname with ssl certificate — this can’t be added for an ip address itself.

Hi, I just point the domain to the server (I use cloudflare dns) and I try to open phpmyadmin with the domain with SSL and I still get the 403 error, I don’t understand.

In hestiaCP

Check the logs off Apache2. (/var/log/apache2/domains/domain.com.error.log)

Check the logs off Apache2. (/var/log/apache2/domains/domain.com.error.log)

I’m not understand, today is working.

mine not working maybe because my url redirect to : https://www.domain.com/phpmyadmin/
also i not understand why you guys have disable ip/phpmyadmin ?? how it was security issue. if by default you guys would have just change alias from phpmyadmin to something else like http://ip/gdfgdfgdfg/
then it would be safe .

mine not working maybe because my url redirect to : https://www.domain.com/phpmyadmin/
also i not understand why you guys have disable ip/phpmyadmin ?? how it was security issue. if by default you guys would have just change alias from phpmyadmin to something else like http://ip/gdfgdfgdfg/
then it would be safe .

A redirect should not make an issue, pma should also be available on https://www.domain.com/phpmyadmin/ — it’s added by /etc/nginx/conf.d/phpmyadmin.inc respectively /etc/apache2/conf.d/phpmyadmin.inc as alias.

Security is easy answered: You can’t add a valid ssl certificate to a ip address, if you want to have it back on ip, just have a look at the docs, we’ve stated it there how to do so.

(PS: No need to write under multiple issues ;))

ok guys its fixed , make sure you manually download phpmyadmin from : https://www.phpmyadmin.net/downloads/ and place under your http://domain.com/secreturl_phpadmin/ in public_html/secreturl_phpadmin

Should not be a need to do so, also you could use the pma alias field to change it to whatever you like:

Источник

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Ошибка 404 модуль сарказма не найден
  • Ошибка 404 not found как исправить на компьютере