New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to Create php.ini file on DA Shared Hosting?
I need php to display errors and display startup errors (default are off). There's a tutorial for CPanel;
Doesn't seems to work on DA.
Other questions, bare in mind I'm a noob here, is there a lamp stack script that basically you can run and you don't need to do anything else security-wise at least for basic security?
Also, which hosting service that offer you lamp stack and security and updates and maintenance so that I can just concentrate on coding?
Comments
Are you currently using shared hosting? or do you have DirectAdmin installed on a VPS?
Is Cloudlinux installed?
Shared hosting using DA control panel. Not sure about Cloudlinux but I think its installed.
I also have some idle VPS, thus the other questions.
If Cloudlinux is installed, login to DirectAdmin and go to Extra Features > Select PHP Version > Options then tick display_errors.
The PHP Debug Errors should then display for you.
Hiya,
Have you asked your host? If they are not using cloud linux, chances are, you won't be able to override php settings.
Else for da, shameless link to my knowledgebase
https://nexusbytes.com/knowledgebase/48/How-to-change-PHP-versions-and-settings-using-PHP-Selector.html
you can use .htaccess
display_errors is now on but display_startup_errors is still off.
Ask your provider first as it's not their support desk.
I'm sure the provider will definitely help you as you've paid them
Glad to hear one part is done.
You can try this in your .htaccess
I'm kinda confused about the difference between PHP version selector on the sidebar of the dashboard and the PHP version selector at the Extra Features -> Select PHP Version. They seems to be doing different things.
Right now, on the sidebar it's set to PHP 7.3 mod_php
At Extra Features, it's set as current PHP 7.3
display_errors option is checked
Without the .htaccess file,
With the .htaccess file,
I need them all to be On though.
Who's services are you using?
Cam. Don't really want to bother the host over stuff like this. But if I changed everything to PHP 7.2, it shows this instead;
Without htaccess (what I originally did with your first instruction),
With htaccess,
Just need them to be the same as the MAMP setting on my PC.
I think you are going to have to ask your host to help you with this. As it will be them who needs to change the setting.
Think I can live with the current setting, I'll check with the host if it ends up necessary in the end. Thanks a lot for your help, I appreciate them very much.
No problem at all