Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i have cent os 7 installed on my machine. also installed xampp on it. when i tried to open .php file on browser its not executing but when i try to executi .html file on browser it displayed.
Then you're probably going to be better off trying a normal LAMP stack instead of experimenting with XAMPP. XAMPP is pretty non-standard and will cost a lot of extra work just to get running, then there are extra maintenance considerations that you will run into because it does not take advantage of the built-in package management system that CentOS uses. To get normal LAMP components, use yum. The packages httpd, mariadb, perl, and php will add what you need. Linux you have already and python should already be installed by default. Then it will be less work to get running, lower effort for maintenance, greater portability, and also give you the ability to take advantages of the guides and tutorials out on the net.
Then you're probably going to be better off trying a normal LAMP stack instead of experimenting with XAMPP. XAMPP is pretty non-standard and will cost a lot of extra work just to get running, then there are extra maintenance considerations that you will run into because it does not take advantage of the built-in package management system that CentOS uses. To get normal LAMP components, use yum. The packages httpd, mariadb, perl, and php will add what you need. Linux you have already and python should already be installed by default. Then it will be less work to get running, lower effort for maintenance, greater portability, and also give you the ability to take advantages of the guides and tutorials out on the net.
And less security.
SELinux is there for protection. If you aren't going to use it, you may as well use any other distribution.
as you said i also planning to move on to the lamp stack but its been configured by someone else and without any further instructions i cant switch so i am trying to resolving this issue only
You can spend your resources just to try to get XAMPP running. Or you can use "yum" to install httpd, mariadb, perl, and php and spend your resources building something with perl, python, or php. Can you run "yum" on your machine to install anything? Or can your sysadmin do so on your behalf? If so, then that is the way to go.
Note: the CentOS packages work - they have any patches needed, and already have the security designes configured for CentOS, where the xampp kit is not, and will not.
finally i have reloaded my server and its only having cPanel but still facing issue with error 500
Ok. Does that mean you have used yum to install the packages httpd, mariadb, perl, and php? Once you have installed the php package, you'll need to get the web server to reload its configuration file.
Code:
systemctl restart httpd.service
If you are still getting a 500 error, then try opening a new window and tracking the web server's error log:
Code:
tail -f /var/log/httpd/error_log
What is the exact error when you try to load the offending page?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.