How To Make MySQL Functions In PHP In Server
how to make MySQL functions in PHP in server,bcz when i intall VB in my dedicated server it comeing is there is any option in WHM to chnage these funtion!
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Disable Php Functions
Does the below look good for a private server (linux, cpanel, phpsuexec disabled)? disable_functions = show_source, system, shell_exec, passthru, phpinfo, popen, proc_open What about a shared hosting server (linux, cpanel, phpsuexec *enabled*)? disable_functions = show_source, system, shell_exec, passthru, phpinfo, popen, proc_open
View Replies!
View Related
PHP Disable Functions Override
In the php.ini ive disabled several functions for security reasons but i need to enable exec() and shell_exec() for WHMCS Status, but i dont want it enabled for anything or anyone else. I know you can over ride global php.ini but i preferably dont want that on and also i forgot where that option is but i was wondering if there was any work arounds or would i have to enable exec() and shell_exec() globally or enable php.ini override.
View Replies!
View Related
How-to Disable Php Functions Per Domain
When dealing with the security of your server you will eventually get to the part were you will want to disable some php functions. The only problem on shared hosting is that you cannot disable exec for a domain and enable that function for an other that needs it because of some lame script. Eventually you will get to the part were you will need to enable exec on the entire server because of one site. There is a solution to this and it’s called suhosin. Suhosin has a configuration variable called ”suhosin.executor.func.blacklist” which can be used to disable some php functions. The difference between this variable and disable_functions in php.ini is that it can be set for all the sites and then it can be modified for a domain only (it can be overwritten) so you will be able to disable exec on the entire server and enable that function for a single domain. I will not write here how to install suhosin. Also, you only need the extension for this so you do not need to patch php and recompile. IMPORTANT: I have noticed that the suhosin extension 0.9.20 will not work anymore as there are some problems with it. It’s ok as long as we have 0.9.18. Probably the next version of the extension will be fixed to work ok again so remember to use version 0.9.18 for this until the problem is fixed. Ok, so to use suhosin as the php function blocker we need to comment out disable_functions in php ini (yes, enable all the functions) and then set in php.ini suhosin.executor.func.blacklist to something like this: suhosin.executor.func.blacklist = exec, passthru, shell_exec, system, pcntl_exec, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg You can add as many functions as you like. After that, all the functions added in suhosin.executor.func.blacklist will not work anymore in php scripts. If you need to enable a function for a domain, let’s say exec, you will have to edit apache configuration file and add suhosin.executor.func.blacklist without the exec function: <VirtualHost 127.0.0.1> ServerAlias www.test.com ServerAdmin webmaster@test.com DocumentRoot /home/test/public_html php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg" </VirtualHost> Now exec is disable on the server but it’s enabled on the test domain.
View Replies!
View Related
PHP Disabled Functions (HTTPD.conf)
is it possible to set the disabled functions list for PHP in apache's HTTPD.conf per virtual host? i want a bunch of functions disabled for everyone except the default host (me). I tried the php_admin_value way and when i look at phpinfo() it shows that the master is disabled and the local is not disabled (exactly what i want) but they arnt actually enabled for me
View Replies!
View Related
Requota Make Server Highload And Mysql Failed
today mysql server just went down and below is ps aux result Quote: khuvuich 4821 0.1 1.2 34580 24760 ? S 08:44 0:00 /usr/local/cpanel/cpanel ./frontend/x3/index.html root 4822 0.0 0.0 1980 644 ? D 08:44 0:00 quota -v nobody 5079 0.0 0.2 9248 4612 ? S 08:46 0:00 /usr/local/apache/bin/httpd -DSSL root 5202 0.1 0.1 12344 4060 ? Ss 08:46 0:00 /usr/sbin/exim -Mc 1IOjnZ-0001Lt-Sq mailnull 5207 0.0 0.1 12348 2236 ? S 08:46 0:00 /usr/sbin/exim -Mc 1IOjnZ-0001Lt-Sq root 5233 0.3 0.2 9940 5064 ? S 08:46 0:00 /usr/bin/perl /scripts/restartsrv_mysql --restart root 5262 0.0 0.0 4580 1200 ? S 08:46 0:00 /bin/sh /etc/rc.d/init.d/mysql start root 5423 0.0 0.0 5796 528 ? S 08:47 0:00 sleep 1 root 5424 0.0 0.0 4288 788 pts/5 R+ 08:47 0:00 ps aux root 5592 0.0 0.1 7612 4012 ? S Aug23 0:01 /etc/authlib/authProg root 6889 0.0 0.0 3216 644 ? D 05:00 0:00 quota -v root 8687 100 0.0 3360 556 ? R 01:47 419:13 /usr/sbin/repquota -auv root 8701 0.0 0.0 2196 524 ? D 01:47 0:00 /usr/sbin/repquota -auv root 10187 0.0 0.1 7612 4084 ? S Aug23 0:01 /etc/authlib/authProg root 10833 0.0 0.0 0 0 ? S Aug24 0:15 [pdflush] root 11900 0.0 0.0 3340 524 ? D 02:02 0:00 /usr/sbin/repquota -auv root 11921 0.0 0.0 2012 524 ? D 02:02 0:00 /usr/sbin/repquota -auv root 12142 0.0 0.1 7612 4088 ? S Aug23 0:01 /etc/authlib/authProg root 14413 0.0 0.0 2172 524 ? D 02:15 0:00 /usr/sbin/repquota -auv root 14437 0.0 0.0 3172 524 ? D 02:15 0:00 /usr/sbin/repquota -auv root 14534 0.0 0.0 2888 520 ? D 02:16 0:00 /usr/sbin/repquota -auv root 14601 0.0 0.1 7612 4012 ? S Aug23 0:02 /etc/authlib/authProg root 14805 0.0 0.0 2564 524 ? D 02:18 0:00 /usr/sbin/repquota -auv root 14959 0.0 0.0 1848 520 ? D 02:19 0:00 /usr/sbin/repquota -auv root 15695 0.0 0.4 20540 10060 ? S Aug24 0:01 cpsrvd - waiting for connections root 16091 0.0 0.0 3096 632 ? DN 02:25 0:00 quota -v kd4rumn root 17065 0.0 0.1 7612 4088 ? S Aug23 0:01 /etc/authlib/authProg root 18882 0.0 0.0 3416 644 ? D 02:41 0:00 quota -v root 19232 0.0 0.0 2428 644 ? D 07:14 0:00 quota -v root 20506 0.0 0.0 3460 644 ? D 07:26 0:00 quota -v root 20751 0.0 0.0 2896 640 ? D 07:28 0:00 quota -v root 20808 0.0 0.0 3760 644 ? D 02:53 0:00 quota -v root 21143 0.0 0.0 2676 644 ? D 07:30 0:00 quota -v root 21615 0.0 0.0 3336 644 ? D 02:58 0:00 quota -v root 21732 0.0 0.0 2076 520 ? D 07:32 0:00 /usr/sbin/repquota -auv root 21871 0.0 0.0 3196 524 ? D 07:33 0:00 /usr/sbin/repquota -auv root 21885 0.0 0.0 3408 640 ? D 03:00 0:00 quota -v root 22190 0.0 0.0 2116 640 ? D 03:02 0:00 quota -v root 22333 0.0 0.0 3196 520 ? D 07:34 0:00 /usr/sbin/repquota -auv root 22350 0.0 0.0 2716 524 ? D 07:34 0:00 /usr/sbin/repquota -auv root 22959 0.0 0.0 2748 640 ? D 03:08 0:00 quota -v root 23312 0.0 0.0 3104 576 ? D 07:35 0:00 shutdown -r 0 w root 23712 0.0 0.0 3116 520 ? D 07:36 0:00 /usr/sbin/repquota -auv root 23941 0.0 0.0 3856 640 ? D 07:38 0:00 quota -v root 24197 0.0 0.0 3512 644 ? D 03:16 0:00 quota -v root 24928 0.0 0.0 2512 640 ? D 03:20 0:00 quota -v root 25144 0.0 0.0 3844 644 ? D 03:21 0:00 quota -v root 25830 0.0 0.0 1980 644 ? D 07:44 0:00 quota -v root 26838 0.0 0.0 3204 640 ? D 03:32 0:00 quota -v root 27238 0.0 0.0 3832 640 ? D 03:34 0:00 quota -v root 27377 0.0 0.0 2912 640 ? D 03:36 0:00 quota -v root 27433 0.0 0.0 2752 640 ? D 03:36 0:00 quota -v root 27503 0.0 0.0 2176 644 ? D 03:37 0:00 quota -v root 27659 0.0 0.0 2144 644 ? D 07:52 0:00 quota -v root 27713 0.0 0.0 3832 1080 ? S 07:52 0:00 /usr/bin/perl /scripts/quota_auto_fix root 27714 0.0 0.0 3832 440 ? S 07:52 0:00 /usr/bin/perl /scripts/quota_auto_fix root 27715 0.0 0.0 3340 520 ? D 07:52 0:00 /usr/sbin/repquota -a root 28543 0.0 0.0 2500 640 ? D 03:43 0:00 quota -v root 29352 0.0 0.0 1520 576 ? D 07:59 0:00 shutdown -r 0 w root 29417 0.0 0.0 0 0 ? Ds 08:00 0:00 [bash] root 29538 0.0 0.2 9240 5248 ? Ss 08:01 0:00 /usr/local/apache/bin/httpd -DSSL nobody 29543 0.0 0.2 9520 5264 ? S 08:01 0:00 /usr/local/apache/bin/httpd -DSSL nobody 29546 0.0 0.2 9500 5232 ? S 08:01 0:00 /usr/local/apache/bin/httpd -DSSL nobody 29547 0.0 0.2 9520 5376 ? S 08:01 0:00 /usr/local/apache/bin/httpd -DSSL nobody 29548 0.0 0.2 9380 5416 ? S 08:01 0:00 /usr/local/apache/bin/httpd -DSSL nobody 29549 0.0 0.2 9380 4792 ? S 08:01 0:00 /usr/local/apache/bin/httpd -DSSL root 29556 0.0 0.0 3180 640 ? D 03:48 0:00 quota -v root 29597 0.0 0.0 0 0 ? S Aug24 0:09 [pdflush] nobody 29637 0.0 0.2 10044 5624 ? S 08:01 0:00 /usr/local/apache/bin/httpd -DSSL nobody 29763 0.0 0.2 9380 5392 ? S 08:02 0:00 /usr/local/apache/bin/httpd -DSSL nobody 29878 0.0 0.2 9520 4868 ? S 08:02 0:00 /usr/local/apache/bin/httpd -DSSL nobody 29939 0.0 0.2 9520 4904 ? S 08:02 0:00 /usr/local/apache/bin/httpd -DSSL root 30271 0.0 0.0 5812 576 ? D 08:03 0:00 /sbin/quotaoff -a root 30425 0.0 0.0 2552 644 ? D 03:54 0:00 quota -v root 30432 0.0 0.0 2636 640 ? D 08:04 0:00 quota -v nobody 30466 0.0 0.2 9512 4844 ? S 08:05 0:00 /usr/local/apache/bin/httpd -DSSL root 30609 0.0 0.0 3732 640 ? D 08:06 0:00 quota -v root 30616 0.0 0.0 2328 640 ? D 08:06 0:00 quota -v root 30994 0.0 0.0 2464 640 ? D 08:09 0:00 quota -v root 31071 0.0 0.0 2156 644 ? D 08:09 0:00 quota -v root 31250 0.0 0.0 2296 644 ? D 08:10 0:00 quota -v root 31800 0.0 0.0 3508 524 ? D 08:12 0:00 /usr/sbin/repquota -auv root 31828 0.0 0.1 8852 2328 ? Rs 08:12 0:00 sshd: root@pts/5 root 31851 0.0 0.0 4812 1444 pts/5 Ss 08:12 0:00 -bash root 32295 0.0 0.0 2172 644 ? D 08:15 0:00 quota -v and top result Quote: 8687 root 19 0 3360 556 468 R 100 0.0 422:52.37 repquota 5817 nobody 16 0 9384 4728 1288 S 0 0.2 0:00.03 httpd 6119 root 17 0 3480 1024 764 R 0 0.0 0:00.01 top 1 root 16 0 2716 548 468 S 0 0.0 0:01.37 init 2 root RT 0 0 0 0 S 0 0.0 0:02.45 migration/0 3 root 34 19 0 0 0 R 0 0.0 0:00.05 ksoftirqd/0 4 root RT 0 0 0 0 S 0 0.0 0:00.75 migration/1 5 root 34 19 0 0 0 S 0 0.0 0:00.01 ksoftirqd/1 6 root 5 -10 0 0 0 R 0 0.0 0:04.17 events/0 7 root 5 -10 0 0 0 S 0 0.0 0:00.52 events/1 8 root 8 -10 0 0 0 S 0 0.0 0:00.00 khelper 9 root 15 -10 0 0 0 S 0 0.0 0:00.00 kacpid 35 root 5 -10 0 0 0 S 0 0.0 0:00.00 kblockd/0 36 root 5 -10 0 0 0 S 0 0.0 0:00.00 kblockd/1 37 root 15 0 0 0 0 S 0 0.0 0:00.00 khubd 56 root 16 0 0 0 0 S 0 0.0 0:48.82 kswapd0 57 root 12 -10 0 0 0 S 0 0.0 0:00.00 aio/0 58 root 12 -10 0 0 0 S 0 0.0 0:00.00 aio/1 202 root 25 0 0 0 0 S 0 0.0 0:00.00 kseriod 332 root 18 0 2356 644 560 D 0 0.0 0:00.00 quota 429 root 8 -10 0 0 0 S 0 0.0 0:00.00 ata/0 430 root 8 -10 0 0 0 S 0 0.0 0:00.00 ata/1 431 root 6 -10 0 0 0 S 0 0.0 0:00.00 ata_aux 435 root 15 0 0 0 0 S 0 0.0 0:00.00 scsi_eh_0 436 root 15 0 0 0 0 S 0 0.0 0:00.00 scsi_eh_1 437 root 15 0 0 0 0 S 0 0.0 0:00.00 scsi_eh_2 438 root 15 0 0 0 0 S 0 0.0 0:00.00 scsi_eh_3 439 root 15 0 0 0 0 S 0 0.0 0:00.00 scsi_eh_4 440 root 15 0 0 0 0 S 0 0.0 0:00.00 scsi_eh_5 461 root 15 0 0 0 0 S 0 0.0 0:00.00 scsi_eh_6 462 root 15 0 0 0 0 S 0 0.0 0:00.00 scsi_eh_7 523 root 15 0 0 0 0 S 0 0.0 0:43.22 kjournald 679 root 18 0 3516 640 560 D 0 0.0 0:00.00 quota 718 root 20 0 2648 644 560 D 0 0.0 0:00.00 quota 1017 root 19 0 2388 524 448 D 0 0.0 0:00.00 repquota 1213 root 18 0 2064 644 560 D 0 0.0 0:00.00 quota 1495 root 18 0 2124 644 560 D 0 0.0 0:00.00 quota 1678 root 18 0 3464 640 560 D 0 0.0 0:00.00 quota 1694 root 19 0 3576 640 560 D 0 0.0 0:00.00 quota It make mysql server failed and when i try to restart got this Quote: MySQL manager or server PID file could not be found! [FAILED] This issue is really strange as i never put requota to run in cronjob.
View Replies!
View Related
How Do I Make My PHP Form Script Work On My Fasthost Windows Dedicated Server
We have a Fasthosts Dedicated Windows Server and I now need to run a PHP script to enable us to use a online enquiry form. I have contact Fasthosts and the are not able to advise how to enable/use these scripts as it falls outside the support package. Does anyone know how to enable or make it work in the Matrix Control? The error i get is: The page cannot be displayed You have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed. Please try the following: * Contact the Web site administrator if you believe this directory should allow execute access. HTTP Error 403.1 - Forbidden: Execute access is denied. Internet Information Services (IIS) Technical Information (for support personnel) * Go to Microsoft Product Support Services and perform a title search for the words HTTP and 403. * Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled Configuring ISAPI Extensions, Configuring CGI Applications, Securing Your Site with Web Site Permissions, and About Custom Error Messages. * In the IIS Software Development Kit (SDK) or at the MSDN Online Library, search for topics titled Developing ISAPI Extensions, ISAPI and CGI, and Debugging ISAPI Extensions and Filters.
View Replies!
View Related
Make Php Nonexecutable In A Directory
I have an upload feature in my site.. On upload i check the file extention of the uploaded file.. But recently a person uploaded a file like xx.php.jar and as the extention is jar it got uploaded.. But when we go to the file through url it gets executed as php... So any solution how can i stop execution of php files in my upload directory
View Replies!
View Related
Unable To Make Changes To Php.ini
i'm trying to configure PHP, as I really need to turn magic quotes off and raise the memory limit. i don't want to use .htaccess - too many sites I got plesk 8.2.1, php5.1 well, to make it short, I ran 'phpinfo()' to see where php.ini was: etc/php.ini I change that, restart httpd, nothing happens. restart the server, nothing still. my changes are not applied when I run 'phpinfo()' again. i try 'locate php.ini' from the terminal, there are a few! /usr/local/psa/admin/conf/php.ini /usr/local/psa/admin/conf/php.ini.def /usr/local/sitebuilder/php.ini /etc/php.ini /etc/php.ini. /etc/php.ini.saved_by_psa /etc/php.ini.rpmsave ... plus some in the opt folder (that should be just the cache, uh?) the problem is that I tried to open all of them, to see where the hell php was getting the settings from, but none of them seem to reflect php's settings. meaning, I don't know what file I can use to configure PHP. all of them, for instance, say 'memory_limit: 32M', but php is set at 8M, and phpinfo() tells me memory_limit 8M. any idea why this might be happening? does Plesk have some tool to configure PHP that makes PHP ignore my changes?
View Replies!
View Related
IIS - Make PHP Run With .html Extension
I know nothing about IIS as I ormally use Linux / Apache so I'm not sure this is possible. I have built a site in PHP that the client now wants to move over to a IIS-hosted server. Although it's all in PHP because it was a re-build of an old static site I used ModRewrite to make all the page .html. I know IIS doesn't have a URL rewrite feature as such. What I was wondering is, is it possible to configure IIS so that a PHP page can have a .html extension?
View Replies!
View Related
Configuring Php/mysql On IIS Server
I have setup php and mysql on a windows IIS 6 server. php has installed fine and works but I have 2 problems 1. When i browse to http://localhost i get a 403 error but when browsing to http://localhost/index.php it works fine. It makes me think that the server does not know what extension to default to when doing a directory listing 2. I have phpmyadmin installed and the cfg file is set to do a 'config' authentication. That works but everytime i go to submit a form to create a new database or anything i get prompted with an HTTP user/pass. I'm not sure if this is a phpmyadmin issue or a php configuration issue
View Replies!
View Related
Installing Php On Server That Does Not Have Mysql Installed
I have two servers, one is web server, the other one is mysql server. I am installing php on web server that does not have mysql installed. when I do the follows: ./configure --prefix=/usr/local/webserver/php --with-config-file-path=/usr/local/webserver/php/etc --with-mysql=/usr/local/webserver/mysql --with-mysqli=/usr/local/webserver/mysql/bin/mysql_config --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-debug --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-sendmail=/usr/sbin/sendmail the script tells me error: configure: error: Cannot find MySQL header files under /usr/local/webserver/mysql. Note that the MySQL client library is not bundled anymore! Because mysql installed on another physical server. so how may I fix the problem? can I configure php without "---with-mysql" and "--with-mysqli" parameters? I need my php could access remote mysql server.
View Replies!
View Related
Upgrading Php & MySQL On A Plesk Win2K3 Server
I have a Win2003 dedicated server (with The Planet) that i use to host a large IPB forum site. I got it about 3yrs ago and as I was a complete newbie to server management I got Plesk CP installed so that it would take care of all the SQL, PHP and mail installation and setup in one easy go. I've since found Plesk for Windows to be a complete waste of space.. but it's still on there and has never been upgraded. I don't actually use it as a CP. Similarly PHP and mySQL have never been upgraded. Now I've got to the stage where, to upgrade the IPB forum software, I need to upgrade PHP and mySQL.. but looking at the installation, they seem to be embedded in the Plesk installation. They're inside the SWSoft/Plesk/ folders and none of the ini or config files appear to be in the places you'd expect them to be. My question - Would these upgrades be simple?? A case of just running an update package?? Or is the fact that PHP/mySQL are embedded in Plesk mean that it'll all mess up? I'm worried that a failed upgrade will knacker the forum, which is why I've delayed for so long.
View Replies!
View Related
Cheap Reliable Server That Can Run PHP/MySQL With Plesk
I currently have a decent server that runs around 10 websites, but 1 of those sites contributes around 99% of the total traffic. This large site is being moved onto a new server, leaving the remaining 9 sites rattling around on this big (and expensive!) server. So, I am now looking for a smaller server to handle the other smaller sites. They get minimal traffic - around 5k uniques a day.
View Replies!
View Related
An Otherwise Great Performing Server Now Delays Prior To Serving PHP/mysql
One of my dedicateds (Fedora 7 / apache 1.39 / php5 mysql5) has been running flawlessly but now has a strange ~4-5 second delay when serving up PHP/mysql pages such as Wordpress. I say delay because it appears to think about it for several seconds, then when the page finally begins the refresh process, everything serves up lightning fast. Latency is low, direct file downloads are faster than ever. ModSecurity is running, and accounts for about 1 second of that delay (tested with it on and off), but the other 3-4 seconds is a mystery.
View Replies!
View Related
Apache/MySQL/PHP Issue - PHP Not Loading
I've got a server that was running Apache 2.0/PHP 5.2.5 & MysQL 5.0 just fine, however I needed to upgrade to a newer version of MySQL. So I uninstalled MySQL 5.0 and installed MySQL 5.1, copied the MySQLlibs over, and recompiled Apache/PHP with easyupdate. Apache & MysQL both start/run fine without errors, however PHP files don't load. Just get black pages (HTML works fine obviously). I went ahead and updated to Apache 2.2 & PHP 5.2.6 while I was at it, but that doesn't change things. I'm not sure why uninstalling MysQL & reinstalling would break any dependencies, but looks like thats the case. Perhaps I need to reinstall some libraries? Or would it be easier just to reinstall Apache/PHP entirely? I have no data.
View Replies!
View Related
Php5 "make" : Php.h Not Found
I'm trying to recompile my php5 with eaccelerator. I get following error messages: Quote: ./configure --quiet --prefix=/usr --datadir=/usr/share/php5 --mandir=/usr/share/man --bindir=/usr/bin --libdir=/usr/lib64 --includedir=/usr/include --oldincludedir=/usr/include --with-_lib=lib64 --sysconfdir=/etc/php5/apache2 --with-config-file-path=/etc/php5/apache2 --with-config-file-scan-dir=/etc/php5/conf.d --with-exec-dir=/usr/lib64/php5/bin --with-php5-iflags="-Idir -Idir/php5/main -Idir/php5/Zend -Idir/php5/TSRM" --enable-magic-quotes --enable-libxml --enable-session --with-pcre-regex --enable-xml --enable-simplexml --enable-spl --enable-safe-mode --enable-sigchild --disable-debug --enable-memory-limit --enable-inline-optimization --disable-rpath --with-apxs2=/usr/sbin/apxs2 --enable-eaccelerator --disable-all --disable-cli --with-zlib appending configuration tag "CXX" to libtool appending configuration tag "F77" to libtool when it comes to "make" I get this: Quote: 15221662:~/install/eaccelerator-0.9.5.1 # make /bin/sh /root/install/eaccelerator-0.9.5.1/libtool --mode=compile gcc -I. -I/root/install/eaccelerator-0.9.5.1 -DPHP_ATOM_INC -I/root/install/eaccelerator-0.9.5.1/include -I/root/install/eaccelerator-0.9.5.1/main -I/root/install/eaccelerator-0.9.5.1 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /root/install/eaccelerator-0.9.5.1/eaccelerator.c -o eaccelerator.lo gcc -I. -I/root/install/eaccelerator-0.9.5.1 -DPHP_ATOM_INC -I/root/install/eaccelerator-0.9.5.1/include -I/root/install/eaccelerator-0.9.5.1/main -I/root/install/eaccelerator-0.9.5.1 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /root/install/eaccelerator-0.9.5.1/eaccelerator.c -fPIC -DPIC -o .libs/eaccelerator.o In file included from /root/install/eaccelerator-0.9.5.1/eaccelerator.c:28: /root/install/eaccelerator-0.9.5.1/eaccelerator.h:31:17: php.h: No such file or directory /root/install/eaccelerator-0.9.5.1/eaccelerator.h:32:18: zend.h: No such file or directory /root/install/eaccelerator-0.9.5.1/eaccelerator.h:33:22: zend_API.h: No such file or directory /root/install/eaccelerator-0.9.5.1/eaccelerator.h:34:29: zend_extensions.h: No such file or directory make: *** [eaccelerator.lo] Fehler 1 the files php.h and zend.h, zend_API.h etc. are in subfolder of /usr/include/php5 that's why I have this option in the configure line: Quote: -with-php5-iflags="-Idir -Idir/php5/main -Idir/php5/Zend -Idir/php5/TSRM"
View Replies!
View Related
Tsearch Functions
It seems that some tsearch2 functions are inaccessible such as a set of rank() funcs. The default definition for one of the functions is shown in the following snippet of code: CREATE OR REPLACE FUNCTION rank(real[], tsvector, tsquery) RETURNS real AS '$libdir/tsearch2', 'rank' LANGUAGE 'c' IMMUTABLE STRICT; I've tried to execute this script shown above and got the following error: ERROR: permission denied for language c rpm -qa | grep postgresql postgresql-devel-8.3.5-1PGDG.rhel4 postgresql-server-8.3.5-1PGDG.rhel4 postgresql-8.3.5-1PGDG.rhel4 postgresql-libs-8.3.5-1PGDG.rhel4 postgresql-plpython-8.3.5-1PGDG.rhel4
View Replies!
View Related
Some Functions Is Disabled.
My vps managed service has disabled this functions in php.ini : Code: exec, shell_exec, system, passthru,popen, virtual, show_source, pclose I asked them why these disabled and the answer was "because of security reasons" . So for example a Joomla installation with working RSS needs some of these functions and when I install vary php programs I face some strnge problems that I think it may be from these disabilities . So my question is could these functions usually be disabled ? and may I delete them from disable_functions of php.ini
View Replies!
View Related
How To Enable These Functions
My site is running with php scripts It's work fire at bluehost but get some error when i move to new VPS . Quote: Warning: fputs(): supplied argument is not a valid stream resource in /home/xxx/public_html/home/admin/update_categories.php on line 171 Warning: fclose(): supplied argument is not a valid stream resource in /home/xxx/public_html/home/admin/update_categories.php on line 173 Warning: fputs(): supplied argument is not a valid stream resource in /home/xxx/public_html/home/admin/update_categories.php on line 225 Warning: fclose(): supplied argument is not a valid stream resource in /home/xxx/public_html/home/admin/update_categories.php on line 227 I want to enable these functions fopen(),fputs(),fclose(),fputs(),fclose() but i don't know how to enable them .Could you tell me details
View Replies!
View Related
DNS Functions
about DNS functions. I know what the DNS is, but some part of it I am confused. Here is situation. AAA.com - Master BBB.com - Reseller Now, BBB's clients point their DNS to ns1.BBB.com, ns2.BBB.com However, when I check BBB's whois, it shows BBB has ns1.AAA.com, ns2.AAA.com So, BBB's clients know BBB is reseller. How can I show ns1.BBB.com, ns2.BBB.com? I believe it's DNS function, right? so I tried to edit DNS following: Domain TTL Recordtype BBB.com 86400 NS ns1.BBB.com (default was ns1.AAA.com) BBB.com 86400 NS ns1.BBB.com (default was ns2.AAA.com) Is it correct? however, I checked BBB's whois, but it's still showing up ns1.AAA.com, ns2.AAA.com
View Replies!
View Related
How To Make Own Server
i want to make one web site i want to show there some movies same like youtube but my video will on media player .i want to make own server for hosting and i need more than 1tb storage .i don,t know which thing i need for own server .i just found there these kind of things Netgear ReadyNAS Duo RND2150 500GB i don,t know it will work for me or not
View Replies!
View Related
How Can I Make Sure If My Server Is Hacked?
the data center tell me we use a lot of bandwidth, and i check from the mrtg they offer to check,it reach about 80M, my server really used a lot of bandwidth, but i login whm to check the bandwidth of accounts, and it looks likely my customers did not use a lot of bandwidth, i worry if my server is hacked to attack others or other things, how can i check this?
View Replies!
View Related
How To Make Mod_rewrite Work On New Apache Server
we've been running our software on apache 1.3 for years with no problems. We have a new server running apache2 and now none of our mod_rewrite works. Is there something extra that needs to be done with apache 2 to get mod_rewrite working? The module is definitely loaded (first thing I checked). If we turn on allowOverride from None to All in the httpd.conf we get completely blank pages. Our regular php pages work fine with allowoverride set to none, but they all break when it is set to all. Please help. This is the second time we have run into this on apache 2 servers.
View Replies!
View Related
Would A Vps Make A Good Gaming Server?
Would a vps make a good gaming server? I was thinking about marketing this type of service. I have no experience in implementing a gameing server so not sure about the requirements Servers are hosted with rapidswitch in London with 1000mbps connectivity and low latency Hosts are running vmware vsphere.
View Replies!
View Related
How To Make An Image Of A Server And It's Current Configuration
I have had 2 drives fail on me in 2 weeks, and had to completely redo my server's configuration and security. I would like to tell my tech to make an image of the current server, just so that the firewall and settings are all saved, and can be restored if this happpens again. How should I go about doing this, and what can I tell my tech to do so that he does this in the best, most efficient way? I have 2 live websites on there now (not an insane amountt of traffic), so I am assuming the sites current state will be in the image, which I don't mind, as I can just restore a recent site backup if the site happens to go down again. Please let me know your thoughts! ( i am assuming i should try to delete as much junk off of the server as possible to make the image smaller)
View Replies!
View Related
Make Cpbackup Ignore Server Load
My server load on my server is very high, but my server is not slow, my memory usage is fine, my CPUs are handling everything fine so it's not really a problem... except I've got a lot of "sleeping processes" which seem to increase the server load but not affect the server really. My problem is, cpbackup refuses to run when it decides the server load is too high. So, is there a way to make it run no matter what the server load is? Because I do want backups to run again... The server load never goes down because these things are always running, so running it at early hours of the morning doesn't make a difference.
View Replies!
View Related
Php/mysql
I´m having this strange problem: Code: Warning: mysql_connect(): Access denied for user 'qualquer'@'localhost' (using password: NO) in /home/qualquer/public_html/teste.php on line 3 I cannot connect to the database because: Access denied for user 'qualquer'@'localhost' (using password: NO) on cpanel / mysql databases: Code: Current Databases: qualquer_teste Users in teste qualquer_teste (Privileges: ALL PRIVILEGES) Connection Strings PHP$dbh=mysql_connect ("localhost", "qualquer_teste", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("qualquer_teste"); And teste.php: Code: <? $dbh=mysql_connect ("localhost", "qualquer_teste", "teste123") or die ('I cannot connect to the database because: ' . mysql_error()); ?> I´m using php 4.4.4 and mysql 4.1.21: mysql Ver 14.7 Distrib 4.1.21, for pc-linux-gnu (i686) using readline 4.3
View Replies!
View Related
Disable Functions :: Show_source, System, Shell_exec, Passthru, Exec ...
How to disable those functions on VPS with Lxadmin and CentOS 5 show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open, base64_decode, base64_encodem, proc_terminate
View Replies!
View Related
Too Many DNS (Domain Name Server) Requests. How To Make It Lower ?
I host my DNS with DNSmadeeasy.com , I noticed that I have daily more than 350.000 DNS requests for main domain, This domains got about 80.000 uniqes/day, so this is strange how can there be 350.000 DNS requests/day. Seems that I'll go over the quota because of this. The TTL for all domains is set to 86400. Is there a way to discover how its possible ? And also is there a way to do something to make this number lower (DNS requests)
View Replies!
View Related
What Domain Name Server (DNS) Changes To Make When Moving Hosts?
I have example.com as a reseller account hosted on a shared server. I have ns1.example.com and ns2.example.com on that server and client domains use these nameservers. I want to move to a VPS for more control and so I have acquired vps.example.com. This also has vps_ns1.example.com and vps_ns2.example.com with it. Can I move everything to the VPS? Assuming that I move the files over, if I simply changed the DNS of example.com to point to nameservers vps_ns1(and 2).example.com, what would happen? Have I made it over complicated for me to understand, and it's actually a lot easier than I think? Or have I shot myself in the foot by using vps.example.com as the name for the VPS? I am using cPanel/WHM for both servers.
View Replies!
View Related
Make Downloading Files From My Site/server Faster
Ive been recieving some complaints/feedback that the download speed on my site is too slow. I test it myself and at night i download at about 60k/s, late at night, mornings its around 300kb/s Im guessing my site is basically getting high traffic and load issues in the evenings. (average daily bandwidth is around 200-300gb) So basically i need to rectify this pronto. What are the possible solutions? i thought if i bought a second cheaper server that could step in when the load gets too much for my primary server this could help out the speeds. Am i correct, are there cheaper ways of speeding things up?
View Replies!
View Related
PHP, MySql, 10 GB+ Storage
I've been with imhosted for a few years now. I have had horrible experiences with them with a lot of outages and lost data (2 days ago lost 6 months of data, they deny anything happened and have no backups). I have been meaning to change hosts for a long time now but just haven't got the energy to wade through google trying to guess which have good SEO and which are the real deal. Any recommendations for a host with the following features would be appreciated: - PHP - dedicated IP that isn't blacklisted - fairly fast PHP processing time for some CPU intensive scripts - MySQL (just a few needed) - IMAP Quality of support and uptime are important and I would easily pay an extra $10 / month for it. My budget is up to $25 / month or so.
View Replies!
View Related
(mysql/php/apache)
I recently have got a VPS and it needs optimizing. Please would someone look at my specs and help me set some good values for a website that runs a fairly small forum. Plesk 8.1.1 Guaranteed RAM 384MB Maximum RAM 768MB RedHat Enterprise 4 AS MySQL 4 PHP 4 Apache2 my.cnf Code: [mysqld] set-variable=local-infile=0 datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 skip-bdb set-variable = innodb_buffer_pool_size=2M set-variable = innodb_additional_mem_pool_size=500K set-variable = innodb_log_buffer_size=500K set-variable = innodb_thread_concurrency=2 [mysql.server] user=mysql basedir=/var/lib [mysqld_safe] err-log=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid skip-bdb set-variable = innodb_buffer_pool_size=2M set-variable = innodb_additional_mem_pool_size=500K set-variable = innodb_log_buffer_size=500K set-variable = innodb_thread_concurrency=2 httpd.conf Code: ServerTokens OS ServerRoot "/etc/httpd" PidFile run/httpd.pid Timeout 120 KeepAlive Off MaxKeepAliveRequests 100 KeepAliveTimeout 15 <IfModule prefork.c> StartServers 2 MinSpareServers 1 MaxSpareServers 5 ServerLimit 10 MaxClients 10 MaxRequestsPerChild 4000 </IfModule> <IfModule worker.c> StartServers 2 MaxClients 10 MinSpareThreads 1 MaxSpareThreads 4 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule> Listen 80 LoadModule access_module modules/mod_access.so LoadModule auth_module modules/mod_auth.so LoadModule auth_anon_module modules/mod_auth_anon.so LoadModule auth_dbm_module modules/mod_auth_dbm.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule ldap_module modules/mod_ldap.so LoadModule auth_ldap_module modules/mod_auth_ldap.so LoadModule include_module modules/mod_include.so LoadModule log_config_module modules/mod_log_config.so LoadModule env_module modules/mod_env.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule expires_module modules/mod_expires.so LoadModule deflate_module modules/mod_deflate.so LoadModule headers_module modules/mod_headers.so LoadModule usertrack_module modules/mod_usertrack.so LoadModule setenvif_module modules/mod_setenvif.so LoadModule mime_module modules/mod_mime.so LoadModule dav_module modules/mod_dav.so LoadModule status_module modules/mod_status.so LoadModule autoindex_module modules/mod_autoindex.so LoadModule asis_module modules/mod_asis.so LoadModule info_module modules/mod_info.so LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule vhost_alias_module modules/mod_vhost_alias.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule dir_module modules/mod_dir.so LoadModule imap_module modules/mod_imap.so LoadModule actions_module modules/mod_actions.so LoadModule speling_module modules/mod_speling.so LoadModule userdir_module modules/mod_userdir.so LoadModule alias_module modules/mod_alias.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule cache_module modules/mod_cache.so LoadModule suexec_module modules/mod_suexec.so LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule file_cache_module modules/mod_file_cache.so LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule cgi_module modules/mod_cgi.so Include conf.d/*.conf User apache Group apache ServerAdmin root@localhost UseCanonicalName Off DocumentRoot "/var/www/html" <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory "/var/www/html"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>
View Replies!
View Related
Php, Lighttpd And Mysql
I´m using cpanel with the latest mysql Ver 14.7 Distrib 4.1.22, for pc-linux-gnu (i686) using readline 4.3. I´m trying to access MySQL from lighttpd, but I´m getting this error: Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in /home/jkl/public_html/login.php on line 9
View Replies!
View Related
|