6/4/2023 0 Comments Php page creator![]() You should see a page similar to the following image: You should also be able to use your IP address followed by info.php: If you created this file under your website, this would be: Test if the file and php are both working navigate to the file in your web browser. Please save and close the file once you're satisfied with the edits that you have made. With the file now open, you'd enter in the following code: I am using a CentOS 7 server with no control panel for this article, so my webroot is located at /var/file using nano is: This can be a few different places depending on if you're using a control panel like cPanel or not. To do this, you'll need to create the file in your website's webroot. ![]() We will essentially create a PHP script that will execute when you navigate to the page in your web browser. Now that you're connected to your server via SSH and have a favorite Linux text editor in mind to use let's get create the PHP info page! For this article, I will be using nano (it's my favorite). Wait, what's this? You don't have a favorite Linux text editor? No problem, we've got you covered with the following article: How to Edit Files from a Linux Shell. Also, creating the PHP info page will require you to use your favorite Linux text editor. Once you have connected to your server via SSH, you can proceed. If you're not familiar with how to do this, or you love to read, please take a moment and read through the following article: Connecting to Your Server via SSH. This article implies that you have already installed PHP on your server, however, if you have not yet done so, please review the following articles, which cover the installation of PHP in CentOS 7 or Ubuntu 14.04:īefore getting started, you'll need to access your server using SSH. Once this page is created, you can either leave it in place for future consultation or remove it together. The focus of this article is to teach you how to create and use a PHP info page. This will not only confirm that PHP is installed and working as expected but will also allow you to see what modules are installed and active on your server. Creating a simple PHP info page is a great way to test your server's PHP processing capabilities.
0 Comments
Leave a Reply. |