0

I need to configure a server for the CS-Cart Multi-vendor software (http://docs.cs-cart.com/4.6.x/install/system_requirements.html) and if I check things with phpinfo()there's no php.ini file. It shows the path where it should be in, but there's no file.

Configuration File (php.ini) Path /etc/php70
Loaded Configuration File (none)

I don't see this directory either on the server which is by the way a Virtual Private Server (VPS), so where and how do I go about this?

Edited by gentlemedia

2
Contributors
8
Replies
42
Views
4 Months
Discussion Span
Last Post by cereal
0

Hi!

Are you using PHP-FPM? In such cases the PHP engine can be located into another server and accessed through an IP address. The address is configured in the web server config files and the php.ini file is in the remote server. You can probably use ini_set() by including a script in top of the others. Through .htaccess this is done like this:

php_value auto_prepend_file "/path/to/iniset.php"

Otherwise in PHP:

require "/path/to/iniset.php";

I would also check with hosting documentation to see if you can set the directives through a dedicated interface.

Edited by cereal

0

Thanks, Cereal!

Not sure what PHP-FPM was, but did a google and now I know :), but I don't know if the host uses this.

I also contacted the the provder if they can clarrify things, but haven't heard back from them yet.

Do you mean with a dedicated interface a thing like cPanel?

Edited by gentlemedia

0

Do you mean with a dedicated interface a thing like cPanel?

Yes. Sometimes you can edit configuration files only through these forms. You can, also, try to write a custom php.ini file and save it into the document root, success however depends on hosting configuration: if it is allowed then it will override the defaults.

Edited by cereal

0

Ah ok. Clear!

There's no Cpanel, Plesk or any other known inteface installed. It's possible but then the client has to pay an extra monthly fee for this. But I will advise them to do so either, because the documentation 'how to install' is with cPanel.

On that server requirements page I linked to it syas 'The following PHP commands should be enabled' where and how do I enable those?

I got a message back from the provider and it's indeed not possible to edit the php,ini file because it's not only used by my hosting package, but also by others. That kind of sucks! What happend with the part 'private' in VPS? :)

I will ask if I can create a custom php.ini file in my own dcucment root to override settings.

Edited by gentlemedia

0

I got a message back from the provider and it's indeed not possible to edit the php,ini file because it's not only used by mine hosting package also by others. That kind of sucks!

Indeed, it sucks :| Not considering that they could use pools to provide separated resources and configuration files for each client.

I will ask if I can create a custom php.ini file in my own dcucment root to override settings.

Either that or my first suggestion: through prepended scripts, which should work for directives that can be applied at runtime, see:

0

It turns out the client got a shared hosting package instead of a VPS that I (CS-Cart) recommended. :(

0

I'll close this thread,. I've arranged a VPS for them and I'll most definatley will come here at DW with questions related to this, because I never had to work with a private or dedicated server before. Oh, oh... the command line :-)

Edited by gentlemedia

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.