Comments on Installing Apache2 With PHP5 And MySQL Support On Fedora 11 (LAMP)
Installing Apache2 With PHP5 And MySQL Support On Fedora 11 (LAMP) LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on a Fedora 11 server with PHP5 support (mod_php) and MySQL support.
9 Comment(s)
Comments
well i have a problem to access phpMyAdmin via web-page
when i try localhost/myphpadmin/
web-page appear and ask me for login and password
i've tried :
root & mysql and nothing
i've tried change root password and i 've type at console
# mysqladmin -u root password 'pass'
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
can u haelp me solved it??
Please use the mysql password that you set up for the root office.
Very, very, very readable and helpful. Many thanks!!!
Smart source, it would be very helpful for newbies! If you're running productive server, it's suggested to compile from source code, or use a more stable distro instead :-/
Excellent how-to...
thanks!
i think you are the only one out there that explained how to install phpmyadmin.
(at least the only one I could find!)
I am very grateful!!!
Thanks for the good info and links. I had some security issue on the server that helped me to figure out simple thing I didn't see before. It is running successfully well now. I wanted to thank you all participants who prepared and contributed to the project.
Gokhan Gun
If you are now trying to do this on Fedora 14 or a system that has SELinux. you may run into issues when you navigate to the phpMyAdmin page. SELinux blocks access to mysql and you will get a error #2002. I recommend putting SELinux into Permissive mode, by default Fedora is in enforcing mode.
http://linuxpoison.blogspot.com/2011/01/how-to-disable-selinux-in-fedora-14.html
Disable SELinux in Fedora 14:
For the operating system as a whole, there is two kinds of disabling:
Permissive - switch the SELinux kernel into a mode where every operation is allowed. Operations that would be denied are allowed and a message is logged identifying that it would be denied. The mechanism that defines labels for files which are being created/changed is still active.
Disabled - SELinux is completely switched off in the kernel. This allows all operations to be permitted, and also disables the process which decides what to label files & processes with.
Temporarily switch off enforcement:
To check what mode the system is in,
cat /selinux/enforce
which will print a "0" or "1" for permissive or enforcing.
You can switch the system into permissive mode with the following command:
echo 0 >/selinux/enforce
Permanently Permissive
The above will switch off enforcement temporarily - until you reboot the system. If you want the system to always start in permissive mode, then here is how you do it, In Fedora, edit/etc/selinux/config and just change SELINUX=enforcing to SELINUX=permissive, and you're done.
Fully Disabling SELinux:
Fully disabling SELinux goes one step further than just switching into permissive mode. Disabling will completely disable all SELinux functions including file and process labelling.
In Fedora, edit /etc/selinux/config and change the SELINUX line to SELINUX=disabled
Thank you so much! This was an ass-saver when i was handed a server with no web services other than SSH. Being a windows guy, i had no idea where to start.