Control Web Panel
WebPanel => CentOS-WebPanel Bugs => Topic started by: nova on December 15, 2015, 10:50:28 AM
-
1 During the week, I installed CWP on different operating systems. "centos6.5", "cenos6.7", "centos7", "cenos7.1".
The real servers, VirtualBox, I've tested. I perform standard setup and operation with the default settings on the site. I had the same problem at all.
After installation, I used to test small script: "gdtest.php" content
<?php
/* Displays details of GD support on your server */
echo "GD is : ";
if (function_exists("gd_info")) {
echo "supported\n";
$gd = gd_info();
foreach ($gd as $k => $v) {
echo $k;
if ($v)
echo " : Yes\n";
else
echo " : No\n";
}
} else {
echo " not supported\n";
}
echo "PHP path : ".getPHPExecutableFromPath()."\n";
function getPHPExecutableFromPath() {
$paths = explode(PATH_SEPARATOR, getenv('PATH'));
foreach ($paths as $path) {
// we need this for XAMPP (Windows)
if (strstr($path, 'php.exe') && isset($_SERVER["WINDIR"]) && file_exists($path) && is_file($path)) {
return $path;
}
else {
$php_executable = $path . DIRECTORY_SEPARATOR . "php" . (isset($_SERVER["WINDIR"]) ? ".exe" : "");
if (file_exists($php_executable) && is_file($php_executable)) {
return $php_executable;
}
}
}
return "not found\n"; // not found
}
?>
run browser : www.sitename.com/gdtest.php
results:
GD is : supported
GD Version : Yes
FreeType Support : No
T1Lib Support : No
GIF Read Support : Yes
GIF Create Support : Yes
JPEG Support : No
PNG Support : Yes
WBMP Support : Yes
XPM Support : No
XBM Support : Yes
JIS-mapped Japanese Font Support : No
PHP path : not found
and run ssh comand line this script : php -f /home/sitename/public_html/gdtest.php
results :
GD is : supported
GD Version : Yes
FreeType Support : Yes
FreeType Linkage : Yes
T1Lib Support : No
GIF Read Support : Yes
GIF Create Support : Yes
JPEG Support : Yes
PNG Support : Yes
WBMP Support : Yes
XPM Support : No
XBM Support : Yes
JIS-mapped Japanese Font Support : No
PHP path : /usr/local/bin/php
look, FreeType Support, FreeType Linkage, JPEG Support and PHP path is different.. why ?
"In cPanel servers" I've tested. but no difference. There are only differences in servers using CWP.
I performed an additional test.
"gdtest.php" file to /usr/local/cwpsrv/htdocs/admin/gdtest.php folder to upload and
the browser I run : www.sitename.com:2030/design/gdtest.php
results:
GD is : supported
GD Version : Yes
FreeType Support : No
T1Lib Support : No
GIF Read Support : Yes
GIF Create Support : Yes
JPEG Support : No
PNG Support : Yes
WBMP Support : Yes
XPM Support : No
XBM Support : Yes
JIS-mapped Japanese Font Support : No
PHP path : not found
even in different CWP service.
What reason is there a solution to this problem?
I wish you good work. Best regards.
-
This has me intrigued, have you looked at your php info file on your server to see if the module you require is compiled. It is possible it is installed but not compiled to a specific php installation.
Create a file with one line in it:
<?php phpinfo(); ?>
Save the file as test.php
Upload to your server
Navigate to the page using your web browser
If PHP is installed on your server that single line of code will print out a heap of detailed information about the version and configuration of PHP you have available.