Noob php question.

Status
Not open for further replies.

rawfle

New Member
Messages
3
Reaction score
0
Points
0
Hello! new user here, working on setting up an x-cart install (wont be live, more of a test install/etc) I am a complete noob with php/etc, and I cant seem to wrap my head around creating/placing a php.ini file. I made one, but I am not sure how it should be formatted/etc :(

The x-cart guide says

"php.ini settings

required values:

safe_mode = off
file_uploads = on
magic_quotes_sybase = off
sql.safe_mode = off
allow_url_fopen = on
ini_set = on
memory_limit >= 32M

recomennded settings

disable_functions = NULL
post_max_size = 2M
upload_max_filesize >= 2M
max_execution_time = >= 30
memory limit >= 64M
max_input_time = >= 30
sendmail_from = ...@domain.com"

"Other recomendations
PHP should be compiled with "--enable memory limit" option"


Also
PHP function exec() / popen() / pclose()
need to be enabled, I have no clue how to do these things, and I am looking into it, but if anyone here knows how and can respond before I find anything out, I would greatly appreciate it :)
 

descalzo

Grim Squeaker
Community Support
Messages
9,372
Reaction score
326
Points
83
There is one php.ini file per server. You cannot edit it or supply your own. You are stuck with the values that x10hosting uses for all free accounts. Those values allow most reasonable PHP scripts to function normally.
 

rawfle

New Member
Messages
3
Reaction score
0
Points
0
Ah, so using free hosting no way to get the changes made that I need? :(

rep to ya for the quick response though!
 

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
To add on to descalzo, I believe x10 free hosting accounts PHP Configuration already meet the recommended settings you listed above. You can probably try installing the X-Cart software and see if you encounter any errors.
 
Last edited:

rawfle

New Member
Messages
3
Reaction score
0
Points
0
When running the install script, it throws warnings about "PHP function exec() / popen() / pclose()" But everything else does seem configured properly, I posted ALL of the requirements so that someone informed could go over it and see if it was all gravy :)
 

techairlines

x10 Flyer
Community Support
Messages
2,867
Reaction score
165
Points
63
When running the install script, it throws warnings about "PHP function exec() / popen() / pclose()" But everything else does seem configured properly, I posted ALL of the requirements so that someone informed could go over it and see if it was all gravy :)

http://techairlines.com/exec.php

exec() and popen() appear to be disabled, but pclose() is enabled. At least on Chopin.

Script Source:
PHP:
 exec

<?php
if(function_exists('exec')) {
echo "Function Exists";
}
else {
echo "Function Does Not Exist";
}
?> 
<br/><br/>
popen

<?php
if(function_exists('popen')) {
echo "Function Exists";
}
else {
echo "Function Does Not Exist";
}
?> 
<br/><br/>
pclose

<?php
if(function_exists('pclose')) {
echo "Function Exists";
}
else {
echo "Function Does Not Exist";
}
?>
 
Last edited:
Status
Not open for further replies.
Top