So i have a vps with some company. I got a friend of mine to install the OS along with apache and everything else. Now i used to be able to get into phpmyadmin through domain.com/phpmyadmin But one day in a stupid moment (Dont we all have them?) i deleted the symlink from the folder in my ftp. I've looked for an answer but i dont understand the answers i get from google. Please Note. I am extremely new at this kind of thing. So telling me to login as root on my server i can do (just about) but its the commands and other stuff once i am in there that confuses me. The most useful link i have come across is http://dr-hamza.net/phpmyadmin-missing-on-ubuntu-huh/ But how do i check which version of ubuntu i am using? Can i be sure that the files are in the same place as this guide tells me? Is there a way to check? Obviously i want all this to go right as i have live sites on the server and downtime would be a nightmare. Any help would be appreciated. Thanks for reading DK
That link is for ubuntu, but your OS might not be ubuntu For getting phpmyadmin link back, it would be better to edit apache configuration file, to create an aliases and point it to phpmyadmin folder. On vps, do you have any control panel?
Hi there gate2vn and thanks for the reply. I got lost in most of your post (seriously i aren't that tech minded ) What i do know is the following: The OS is for sure Ubuntu. Control panel is webmin. The whole aliases and apache config chat confused me. How can i check that my phpmyadmin files are indeed where that link says they are? Maybe that guide was written for a different version to what i am using. (I think i am asking for a 'list' command or a 'find' command whilst in root). Also assuming my files are where that link says they are. Are they the only commands i have to run? OR do i need to move to a set directory within the server to execute the command? Once again. Thanks for your reply gate2vn. I appreciate you taking the time to try and help Confused and Kind regards DK
i'd be more interested in getting a touch of help sorting it myself. (afterall, if you check for me this time. How will i know how to check in the future?) At least if someone was to show me the commands to check and do this stuff myself. I can write a nice little text file about it and keep it with the others lol. (Yer i get confused alot. But text files have helped no end.) Thanks for the kind offer gate2vn of looking for me. Regards DK
cause you dont know what you are doing, and we cannot say exactly the commands without knowing your system. If you are doing something wrong, your system can stop working. The steps I can tell you - locate phpmyadmin folder - locate your apache configuration file (this thing you can find within webmin) - edit apache configuration file, create a aliases named 'phpmyadmin' and point to phpmyadmin folder. If you want to learn, you will need to read about aliases section. Check out its document here http://httpd.apache.org/ - save apache configuration file and restart apache Again, be careful. Read the document before touching anything
Nice info thanks for taking the time to provide me with the link. I understand that doing something wrong can kill my server, and i'm betting that an 'undo' feature just doesnt exist. SO i shall make sure to read up hardcore. Regarding your steps. Locate phpmyadmin folder. (How?) Took a brief look for apache config. Couldnt spot it under servers > apache (Will look extensively after baby is asleep) Now a question for you gate2vn. The Symlink used to exist in domain.com/phpmyadmin But it was simply deleted in the ftp. So the apache config aliases file shoudl already contain the code yes? Or would deleting via ftp cause it to delete the config entry. Alternatively. Is there a way to access phpmyadmin without adding the symlink again? Maybe via a direct url ? (eg . domain.com/usr/something/phpmyadmin. Anyway. I'm off to read that link you provided. Thank you so much for your time. Regards DK
Jeez what a week. Right i finally got the chance to get it done and get online at the same time. Here was the output of the above command: :~# locate phpmyadmin locate: fatal error: Could not find user database '/var/lib/slocate/slocate.db': No such file or directory Thank you DK
Ok i tried the second option and got the following results /etc/phpmyadmin /var/www/phpmyadmin /var/lib/phpmyadmin /usr/local/src/webmin-1.360/theme-stressfree/phpmyadmin /usr/share/lintian/overrides/phpmyadmin It also said something about a search problem before it spat these out at me. And dude your replies are so speedy! Regards DK
from this, I think the main phpmyadmin folder is /var/www/phpmyadmin. Login ssh and try this If you can be sure that's the folder of phpmyadmin, go to where you want to place symlink, and use this comand
Yep you were of course correct. That is exactly where my phpmyadmin was located and after following your steps. i now have the symlink and its working. Thanks so much Gate2vn. I would rep you. But it wont let me do it again. Your help is greatly appreciated. Kindest and warmest regards DK