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?

Recommended Answers

All 8 Replies

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.

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?

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.

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.

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:

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

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

Hehe, it will be fun, don't worry ;D

commented: Not sure about the fun part. Necessary? Yes! Bur fun...? :) +7
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.