PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : مشکل سرور



shakari
April 10th, 2014, 17:50
با سلام تمام اساتید محترم.

مشکل این چیه؟ Abay - IR Just Released (http://hamaraserver.in/ir.php)
تو شیراتیکس هم همین مشکلمون هست لطفا راهنمایی کنید.

nginxweb
April 10th, 2014, 18:14
درود
دوست گرامی اگر در سایت دیگری نیز این مشکل را دارد مشکل از کانفیگ ناصحیح php سرورتون میباشد که نیاز به بررسی دارد

shakari
April 10th, 2014, 18:58
میشه کلا آموزش کامل کامل کانفیگ php رو بزارید؟

InterServer.ir
April 10th, 2014, 19:22
میشه کلا آموزش کامل کامل کانفیگ php رو بزارید؟

متاسفانه نمیشه گفت دقیقا کجا اشتباه کردید آموزش کامل کامل هم دو 3 خط نیست که گذاشت
نیاز به بررسی سرور هست اینطور نمیشه چیزی گفت راه دوم شما هم اینه هر کاری با php کردین به حالت پیشفرض برگردونید شاید حل شد

shakari
April 10th, 2014, 21:16
کاری با php نکردم

meysam021
April 10th, 2014, 21:26
کاری با php نکردماستاد شکاری عزیز بفرمایید.
yum update -y php
توی ssh بزنید

shakari
April 10th, 2014, 21:30
درورد آقای پرستار.
ولی در جواب
اینو دریافت کردم
[root@server ~]# yum update -y php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: miroir.univ-paris13.fr
* extras: centos.mirror.fr.planethoster.net
* updates: centos.quelquesmots.fr
Setting up Update Process
No Match for argument: php
No package php available.
No Packages marked for Update

meysam021
April 10th, 2014, 21:40
دهدار هستیم استاد
اول با این دستور
yum update
سنتوس رو آپدیت کنید.
بعد اینو بزنید
yum update -y php
درست شد شکر نشد

بفرمایید


download the php-5.2.4.tar.gz from php.net into your customapache directory:

cd /usr/local/directadmin/customapache

wget http://files.directadmin.com/services/customapache/php-5.2.4.tar.gz

change your build script for the new version:

nano build
change:
PHP_VER=4.4.4
TO:
PHP_VER=5.2.4
build php normally:

./build clean
./build php n

If you’re using apache 2.x, use

./build clean
./build php_ap2 n
instead edit /etc/httpd/conf/httpd.conf

Remove any reference of:

LoadModule php4_module modules/libphp4.so

and make sure they’re replaced with:

LoadModule php5_module modules/libphp5.so

Remove any reference of:

AddModule mod_php4.c
and replace with:

AddModule mod_php5.c
find this piece of code:
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi
</IfModule>

replace with:
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php5 index.php3 index.phtml index.cgi
</IfModule>

Find this:

<IfModule mod_php4.c>
AddType application/x-httpd-php .inc .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>

(it might have AddHandler instead of AddType) replace with:
<IfModule mod_php5.c>
AddHandler application/x-httpd-php .inc .php .php5 .php4 .php3 .phtml
AddHandler application/x-httpd-php-source .phps
</IfModule>

Then restart apache.

If you get the following error while compiling php:

checking whether to enable LIBXML support… yes
checking libxml2 install dir… no
checking for xml2-config path…
configure: error: xml2-config not found. Please check your libxml2 installation.
*** There was an error while trying to configure php. Check the configure.php file


Edit the configure.php file (or configure.php_ap2 if you’re using apache 2), and change:

–with-xml \

TO:

–disable-libxml \
–disable-dom \
–disable-xml \
–disable-simplexml \
–disable-xmlreader \
–disable-xmlwriter \

or else install the missing rpms/packages for xml. (libxml2-dev and libxml2-utils on debian).

Redhats:

yum -y install libxml2-devel libxslt-devel

FreeBSD:

pkg_add -r libxml2
pkg_add -r libxslt

If you wish to add any extra modules to Php, they’ll have to be compiled in. The directive –with-MODULE should be added in the configure.phpX file. To add this directive, run the following commands at the prompt:

cd /usr/local/directadmin/customapache
vi configure.php

Now, add your –with-MODULE directive to the end of the file, and make sure the forward slah \ character is placed at the end of all lines except the last one. For example, to add DOM XML to Php:

–with-dom=/usr/lib \
–with-dom-exslt=/usr/lib \
–with-dom-xslt=/usr/lib \

If you’re using custombuild instead of customapache, use the following configure files:

/usr/local/directadmin/custombuild/configure/ap2/configure.php5
/usr/local/directadmin/custombuild/configure/ap2/configure.php4

When re-compiling is completed, restart Apache (linux )

/sbin/service httpd restart

FreeBSD:

/usr/local/etc/rc.d/httpd restart