0

I installed xampp for ubuntu. I run it using /opt/lampp/lampp start. But somehow, another apache, mysql & php got installed while installing other application. Now, there is conflict between the two as I have to stop those services before starting lampp server. Can anyone make it clear for me?

And how can I run my php project with the apache that is not from lampp? I think it will be helpful for me to run different projects that require different version of php in the long run if I learn to control it. Thank you.

0

As you mention the path in /opt, it looks like you installed some third party package that does not come from Ubuntu repositiories and is not a native part of Ubuntu.

I would suggest uninstalling this and install native Apache, PHP and MySQL packages from Ubuntu repositories. From what you write, apparently they got already installed, so all you have to do is to uninstall the software you installed.

As for the question "how can I run my php project with the apache that is not from lampp?" I don't understand it, as I don't see any difference in running a PHP enabled website in Apache regardless of how you did install the software. In any case you need to put your PHP scripts in the appropriate directory that is served by Apache (you have to check in the Apache configuration file what directory it is, usually with default Apache configuration it should be /var/www - you can of course add other directories if you like, or enable the "userdir" Apache module and use /home/<user>/public_html) and then access the script via web browser.

1
  • Thank you. I understand it now. Regarding the second question, usually in xampp, we put the projects under htdocs folder. So, I wanted to know the path in which we have to put our projects in the native apache. I will check the folder path as you mentioned. – get_coding Jan 28 at 6:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.