Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to Create php.ini file on DA Shared Hosting?
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.

How to Create php.ini file on DA Shared Hosting?

nonenone Member

I need php to display errors and display startup errors (default are off). There's a tutorial for CPanel;

https://www.namecheap.com/support/knowledgebase/article.aspx/9314/2219/how-to-edit-phpini-on-shared-servers

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

  • JordJord Moderator, Host Rep

    Are you currently using shared hosting? or do you have DirectAdmin installed on a VPS?

    Is Cloudlinux installed?

    Thanked by 1none
  • nonenone Member

    @Jord said:
    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.

  • JordJord Moderator, Host Rep
    edited April 2020

    @none said:

    @Jord said:
    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.

    Thanked by 1none
  • @none said:
    I need php to display errors and display startup errors (default are off). There's a tutorial for CPanel;

    https://www.namecheap.com/support/knowledgebase/article.aspx/9314/2219/how-to-edit-phpini-on-shared-servers

    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?

    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

  • nonenone Member

    @Jord said:

    @none said:

    @Jord said:
    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.

    display_errors is now on but display_startup_errors is still off.

  • ViridWebViridWeb Member, Host Rep

    @none said:

    @Jord said:

    @none said:

    @Jord said:
    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.

    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

  • JordJord Moderator, Host Rep

    @none said:

    @Jord said:

    @none said:

    @Jord said:
    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.

    display_errors is now on but display_startup_errors is still off.

    Glad to hear one part is done.

    You can try this in your .htaccess

    php_flag display_startup_errors on
    php_flag display_errors on
    php_flag html_errors on
    
    Thanked by 1none
  • nonenone Member

    @Jord said:

    @none said:

    @Jord said:

    @none said:

    @Jord said:
    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.

    display_errors is now on but display_startup_errors is still off.

    Glad to hear one part is done.

    You can try this in your .htaccess

    php_flag display_startup_errors on
    php_flag display_errors on
    php_flag html_errors on
    

    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,

    display_errors  Off Off
    display_startup_errors  Off Off
    

    With the .htaccess file,

    display_errors  On  Off
    display_startup_errors  On  Off
    

    I need them all to be On though.

  • JordJord Moderator, Host Rep

    @none said:

    @Jord said:

    @none said:

    @Jord said:

    @none said:

    @Jord said:
    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.

    display_errors is now on but display_startup_errors is still off.

    Glad to hear one part is done.

    You can try this in your .htaccess

    php_flag display_startup_errors on
    php_flag display_errors on
    php_flag html_errors on
    

    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,

    display_errors    Off Off
    display_startup_errors    Off Off
    

    With the .htaccess file,

    display_errors    On  Off
    display_startup_errors    On  Off
    

    I need them all to be On though.

    Who's services are you using?

  • nonenone Member

    @Jord said:

    @none said:

    @Jord said:

    @none said:

    @Jord said:

    @none said:

    @Jord said:
    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.

    display_errors is now on but display_startup_errors is still off.

    Glad to hear one part is done.

    You can try this in your .htaccess

    php_flag display_startup_errors on
    php_flag display_errors on
    php_flag html_errors on
    

    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,

    display_errors  Off Off
    display_startup_errors  Off Off
    

    With the .htaccess file,

    display_errors  On  Off
    display_startup_errors  On  Off
    

    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),

    display_errors  On  On
    display_startup_errors  Off Off
    

    With htaccess,

    display_errors  On  On
    display_startup_errors  On  Off
    

    Just need them to be the same as the MAMP setting on my PC.

  • JordJord Moderator, Host Rep

    @none said:

    @Jord said:

    @none said:

    @Jord said:

    @none said:

    @Jord said:

    @none said:

    @Jord said:
    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.

    display_errors is now on but display_startup_errors is still off.

    Glad to hear one part is done.

    You can try this in your .htaccess

    php_flag display_startup_errors on
    php_flag display_errors on
    php_flag html_errors on
    

    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,

    display_errors    Off Off
    display_startup_errors    Off Off
    

    With the .htaccess file,

    display_errors    On  Off
    display_startup_errors    On  Off
    

    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),

    display_errors    On  On
    display_startup_errors    Off Off
    

    With htaccess,

    display_errors    On  On
    display_startup_errors    On  Off
    

    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.

    Thanked by 1none
  • nonenone Member

    @Jord said:
    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.

  • JordJord Moderator, Host Rep

    @none said:

    @Jord said:
    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 :)

    Thanked by 1none
Sign In or Register to comment.