phpmyadmin problems

Iceyx

New Member
Joined
Jan 28, 2024
Messages
3
Reaction score
0
Credits
53
Hey Community,

I have a problem i send logs and i hope u can help me thanks .

404 Not Found​


nginx/1.14.2


This is what i get all times if i try to open my phpmyadmin site , i install nginx
* nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2024-01-28 23:12:25 UTC; 3min 45s ago
Docs: man:nginx(8)
Process: 70905 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 70907 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Main PID: 70908 (nginx)
Tasks: 11 (limit: 464090)
Memory: 9.9M
CPU: 117ms
CGroup: /system.slice/nginx.service
|-70908 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
|-70909 nginx: worker process
|-70910 nginx: worker process
|-70911 nginx: worker process
|-70912 nginx: worker process
|-70913 nginx: worker process
|-70914 nginx: worker process
|-70915 nginx: worker process
|-70916 nginx: worker process
|-70917 nginx: worker process
`-70918 nginx: worker process

Jan 28 23:12:25 beige-crocodile-30554 systemd[1]: Starting A high performance web server and a reverse proxy server...
Jan 28 23:12:25 beige-crocodile-30554 systemd[1]: Started A high performance web server and a reverse proxy server.
 


##

# You should look at the following URL's in order to grasp a solid understanding

# of Nginx configuration files in order to fully unleash the power of Nginx.

# https://www.nginx.com/resources/wiki/start/

# https://www.nginx.com/resource…utorials/config_pitfalls/

# https://wiki.debian.org/Nginx/DirectoryStructure

#

# In most cases, administrators will remove this file from sites-enabled/ and

# leave it as reference inside of sites-available where it will continue to be

# updated by the nginx packaging team.

#

# This file will automatically load configuration files provided by other

# applications, such as Drupal or Wordpress. These applications will be made

# available underneath a path with that package name, such as /drupal8.

#

# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.

##



# Default server configuration

#

server {

listen 80 default_server;

listen [::]:80 default_server;



# SSL configuration

#

# listen 443 ssl default_server;

# listen [::]:443 ssl default_server;

#

# Note: You should disable gzip for SSL traffic.

# See: https://bugs.debian.org/773332

#

# Read up on ssl_ciphers to ensure a secure configuration.

# See: https://bugs.debian.org/765782

#

# Self signed certs generated by the ssl-cert package

# Don't use them in a production server!

#

# include snippets/snakeoil.conf;



root /usr/share/phpmyadmin;



# Add index.php to the list if you are using PHP

index index.php;



server_name _;



#location / {

# First attempt to serve request as file, then

# as directory, then fall back to displaying a 404.

#try_files $uri $uri/ =404;

#}



location ~* \.php$ {

fastcgi_pass unix:/run/php/php8.3-fpm.stock;

include fastcgi_params;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

fastcgi_param SCRIPT_NAME $fastcgi_script_name;

}



# pass PHP scripts to FastCGI server

#

#location ~ \.php$ {

# include snippets/fastcgi-php.conf;

#

# # With php-fpm (or other unix sockets):

# fastcgi_pass unix:/run/php/php7.4-fpm.sock;

# # With php-cgi (or other tcp sockets):

# fastcgi_pass 127.0.0.1:9000;

#}



# deny access to .htaccess files, if Apache's document root

# concurs with nginx's one

#

#location ~ /\.ht {

# deny all;

#}

}





# Virtual Host configuration for example.com

#

# You can move that to a different file under sites-available/ and symlink that

# to sites-enabled/ to enable it.

#

#server {

# listen 80;

# listen [::]:80;

#

# server_name example.com;

#

# root /var/www/example.com;

# index index.html;

#

# location / {

# try_files $uri $uri/ =404;

# }

#}
 
Hey Community,

I have a problem i send logs and i hope u can help me thanks .

404 Not Found​


nginx/1.14.2


This is what i get all times if i try to open my phpmyadmin site , i install nginx
* nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2024-01-28 23:12:25 UTC; 3min 45s ago
Docs: man:nginx(8)
Process: 70905 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Process: 70907 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Main PID: 70908 (nginx)
Tasks: 11 (limit: 464090)
Memory: 9.9M
CPU: 117ms
CGroup: /system.slice/nginx.service
|-70908 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
|-70909 nginx: worker process
|-70910 nginx: worker process
|-70911 nginx: worker process
|-70912 nginx: worker process
|-70913 nginx: worker process
|-70914 nginx: worker process
|-70915 nginx: worker process
|-70916 nginx: worker process
|-70917 nginx: worker process
`-70918 nginx: worker process

Jan 28 23:12:25 beige-crocodile-30554 systemd[1]: Starting A high performance web server and a reverse proxy server...
Jan 28 23:12:25 beige-crocodile-30554 systemd[1]: Started A high performance web server and a reverse proxy server.
It appears that your Nginx server is functioning properly, but you are facing an error of "404 Not Found" when attempting to access your phpMyAdmin site. To address this issue, there are a few steps you can take to investigate the cause:

Check Configuration of Nginx
Make sure that the configuration file for phpMyAdmin in Nginx is properly set up. Find the server block configuration that is associated with phpMyAdmin and ensure that the location directive is pointing to the accurate location of your phpMyAdmin installation.

Check phpMyAdmin
Please ensure that phpMyAdmin has been successfully installed on your server. It is crucial to carefully cross-verify the installation path of phpMyAdmin and make certain that it aligns with the configuration mentioned in your Nginx file.
Permissions for files and directories
Please ensure that the files and directories associated with phpMyAdmin have the appropriate permissions. The web server user (typically www-data on Debian/Ubuntu systems) must possess both read and execute permissions for both the phpMyAdmin directory itself and its accompanying files.

Logs
Please take a moment to examine the phpMyAdmin logs located in var/log/nginx/error.log. If you come across any identified issues, addressing them could potentially aid in resolving the problem at hand.
Nginx needs to be restarted.
To apply the changes, restart the Nginx service after making changes to the Nginx configuration.

AppArmor or SELinux should be reviewed.
In case you are utilizing SELinux (Security-Enhanced Linux) or AppArmor, it would be wise to examine their logs for any instances of denial that may be associated with phpMyAdmin. After identifying such denials, make the necessary adjustments to the security policies in order to rectify the situation.

Firewall Settings
Make sure that your firewall permits the flow of data through the specific port on which Nginx operates (typically either port 80 or 443). If you are utilizing UFW, kindly verify and modify your regulations accordingly.
 

Members online


Top