PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, November 13, 2022

[FIXED] where to place POST method on my webserver?

 November 13, 2022     forms, joomla, php, plesk, post     No comments   

Issue

I am hosting my first webserver ever. I got myself a ubuntu based vserver and installes plesk and joomla.

Stupid question, but I wanted to create a form and and handle the input with a post.php file with a POST-method. But I have no clue where to place it on my server. Right now it is just in /var/www/vhosts/[MY WEBSITE.DE]/httpdocs/post.php, but this might be wrong.

Is there a specific file that I have to change or do I have to place my php-files in a specific directory? This question might be so stupid, I couldn't even find an answer on Google :D


Solution

Well, you can place your own code anywhere in the directory that plesk is using for your website. In your case : /var/www/vhosts/[MY WEBSITE.DE]/httpdocs/.

It is then your job to use that in your code where needed (I assume you have a form of some sort and that's why you are talking about a "post method", you just need to point that form to your whatever.php page you uploaded).

Please use FTP/your website username to upload your code into your website directory and not the root user or you'll end up with permission issues and nothing will correctly work.

A good start would be Getting Started with Managing Websites in Plesk and Option A. Upload Content



Answered By - Maiko Bossuyt
Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing