Hi, I’m running a ubuntu lamp stack, I have a js script which requires via ajax a php file, when I run the script It throws a 404 error can’t find the php file. However when I click the path it says it has 404’d on it downloads the php file it should be running? Therefore the path is correct?
This is the contents of an inspection: Remote Address: 18.104.22.168:8000 Request URL:http://22.214.171.124:8000/chat/store.php Request Method:POST Status Code:404 Not Found Response Headers view source Connection:keep-alive Content-Length:28 Content-Type:text/html; charset=utf-8 Date:Mon, 30 Nov 2015 11:10:22 GMT X-Content-Type-Options:nosniff X-Powered-By:Express Request Headers view source Accept:/ Accept-Encoding:gzip, deflate Accept-Language:en-US,en;q=0.8 Connection:keep-alive Content-Length:45 Content-Type:application/x-www-form-urlencoded; charset=UTF-8 Host:126.96.36.199:8000
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!