By chaluwa
I created a new droplet with the Drupal application and the DO system chose the nginx web server. I needed to install phpmyadmin so I followed the DO tutorial on how to setup phpmyadmin on nginx and installed phpmyadmin and also create a symbolic link it ( sudo ln -s /usr/share/phpmyadmin /usr/share/nginx/html ) but going to http://my-ip/phpmyadmin gives a 404 error.
I have never used nginx before, what can I do to fix this please. Thanks.
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!
This question was answered by @FireDart:
I have to ask, did you restart nginx?
$ sudo service nginx restartAs well phpMyAdmin is based of php. Did you configure php in your
server {}block?$ sudo nano /etc/nginx/sites-available/defaultCheck for
location ~\.php$ { }server { . . . . . . other configs.... . . . . . . location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }Then restart:
$ sudo service nginx restartI installed nginx & php my self and did not use the automatic installer so I’m not 100% sure how it differs.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.