How Eclipse+PHP Runs Local Files from Eclipse to apache

Asked 2 years ago, Updated 2 years ago, 61 views

Install apache2libapache2-mod-phpeclipse, etc. on Ubuntu 17.10
I'm trying to write a program.I'm a complete beginner.

The program is located in ~/eclipse-workspace/SamplePj1/test.php.
In the PHP Server configuration for run configurations in the run menu,
URL: http://localhost
Document Root: /home/myid/eclipse-workspace
and
In the run configurations file /SamplePj1/test.php
When you set up and press the run button in the lower right corner, the following error appears:

Not Found

The requested URL/SamplePj1/test.php was not found on this server.

Apache/2.4.27(Ubuntu) Server at localhost Port 80

apache goes to the /var/www/html directory and gets an error saying that there are no files
I understand that you are putting it out, but

File of local directory (/home/myid/eclipse-workspace) from eclipse How do I get apache to run it?

Thank you for your cooperation.

php apache eclipse

2022-09-30 16:49

1 Answers

You can set Apache to handle user directories.
I'm not sure what kind of package Ubuntu Apache is in, so please search for detailed settings such as "Add Apache User Directory" and refer to the explanation that is close to your environment.

For example, Apache documentation site also has a description.


2022-09-30 16:49

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.