Loading Php Extension Dynamically

Jul 25, 2009

I realize the title isn't clear enough, but that's the closes to my question

What I basically want to know is if its possible to add pgql support for PHP without rebuilding PHP (running easyapache). Currently all standalone phppgadmin instaces return:

Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option.

Is it possible to load the pgsql extension without rebuilding, like you'd do with zend for example.

View 2 Replies


ADVERTISEMENT

Php4 Extension (eaccelerator) Not Loading Anymore

Mar 7, 2007

Server :
pentium IV 3.0 Ghz
debian 3.1
kernel 2.6
apache2
php4.3.10

Some months ago I installed php4 on this server , and added eaccelerator.net , mostly with this site as guide. Everything worked fine.

Few days ago I realize I hadn't updated this server for a while. I run 'apt-get update' and 'apt-get dist-upgrade' . A whole lot of things get updated, and after that I perform a reboot, as adviced by the update script.

The next day I experiment a bit with the profiler of xdebug . I manage to install it , play around with the results, but decide to uncomment it from php.ini again as it is not that helpfull to me and it makes quiet big log files too.

Today I notice this server is getting very big loads. Normally on peak evenings it would float around 2-4 , with sometime jumps to 10-12 but always quickly recovering and working well. But on this evening it kept rising, stayed around 30-60 for most of the time, and even hit up to 85 . It only lowers when the busy hours are really over. So I look around everywhere , and then after a few hours I notice that eaccelerator is not visible in phpinfo(); anymore. This is the only weird thing I could find, and I assume this caused a big difference on the performance.

I dont know why exactly it went away. Maybe it was the server update, wich touched a lot of files. But I thought it was not supposed to update any configuration files, not without warning at least. I could also have been the xdebug script, wich also uses 'phpize' to install and also required editing in php.ini . I really wish I noticed the lack of eaccelerator after the update but before trying xdebug.

So I try to install eaccelerator again. Unpack from source, phpize, make, etc etc, just as last time. I edit php.ini to make sure the load command and settings of eaccelerator are still there and reload apache. I check phpinfo(); , but nothing changes. I try it all again to be sure, but still nothing. I check the location of the .so files, yes they are still there and the rights of the files look ok.

I edit php.ini again and uncomment 'extension=mysql.so', and reload apache. I notice a mysql error on my site as expected. So that means I'm really editing the right php.ini file and that I can influence the extensions that are loaded. I add the mysql extension again and reload apache.

I load an old php.ini backup file, from right after first installation of this server. The eaccelerator settings are there too already, but if I try it and reload apache : no difference.

I reboot my server again, because .. well sometimes it helps. But not with this. phpinfo(); still says no eaccelerator.

I check another server, exact same specs, same php+eaccelerator installation on the same day as the first one. I compare versions of apache/php/php extensions/zend extensions and all numbers I can find. Everything still looks the same, except server 1 does not have eaccelerator and server 2 still has.

I'm shomehow out of things to check now. I'm pretty sure eaccelerator has a big influence on the performance of my heavy php site, and I want it back. Everything looks ok, the files are there, the settings in php.ini are there, it should work ... but it doesnt. No errors or warnings anywhere, just phpinfo(); saying that eaccelerator has not been loaded and the high loads are confirming this.

It will either be a very complicated solution, or a very simple one, but I'm just looking over it. Does anyone has any tips on where to look or what to try ? Thanks.

View 4 Replies View Related

Creating Subdomains Dynamically

Feb 28, 2007

I have basic Html and webdesign skills other than that zilch

I am working on my assignment for uni. and wanted to know if I can create multiple sub domains when I am hosted with a webhost.

I want to be able to do the following:users can sign up and get a subdomain of their choice.

users are allocated a limited webspace

The access to file types need to be controlled. In the sense that users can only upload/download certain file types like html, htm, jpg, gif, zip etc.

Users can have forms that work only within their subdomain.

for example the domain name is www.webworld.com

the user signs up for [url] where "mysite" is the subdomain.

the user can have a form at [url]

This form should not affect the other subdomains hosted by users. Just in case someone screws up the entire site should not be down.

Is this possible? if yes, any pointers on how I can go about getting this done?
Would the webhost help with setting this up?

Any good webhost I should consider for such a setup? Any other things I should consider like data transfer / bandwidth Would this be a very expensive affair?costs?

View 9 Replies View Related

Apache :: Cache Whole Dynamically Generated Webpage?

Oct 21, 2014

i already setup caching for html, images, css, js etc. but my pages are dynamically generated by CMS like wordpress and similar.Is there any apache module or any clever way how i can cache whole dynamically generated page on my server?I mean like i have 6GB ram free, so i would like to dedicate like 3gb for this cache.

View 2 Replies View Related

Videos Not Loading/ Loading Very Slow

