Set Php_admin_flag With Apache Env Var In Apache Config
SetEnvIf Server_Addr 192.168.1.10 HTTP_X_PHP_ERRORS_DISPLAY=on
php_admin_flag display_errors HTTP_X_PHP_ERRORS_DISPLAY
is something like this possible? In other words, can I set a php ini var in apache config from an apache env var?
View Complete Forum Thread with Replies
Related Forum Messages:
Config For PHP/Apache
Im currently trying to configure apache to accept php, i have looked at several tutorials on the internet, all of which suggest different ways of doing it but also have some common steps. One of these is to include the line: LoadModule php4_module "C:/php/php4apache2.dll" into the httpd.conf file. However when i try and restart apache it says: "The requested operation has failed" I have checked that the extention is correct many times and it still wont work. Whenever i comment this line out, i.e. #LoadModule . apache will connect again when i restart it. The versions i am using are: PHP: 4.4.7 Apache: 2.2 Does anyone know why this error may be occuring or can someone point me in the right direction, ive been trying to solve this for a number of days now and appear to be getting no further forward.
View Replies !
Headers And Apache Config
I geuss I don't understand includes or at least how to use them. I have a value called $cart_insurance which I calculate in shipping.php. I want to get this value in a module called checkout.php. Both modules have a common module included in each of them called: store_lib.php Can I not just reference $cart_insurance in checkout.php?
View Replies !
XAMMP Apache Config Issues
I have installed XAMMP (for windows, used the installer version). Apache and mySQL run fine according to the control panel. I can bring up //localhost/ with no issues, but when I pull up a simple Hello World .php page (source from w3 tutorial, so no issues there) I see nothing. Searched on the PHP site, they had it in their FAQ, said to check to see if the source could be view from browser, it could. They go on to say that there are issues with the server config and to fix it. After searching high and low (maybe I've missed something) I cannot find a solution.
View Replies !
Apache 2.0 And Php
I was wondering if anyone has had any luck getting php to compile and work with apache 2.0. i use apache tool box to compile it but they dont have support for it yet. if anyone has compiled and tested it with the previouse beta's or rc's any info would be awesome!!!
View Replies !
CGI Vs Apache
Is there any difference on how PHP is wrote based on the server type? I have been using PHP on an Apache module and I just started using a CGI module but I am getting a lot of errors, mainly "Variable undefined" and when I tried to add records to a MYSQL database, I received this error: "CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers.
View Replies !
Php 4.2.0 And Apache 1.3.24
Why can't I run apps like phpnuke, postnuke, xoops, phpwebsite, etc.? I have tried them all seriously and always get the same effects. When I try to install either of them the pages never change even with register_globals On. Was I suppose to upgrade apache to 2.0.35 for compatibility issues?
View Replies !
Php 5.04 With Apache 2.0.54
I can build php 5.04 with apache 1.33 statically with the apache configuration option: --activate-module=src/modules/php5 How can I build php 5.04 with apache 2.0.54 statically? It seems that the information I have only shows how to build php as a dynamical module of apache.
View Replies !
PHP And Apache 2.0
I am installing Apache 2.0 with PHP. On top of PHP I plan on installing netjuke. I am having problems and have a strange issue: the following works: <? phpinfo(); ?> but the following does not worl. the source code appears on the page as if it is not being processed. <?php phpinfo(); ?>
View Replies !
Apache In Win Xp
I already installed Apache, Mysql and PHP (last version for each one) into my system running Win Xp. “All running ok” When I run scrip “A” my data lost; it didn’t print. Code:
View Replies !
Apache + PHP
I have installed Apache apache_2.0.52-win32-x86-no_ssl.msi and PHP php-4.3.10-Win32 on windows 2000 professional . I also get success in installeing both of them , but when i am trying to run apache C:/localhost on my mozilla or internet explorer browser , i am not able to get the default page, i don't know why its not working. I am a new learner of PHP and for the learning process i want to download it as soon as possible.
View Replies !
Anyone Using HP-UX With Apache, PHP And OCI?
I'm searching for someone who's using HP-UX 11.x with Apache and PHP with the OCI8 extension (for accessing Oracle). I'm having some issues while running this and would like to exchange some information. my environment is: HP-UX 11.11 Apache/2.0.49 from the hpuxwsApache package PHP 4.3.4 as included in that package OCI8 as included in that package (I also tried Apache 2.0.52 with PHP 4.3.8 but that didn't make a difference) when I'm enabling OCI8, Apache works fine, but the commandline PHP fails (and I need that as I have background processes, generating some reports). The error is: PHP Warning: Unknown(): Unable to load dynamic library '/opt/hpws/apache/php/lib/php/extensions/oci8.sl' - Can't find path for shared library: libclntsh.sl.8.0 in Unknown on line 0 after finding http://bugs.php.net/bug.php?id=13151 I managed to solve this by setting: export LD_PRELOAD=$ORACLE_HOME/JRE/lib/PA_RISC/native_threads/libjava.sl and now also PHP from the commandline works fine as well. but I've no clue if this is a good solution or there's a better way. but now I'm running into an issue with LDAP: ldap_bind() fails from a PHP script run from the commandline, while exactly the same code works perfectly fine through Apache - and it also works fine from the commandline when removing the LD_PRELOAD setting - but that removes the OCI8 functionality again... so I'm feeling stuck having the choice between LDAP and OCI8 - but my scripts uses both... (FUP to comp.sys.hp.hpux)
View Replies !
Apache 2.0.48 And PHP 4.3.4?
I'm currently running Apache 1.3.27 on Debian Woody with a PHP backport (version 4.3.4), together with Apache-SSL 1.3.27. I have been considering upgrading to Apache 2.0.48 which I now believe is recommended for production. However what is the status of the interoperability with PHP? I have read on the PHP site that it is not recommended to run Apache 2.0 with PHP but does this refer to the latest revisions or the initial release?
View Replies !
Help With PHP And APACHE
I'm using PHP and Apache. How do you configure Apache so that it allows the use of php and session data. I get the following error: Warning: session_start(): open(/tmpsess_ed0b0c6b9b2d32d64172373bd8a6bcaf, O_RDWR) failed: No such file or directory (2) in c:orcl_asapacheapachehtdocsforumuserauth.php on line 5 On my php.ini file, i specifiy that location of for the session data to session.save_path = "C:/temp"
View Replies !
PHP And Apache
I am trying to set up a Web site I am building so that it works like this: When someone goes to: www.runningback.com/reg The "reg" get's passed into index.php as an argument and index.php is executed. I can pick up "reg" in index.php using $_SERVER['PATH_INFO']. But right now what happens is the url is not recognized by Apache 1.3 and so gives me an error. If I call www.runningback.com it calls index.php just fine, but not when I want to pass in an augument. I'm trying to make user friendly urls.
View Replies !
Apache 1.3 + PHP 4.x + SSL
I've never implemented a secure server before - and I now have a project for it - It will be an Apache 1.3 environment tuned with PHP and MySQL - and I'd appreciate any comments/advice/note from folk who have done similar. I have my application working fine in a non-SSL environment and believe the switch-over should not be too difficult. But... Can someone confirm the following: My LAMP (Linux, Apache, MySQL and PHP) sit all on the same server - I only require SSL between client and server therefore I believe I do not need to tune PHP/MySQL - true/false? I have the following modules compiled in my Apache httpd Compiled-in modules: http_core.c mod_vhost_alias.c mod_env.c mod_log_config.c mod_mime.c mod_negotiation.c mod_include.c mod_dir.c mod_cgi.c mod_actions.c mod_alias.c mod_access.c mod_auth.c mod_unique_id.c mod_so.c mod_setenvif.c mod_ssl.c mod_php4.c suexec: enabled; valid wrapper /opt/apache/bin/suexec I believe I have everything I need already compiled in - true/false? Is it sufficient for me just to edit the my httpd.conf file under the heading 'SSL Virtual Host Context' and tune accordingly? Since my server sits behind an external firewall, and since the only services will be ssh and apache listening, would one consider that reasonably secure? Can anyone recommend any other steps I might consider? Since Apache/PHP sit on the same server as MySQL I plan on having them use sockets (pipes?) and not tcp/ip port 3306 - I've not done this before either but believe it gives added security and performance benifits -
View Replies !
PHP & Apache
I am having problems getting PHP and Apache to "talk" with one another. Does anyone know of a good website that can show me how to get this done without a lot of pain?
View Replies !
Php Apache
I tried to run php with Apache in windows. But Apache doesn't recognize the PHP file and returns an alert box to save a file. i knew that i need to have a line AddType application/x-httpd-php. php in httpd.conf under conf directory or apache installed directory. But this doesn't work.
View Replies !
PHP 4.3.4 And Apache 2.0.48
I am looking at updating my apachce 1.3.27 to 1.3.29 and was wondering if this would be a good time to make a leap to 2.0.48. I mainly run PHP under apache and remember some time ago someone telling me that apache 2.x had some issues with php. I was wondering if someone would give me some feedback on this?
View Replies !
Apache
Am I correct in assuming that if I have installed Apache on the computer I am designing my website on that I would not have to upload my files to my server to see if they worked? I could test them on my computer. I know this is a pretty basic question and I have done a lot of reading and research lately but I have not seen the answer to this question. Maybe I am not reading the right stuff.
View Replies !
Apache Vs IIS
I have both Apache and IIS servers running on my system. I know I can set Apache to recognize PHP. What do I need to do to set up IIS? My operating system is WIN XP Pro.
View Replies !
Apache & PHP & NT/2k3
I am running FC4 & apache2.something & php 5.0.5, i would like to use my windows NT domain to authenticate logins and ensure that users are automaticly logged in with their network username. However, not sure what to do now... i have tried to find a NTLM module for apache (which i assume i can use in .htaccess) or SSPI which seems to be a IIS only module. I cannot use LDAP as an authentication method as windows wont automaticly fill this in if the client is on my domain. Recap: need an answer as to how to authenticate against my domain and allow auto logins (understand thats php coded however, no point talkin code till apache does it.
View Replies !
Apache & PHP
we're having trouble running .php files on our site, they just appear to be coming up blank pages, (may be due to the apache2->php->mysql interface) anyone had this problem?
View Replies !
Apache 2.0.48+Php 4.3.4+Aix 4.3.3
I'm trying to compile this version of apache with php support on Aix 4.3.3ML11. I use gcc 3.2.1 compiler and all seems to go right. But when i try to access to a php page apache shows segmentation fault.
View Replies !
Apache SSL
I want to install an Apache SSL server, what will i need for this, i have been looking around for info on this i have found several programs that are 4 apache 1.3, i have apache 2.XXXX what would i use to make this possible.
View Replies !
Apache.exe
Should I be seeing Apache.exe running (twice) when I ctrl/alt/delete under processes? I have apache installed on my XP home machine, but it's not started. When I do start it up, I have 3 apache.exe listed running under processes, surely this isn't right?
View Replies !
Apache/PHP .dll
I just installed Apache and PHP, and I thought everything was okay. Then I opened the text file for apache, and put the "LoadModule php5_module php/php5apache.dll" near the module section. However, whenever I restart Apache, it says that file can't be found.
View Replies !
Apache And PHP
I finally was able to get the Apache server setup on my laptop thanks to the great tutorial written by henry0 in this form. Now I have a question that may seem simple to some. Where do i save my html documents and php documents for veiwing and testing? Would it be better to setup folders to mimick my online server as in includes and images also in what every folder i need to access and test them thru .
View Replies !
+ GD On Apache
I am struggling with getting GD working with PHP and Apache. PHP+GD seems to work fine. If I run test php script from command line and redirect to a png file, I can load the image on a browser. The problem is, I can't get it to work with Apache. When I do a phpinfo(), GD is NOT loaded. My apache config is: LoadModule php5_module modules/libphp5.so AddHandler php5-script php I tried setting PHPIniDir, LD_LIBRARY_PATH etc, but somehow Apache refuses to load GD. It does work with other php scripts.
View Replies !
Apache 1.3.27 And 4.3.4
The situation is i have an rh 7.1 box, i know it's not mine though, that has apache 1.3.27 on it in the form of what i presume is an rpm, it's actually on a vps system. Apache was built with dso support as well as php4 which was also installed, then mhash was to be added. A source version of php4.3.4 was downloaded and installed with mhash support, and now not only does this not work, but apache is no longer processing php pages! In the httpd.conf file there are references to if defined php, php3, and php4, and the index line has index.php and index.php3 and other variants as pages, and AddHandlers are also in for php, but whenever a page is pulled up php code is displayed.
View Replies !
PHP With Apache
I'm using the mod_auth_basic type in order to allow people to log in to view pages php pages on my Apache 2.2 server. Is it possible to somehow access the username variable from mod_auth_basic so that I can have the username displayed on my pages after they have logged in?
View Replies !
PHP 5.2.3 And Apache 2.2.4
I would like to ask for help for installing PHP 5.2.3 and Apache 2.2.4. This is the first time that I will be using this applications. I have installed it using the default settings of the windows installer. I have followed the installation process from the sites. Unfortunately I kept getting the 404 message. Can some one guide me through this? I don't know if I'm not configuring something in the conf or theres a bug in configuration that I need to fix.
View Replies !
CLI And Apache API
Executing phpinfo() from the command line and on the browser reveal that the CLI and Apache API have different config statements. How would I resolve this? I would like the CLI API to have the same config as the Apache API.
View Replies !
Cvs Apache
first posting: id like to install cvs with apace, what should do? it it common that cvs can be installed?, do i have to ask m provider or can i patch it myself? can i communicate only via ssl?, or is there a webfrontend.
View Replies !
Apache PHP
What is the best way to install Apache PHP and mysql. I am running Windows XP home and use eTrust antivirus and firewall. Is ýt best to use WAMP5 and install PHP5 mysql5 and Apache2 or should I stick to PHP 4.
View Replies !
APACHE 2.0.54
i am trying to configure Mysql to work with PHP on my XP with this tutorial http://www.tanguay.at/installPhp5.ph. 0acf8ebd62a2a9 but i am always getting this error Fatal error: Class 'mysqli' not found in C:webs est estmysql41.php on line 2.
View Replies !
Apache/PHP
Ive got a problem trying to test apache. I have installed php and apache on my local machine and when i type in http://localhost it says apache installed.
View Replies !
Php4ts.dll And Apache?
I've installed Apache 2.0.46 on a win98se machine and then tried to install php as a module. I unzipped php 4.3.2 to c:program filesphp, moved a php.ini file to c:windows and edited the directories, then moved php4ts.dll to the sapi folder. When I tried to start Apache after configuring httpd.conf, it could not find a library file (i assume the php4ts.dll file that i placed in the sapi folder). So then I moved php4ts.dll to c:windows and Apache started. What confuses me is why the file could not be found. I installed php and apache the same way on a winxp pro machine and it found the file in the sapi folder without any problems. Why would it not be found? It's not really a problem, but it bugs me why it would not work. Could it be a difference in the Apache installation between the two operating systems? Thanks in advance for the info.
View Replies !
Installing On Apache
I'm a beginner in PHP, am currently learning the language, and need top install PHP on my system so I can test it off-line. I installed apache and can't get PHP to work with it. I also cannot get it to work with my main site file in another location, only if I put them in the file directory in the within the apache directory. Any ideas? The httpd.conf file is here Thanks for your help!
View Replies !
PHP Not Available On Apache (Linux)
I am a newbie to Linux, and therefore having a difficult time of installations that are probably quite mundane to "high-timers." I hope this is the correct newsgroup for a posting like this, but if not, please suggest other newsgroups. I have installed PHP4 on a LInux/Mandrake machine, running Apache 1.3.12. All installations are compiled and installed in the default locations. In the browser, I see a text printout of the .php document I'm requesting, rather than the executed form. File types of: AddType application/x-httpd-php .php3 .php4 AddType application/x-httpd-php-source .phps have been added to the Apache config file. I have a list of what PHP was compiled with, and --disable-short-tags was not one of them. Execute permissions (755) have been added to the files I'm trying to see. The INSTALL file called for mod_so which would be visible if httpd -l was run. It was. The five steps required in the "Quick Install" went through without a problem. Actually, I'm just trying to execute that tiny .php file that they give you... <?phpinfo()?> . I've done the copying thing: cp php.ini-dist /usr/local/lib/php.ini In the INSTALL file, it calls for LoadModule php4_module libexec/libphp4.so to have an entry in Apache's config file. I don't see one. I also did a search for the libphp4.so file, and there's none to be found. A search for libphp4 shows a number of files, but none with .so extension. This PHP installation was performed from a php-4.01pl2.tar.gz download - is this the right module? As a note, CGI forms and MySQL queries work fine on this machine.
View Replies !
Cookies & Apache & PHP & W2K
This below is my simple source to set a cookie: <? setcookie('geinig', 'banaan'); ?> Though it doesn't set the cookie, can't find it in my directory cookies, below is an advanced example I pulled from devshed: <? // set cookie if not already set if (!isset($id)) { srand((double)microtime()*1000000); $randval = rand(); setcookie("id",$randval,1003842401,"/","localhost",0); } setcookie("id",$randval,1003842401,"/","localhost",0); // a cookie to expire for 4 hours -> time()+14400 ?> But I can't get any values, perhaps because the cookie isn't set. Used the below code to get the code: (used various codes though) <? echo $HTTP_COOKIE_VARS["id"]; ?> Any help would be much appreciated!
View Replies !
Apache Restart In Php
Im using apache 2.0.44 and php 4.3.0 on a linux machine. I want to restart apache by using exec() or passthru() in php, but it wont work. If a script in my working folder starts with #!/.../php -q it is possible to restart apache by ./script.php, as root, by using exec() in this script. But if I do it on browser, by executing the same script by exec(script.php), I get: (98)Address already in use: make_sock: could not bind to no listening sockets available, shutting down unable to open logs I changed the mode of the logfiles on 666, but thats not the answer. So, if anyone understands my broken english, is it possible to restart apache by using a running apache? Or, is there a possibility to run another instance of apache under Linux?
View Replies !
Buffering On Win/apache
I am writing a ftp client which will work on my server, and I have little problem with using buffering in php. Since it takes quite a while to connect to the ftp server (for whatever reasons) and I use them about 5-10 at a time I would like my script to show some progress, so I thought I would use buffering system. LIttle snip of my code:
View Replies !
Some Help With Apache Authentication
I'm developing a website that require a user and password validation. Almost everything works fine, but a have little problem when the user insert a wrong login (user/password). If that happen, the website shows a page that says: Try again. The last is a reload of the index.php file. My question is what I need to do in the code, for a new login dialog from apache.
View Replies !
PHP/MySQL/Apache
I got PHP MySQL and Apache all running on my local development machine, and have now written some useful code that runs fine locally. The problem is that now i have to make it work on the companies server, or my supervisor will look a bit dumb, as will I. What i need help with is what to do to make php which is on the same server, talk to MySQL and fetch/write the data it needs to. Could anyone give me idiot-proof help with making this work? From looking at other posts and some literature i have made a guess that its to do with the part where i go: <? mysql_connect ('localhost', 'user', 'password'); mysql_select_db (dbname); ?> But i'm not sure a: what to change the localhost to when its on the server. and b: if i need to make changes to any other files, especially server files.
View Replies !
Running PHP As CGI On Apache
I'm having what you could call a bad day, now I'm not an experienced user of PHP but I know enough to install scripts and get them looking how i want them to. I'm trying to install Gallery 1.2.5, unfortunatly my new virtual host runs PHP in safe mode which renders the script useless, after reading their FAQ I found that i can run PHP as CGI and place the script in there. Now I have a problem I cannot compile this on the server as i don't have the permissions or access to do so, is there anywher i can get a pre-compiled version of php.cgi with newbie type instructions?
View Replies !
Help..PHP/APACHE Slow
Have compiled PHP 4 with MySQL support into my Apache 1.23.32 server. It works great but I've noticed it drastically slows down the speed at which the pages load. I would expect a php script with a DB query to be slower, but this goes for almost 10 seconds or more on the same network. HTML zaps onto the screen real quick.Is there a way I can make the server respond faster?
View Replies !
Need Help Parsing Php Thru Apache
I had PHP4 working fine thru Apache on a windows ME laptop however, I nanged up and did something odd (in the file association) as now when I try and parse any php documents all I get is the Open with dialog box. What should the correct file associations be as I cant get apache to recognise any php files. Any help greatly appreciated.
View Replies !
Apache User Through Php Possible?
As a part of a "system test" page I'm writing, I want to find out what user that apache is running for the virtual host that it is running. Ex: (from apache's conf file) DocumentRoot /home/ron/public_html/ User ron Group ron I want to find out that the virtual server is running as user "ron".
View Replies !
Compiling PHP And Apache...
In the past, I install the GNU build system (GNU AutoTools) for the Unix machine before I compile/install PHP and Apache. But now, with more experiences, I'm starting to doubt whether should I need the GNU AutoTools after all for the PHP/Apache. Should I still go with the GNU build system (GNU AutoTools)?
View Replies !
|