Getting Started with PHP on HostMaji
Discussion on how to set up and run your first PHP project on HostMaji's free hosting.
StudentDev
Posted on
Hey everyone,
I'm new to web development and just got my free hosting account with HostMaji. I want to start building dynamic websites using PHP. Can anyone guide me on how to get my first PHP script running? Do I just upload a .php file, or are there any specific configurations needed in CyberPanel?
Any tips for a beginner would be greatly appreciated!
Thanks!
Replies (2)
HostMaji_Support
Replied on
Hi StudentDev! Welcome to HostMaji. You're on the right track! For basic PHP scripts, you can indeed just upload your `.php` file to your `public_html` directory using FTP or the File Manager in CyberPanel. Our servers are configured to process PHP automatically. For more advanced settings or specific PHP versions, you can manage them directly from your CyberPanel dashboard under the "PHP" section. Feel free to ask if you run into any specific issues!
WebGuru
Replied on
Adding to what HostMaji_Support said, make sure your PHP files have the correct permissions (usually 644) and folders 755. This is crucial for security and proper execution. Also, if you're using a database, ensure you've created it in CyberPanel first and updated your PHP script with the correct database credentials.