Dec 5, 2008

I have been having soooo many issues with this new server

It is nothing against my host; but now the videos aren't loading or loading so slow

What could be the issue? It would have to be a server issue, correct?

The site is nsfw but it is ftw (hint hint) , it is an adult site and I don't know if

View 11 Replies View Related

Plesk API Apache Restart Interval - Dynamically Creating Subscriptions

Feb 12, 2015

I'm using PHP cURL with the Plesk API to dynamically create Subscriptions. The problem I'm having is that the Apache server tends to reset before the response is returned, ultimately interrupting the connection.

I found a Plesk setting to define the Apache restart interval. I set it to 120 seconds, which I thought solved the issue, but I'm still having unreliable connection issues.

The request to create/remove a subscription always completes, but it's the response that I'm struggling to have returned.

View 2 Replies View Related

.mil Extension

Apr 30, 2008

we have a client who needs a dedicated server provider that is capable of hosting a military .mil extension web site.

View 5 Replies View Related

Frontpage Extension

Apr 25, 2008

I have installed Front page extension but when i access the page its gives the error :-

FrontPage Run-Time Component Page

You have submitted a form or followed a link to a page that requires a web server and the FrontPage Server Extensions to function properly.

This form or other FrontPage component will work correctly if you publish this web to a web server that has the FrontPage Server Extensions installed.

Click the <Back> arrow to return to the previous page.

View 2 Replies View Related

Installing PHP RAR Extension

Jun 26, 2008

I wanted to install PHP RAR extension:

to compress & decompress rar files. I installed it on the server & added the extension=rar.so to php.ini files.

But still, when I run a rar function like rar_open(), I get an error :

Fatal error: Call to undefined function rar_open()

I tried installing the extension again through SSH, but it says "Nothing to Install".

View 4 Replies View Related

GD Library & PHP Mbstring Extension

Jun 11, 2009

I install drupal and i get this errors:

1. GD libraryNot installed
The GD library for PHP is missing or outdated. Please check the PHP image documentation for information on how to correct this.

2. Unicode libraryStandard PHP
Operations on Unicode strings are emulated on a best-effort basis. Install the PHP mbstring extension for improved Unicode support.

I have on my server:

Package gd-2.0.33-9.4.el5_1.1.x86_64 already installed and latest version
Package gd-2.0.33-9.4.el5_1.1.i386 already installed and latest version

but i don`t know why drupal say to me it`s not installed. Need to active the GD Library?

How can i fix the problem with php mbstring and GD Library?

I run the yum commands:

yum install gd
yum install php-gd
yum install php-mbstring

It`s not working! :|

The os is centos 5.3 64. I have cPanel too.

View 11 Replies View Related

IIS - Make PHP Run With .html Extension

Dec 12, 2008

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 6 Replies View Related

How Do I Remove Suhosin-0.9.24 Extension

Dec 11, 2008

got suhosin-0.9.24 extension on my centos 5.2 server, the patch has NOT been applied.
how do i remove/uninstall suhosin-0.9.24?

View 3 Replies View Related

Compiling PHP Zip Extension Onto A Mac That Has MAMP Pro

Mar 10, 2008

compiling the zip extension for my MAMP installation. I used this tutorial here (using phpize):

[url]

All is well.. but when I run make test it gives me this:

Warning: PHP Startup: Invalid library (maybe not a PHP library) 'zip.so' in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/imap.so' - (null) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/yaz.so' - (null) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/mcrypt.so' - (null) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/gettext.so' - (null) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/pgsql.so' - (null) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/pdo_pgsql.so' - (null) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/pdo_mysql.so' - (null) in Unknown on line 0

Warning: PHP Startup: Invalid library (maybe not a PHP library) 'zip.so' in Unknown on line 0

Warning: PHP Startup: Invalid library (maybe not a PHP library) 'zip.so' in Unknown on line 0

Warning: PHP Startup: Invalid library (maybe not a PHP library) 'zip.so' in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/imap.so' - (null) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/yaz.so' - (null) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/mcrypt.so' - (null) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/gettext.so' - (null) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/pgsql.so' - (null) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/pdo_pgsql.so' - (null) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'modules/pdo_mysql.so' - (null) in Unknown on line 0

Warning: PHP Startup: Invalid library (maybe not a PHP library) 'zip.so' in Unknown on line 0

Warning: PHP Startup: Invalid library (maybe not a PHP library) 'zip.so' in Unknown on line 0

So, from what I see there are two problems:

1. compiling the zip.so fails...

2. Some directories are wrongly set, because my extension .so files reside in /mamp/bin/php5/lib/php/extensions/no-debug-non-zts-20050922/

I see no "modules" in there, so..

View 3 Replies View Related

How To Hide The Page Extension

Jan 6, 2007

The problem is that i want to hide the php extension from the visitor so that no one knows what scripting language lies beneath..

If I use the following solution {

I think I should write snippets of php codes inside html files.. so i want apache to go through each html file to see if there are php code or not..

I write the following mime types with cpanel:

application/x-httpd-php .php .adp
application/x-httpd-php .php .htm
application/x-httpd-php .adp
}

Then {
Error appears when I go to any page in the site "Internat Server Error"
}

Else if {
I can use .htaccess to do the same effect in a particular directory
}

Then {
The same error appears "Internal Server Error"
}

Else {
What can I do?
}

View 0 Replies View Related

Mod_rewrite Strip Off Php Extension

May 15, 2008

I am trying to figure out how to use mod_rewrite to make my php url's friendly. I have read a few articles but none seem to do what I want.

Here is what I want:

/login.php -> /login
/home.php -> /home
/users/update_profile.php -> /users/update_profile
/users/update_profile.php?id=343242 -> /users/update_profile/343242

Basically just strip off the .php extension, so it seems like php files are actually folders.

View 0 Replies View Related

Install CURL Extension

Jun 18, 2007

is it possible to install the cURL extension on a VPS with root access ?

View 5 Replies View Related

Adding Extension To Apache Config

Apr 20, 2009

I run a Perl/CGI script from a Web page to download some files located in a Linux server. When I click from a Windows XP on the link of the file to download via this Web page (IE), a dialog box will be displayed to ask me to "Open" or "Save" the file (.txt, .doc, .xls,...) but for some extensions like ".dat" or ".asc", the dialog box ask me to save it only and I have not an "Open" button.

I tried to configure Apache to add these extensions as text/plain by adding these lines in http.conf:

AddType text/plain .asc .txt .dat

How can I add these extensions (.dat, .asc and other extensions) to Apache configuration to be able to open it with Textpad or Notepad?

I hope that the users will be able to open it with Notepad or TextPad without saving it. I know that we can add this type directly in the stations XP but I have a lot of users and I cannot manage that. I hope to perform it from the server. I think something is wrong or missing in my AddType, AddHandler or LoadModule?

View 5 Replies View Related

Enabling PDO W/ MySQL Extension On CentOS

Jul 11, 2009

I have a server running CentOS with PHP 5.2 and I'm trying to figure out how to enable PDO with the MySQL extension. I had thought PDO always came enabled with 5.2, but that apparently isn't so with this box. I am only familiar with Ubuntu/Debian, and am not sure how things are done on CentOs.

View 2 Replies View Related

Does PrecisionEffect Really Support Frontpage Extension

Aug 9, 2008

I was always told by their customer service that FE was supported. Always means before I placed an order, before I transferred the host and after the DNS propogation.

But FE didn't work for me! After more than 20 emails exchanged under the same tickent #, PrecisionEffect said 'look into this a bit more' then kept silent for more than 4 hours, not as normal as their outstanding response time in minutes.

My client was getting panic. She was losing the business because the web site coulnd't work properly without FE enabled.

I had to return to our old host.

View 9 Replies View Related

Doesn't Appear To Be A Valid Zend Extension

Jan 28, 2008

I have probelm when I run this command :

[root@server~]#tail-f/etc/httpd/logs/error_log

I have this output :

doesn'tappeartobeavalidZendextensiondoesn'tappeartobeavalidZendextension...

this is my php -v :

[root@server~]#php-vPHP5.2.5(cli)(built:Jan23200812:42:14)Copyright(c)1997-2007ThePHPGroupZendEnginev2.2.0,Copyright(c)1998-2007ZendTechnologieswiththeionCubePHPLoaderv3.1.32,Copyright(c)2002-2007,byionCubeLtd.,andwithZendExtensionManagerv1.2.0,Copyright(c)2003-2007,byZendTechnologieswithSuhosinv0.9.22,Copyright(c)2007,bySektionEinsGmbHwithZendOptimizerv3.3.0,Copyright(c)1998-2007,byZendTechnologies[root@server~]#

View 7 Replies View Related

How To Enable And Install Php Soap Extension

Mar 24, 2008

I just get my server today. I have a scipt is require php soap extension. I don't what is teh step and how to install

My serrver is preinstall php 5. May I know how to enable and install php soap extension?

View 6 Replies View Related

APF Loading: Is Everything OK

May 20, 2009

i am getting iptables errors when reloading APF, and after that APF takes a few seconds to move thru each line in deny_hosts.rules (and also other rules files). is this normal? if i have a very long list of deny rules wouldnt this delay loading other rules?

(running centos/virtuozzo 2.6.18-028stab062.3)

Code:
/etc/apf/apf -r
apf(7689): {glob} flushing & zeroing chain policies
apf(7689): {glob} firewall offline
apf(7721): {glob} activating firewall
apf(7761): {glob} determined (IFACE_IN) venet0 has address 127.0.0.1
apf(7761): {glob} determined (IFACE_OUT) venet0 has address 127.0.0.1
apf(7761): {glob} loading preroute.rules
iptables: Unknown error 18446744073709551615
iptables: Unknown error 18446744073709551615
iptables: Unknown error 18446744073709551615
iptables: Unknown error 18446744073709551615
iptables: Unknown error 18446744073709551615
iptables: Unknown error 18446744073709551615
iptables: Unknown error 18446744073709551615
apf(7761): {resnet} downloading http://r-fx.ca/downloads/reserved.networks
apf(7761): {resnet} parsing reserved.networks into /etc/apf/internals/reserved.networks
apf(7761): {glob} loading reserved.networks
apf(7761): {glob} loading bt.rules
apf(7761): {glob} loading deny_hosts.rules
apf(7761): {trust} deny all to/from 124.166.250.250
' not found.3.5: host/network `124.166.250.250
Try `iptables -h' or 'iptables --help' for more information.
' not found.3.5: host/network `124.166.250.250
Try `iptables -h' or 'iptables --help' for more information.
apf(7761): {trust} deny all to/from 200.233.149.110

View 3 Replies View Related

Auth_imap: Required IMAP Extension Not Found.

Jul 2, 2008

I am having a hard time tracking this down. Its a Cpanel/WHM server; 64 bit; Centos 5.2 server

In easyapache i have selected imap to be compiled in...

Problem:

When logging into Horde it get the following

A fatal error has occurred
Auth_imap: Required IMAP extension not found.
Details have been logged for the administrator.

php -m | grep imap

Shows nothing loaded. I am completely stumped with this, can anyone help ?

Also its not just Horde, but any PHP code using imap, its almost as if its not compiled in at all.

View 2 Replies View Related

Apache On OSX Is Adding PHP Extension Within URL - Breaking Mod Rewrite

Sep 23, 2013

I am setting up my work environment on OSX (a new macbook), and my previous setup is a Windows 7 PC. I've found that mod_rewrite is no longer working, and have found some clues why:

Typically, I want to take [URL] ....

which by mod_rewrite will get turned into [URL] ....

so far so good, and this works fine on the Windows PC.

However, I believe Apache on my macbook has something configured differently, as since it knows about the file catalog.php, it appears to update [URL] ....

BEFORE the mod_rewrite happens. Hence the mod_rewrite fails.

I am basing this on having enabled RewriteLog in httpd.conf.

Found the fix. Per stackOverflow - turns out adding the following to the .htaccess file:

Options -MultiViews stops this behavior.

Source: [URL] ....

View 1 Replies View Related

Plesk 11.x / Linux :: Adding Mcrypt Extension To PHP?

Feb 11, 2013

I would like to install mcrypt extension on my server and i don't find procedure .

My version is :

OSCentOS 6.3 (Final)
Version de Parallels Panel11.0.9 Mettre à jour #36, dernière mise à jour à Fév 8, 2013 06:32 PM

View 19 Replies View Related

Plesk 11.x / Windows :: Additional Directives - PHP Extension

Sep 23, 2013

I'm running PP 11.0.9 on Windows 2008 R2 and I've tried to add a PHP extension to the additional directives box of the PHP settings page (domain), however this has no effect on PHP. If I add the extension manually to PHP.ini then it works fine, but adding it to the "additional directives" box does nothing - I've confirmed this on 3 different servers, it does the same on all of them.

I did some searching and it looks like others have this problem too: [URL] ....

View 3 Replies View Related

Plesk 12.x / Linux :: Watchdog Extension Missing?

Aug 1, 2014

I want to Reinstall Watchdog(RKHunter), but i don`t find Watchdog in Extensions.

Is it no longer available ?

View 1 Replies View Related

Plesk 12.x / Linux :: VPN Extension - Installation Fails

Nov 13, 2014

Installation of the Plesk VPN extension reproducible fails on Debian Wheezy

Plesk 12.0.18 Update #24
Debian 7.7 Kernel 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3+deb7u2 x86_64 GNU/Linux

Steps to reproduce:

Plesk Panel > Updates and Upgrades > Install "Plesk VPN extension"
Green Message "All operations with products and components have been successfully completed."
Going back from Upgrade window to Plesk Panel Home

[Code] .....

What I already have tried:
Shell > apt-get install psa-vpn

Getting error mossage:

Setting up psa-vpn (12.0.18-debian7.0.build1200140606.15) ...
ERROR: could not insert 'tun': Unknown symbol in module, or unknown parameter (see dmesg)

Shell > modprobe tun
ERROR: could not insert 'tun': Unknown symbol in module, or unknown parameter (see dmesg)

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved