Questions tagged [php]
PHP is a general-purpose scripting language that is especially suited for Web development. The online manual is an excellent resource for the language syntax and has an extensive list of the built-in and extension functions. Most extensions can be found in PECL.
7,925
questions
0
votes
0
answers
119
views
Got postfix and mail working, but the emails are considered "spam", why?
I have a linux server, with postfix just installed.
I am new to email-servers...
Anyways, I am able to send mail with php:s mail function, but they are considered "spam" by google mail (and probably ...
2
votes
2
answers
484
views
Apache reports local IP instead of hostname
I have a setup as follows:
Linux Server (OpenVZ) with internal IP 10.10.0.4
- Container (10.10.0.5)
- Container (10.10.0.6)
Due to limited IP space I only have one public IP mapped to the main ...
1
vote
2
answers
115
views
Email Server; How to configure postfix to suit my needs? (Do I need SASL or/and TLS?)
I have a linux server, where I just installed postfix.
I have done nothing more with the email server config.
My website is a classifieds website, where users may put ads, delete ads etc etc. No ...
0
votes
2
answers
234
views
PHP doesn’t run through Snow Leopard Web Sharing
I've followed all the tutorials and uncommented the relevant lines in httpd.conf, but PHP files do not render under Web Sharing.
The server just serves up the source code instead of running it.
I ...
6
votes
4
answers
32k
views
Allow Apache to run a command as a different user
I have a script that executes several commands in a user's home directory. The files are owned by the user and Apache (the www-data group) only has read privileges to them. The script needs to be ...
0
votes
1
answer
215
views
PHP5 module makes Apache 1.3 segfault
I am trying to get PHP4 and 5 to work with Apache 1.3. PHP4 is compiled as a module and currently works fine, although Apache does display the following warning upon starting:
Loaded DSO libphp4.so ...
0
votes
1
answer
2k
views
List of PHP modules that are thread safe
I'd like to try running Apache in a threaded MPM with mod_php. Does anyone have a list of PHP modules that are thread safe so I can tell if its going to be safe to do or not?
2
votes
1
answer
2k
views
Using separate php.ini files per vhost in Xampp
My web host provides separate php.ini files per web root, which is quite useful as I host some websites which require different PHP settings.
But on my dev system where I use Xampp, I can only find a ...
0
votes
1
answer
1k
views
Setting up Suexec on apache on Godaddy Virtual private hosting
I have recently purchased Godaddy VPS (Virtual Private Server) with their custom control panel and CentOS 5.4
From their control panel I am able to add domains to the server with their own user and ...
1
vote
1
answer
885
views
Managing server memory (php, fastcgi, apc)
Ok really need someone to help me out here
i'm running CentOS on a VPS with Plesk installed
I launched a new website which gets a couple of hundred visits a day (nothing crazy) but have been plagued ...
1
vote
1
answer
4k
views
Reconfiguring PHP with OpenSSL Extension on CentOS
Long time browser, first time poster!
I have a CentOS Dedicated server running just fine.
I'm trying to reconfigure PHP to include the OpenSSL extensions so I can use some of the Youtube API's.
I ...
1
vote
1
answer
383
views
php extensions and shared hosting
I'm on shared hosting and I'm trying to set up the memcached.so module to be used for php. Obviously I'm not able to put the .so file in /usr/lib64/php/modules so for my extension_dir value in my ...
2
votes
1
answer
9k
views
Very slow Apache on Windows 7
I have installed Apache 2.2, PHP 5.2 and MySQL 5 on my Windows 7 32bit PC so I can develop web applications locally.
The problem is Apache is quite slow. I have tried turning off Nod32 and also ...
2
votes
3
answers
2k
views
Firefox intermittently tries to download/open a PHP page rather than it execute on the server
I found this similar question here on serverfault, but the answers there don't cover my case (that I can tell).
On some [apparently] random basis, Firefox (only browser I've tried) will try to ...
0
votes
2
answers
692
views
fcgi only using one processor?
I'm working on a setup which uses fcgi/nginx.
It seems to be running correct (24 children and 500 max requests), except that all of the phpfcgi instances are piling on one core. When I run top, I ...
3
votes
4
answers
298
views
R, PHP & Apache
I designed a web page that lets user define some criteria using drop-boxes etc. and php collects the relevant data from the database according to that criteria.
What I intend to do is modeling a ...
2
votes
3
answers
1k
views
Can I convert my database/script to UTF-8?
How can I convert a database to support UTF-8 and convert it's old data from what ever encoding they're in to UTF-8 ?
Extra Info:
I'm running a server which has many websites on it, and one of them ...
0
votes
2
answers
135
views
eaccelerator.cache_dir with vhosts
What is the best solution to store the cach files? One directory for all or explicit directorys for each running vhost? Is there any difference?
0
votes
2
answers
250
views
PHP run on the command line simply outputs the contents of the script
I'm trying to run a PHP script on the command line.
listing for myscript.out
<?php
echo "Hello world";
?>
Let's try running it...
$ php myscript.php > myscript.out
$ cat myscript.out
...
0
votes
2
answers
3k
views
Force all outbound HTTP connections through a proxy
We run a few society websites behind a University firewall that mandates that all traffic goes through an internal squid cache / proxy.
While export http_proxy= works perfectly in the shell I'm ...
2
votes
2
answers
2k
views
PHP maximum memory limit and Apache process memory consumption
How does the PHP maximum memory limit affect the memory that an Apache process consumes? If for example I've set it to 256MB, does this mean that every process will try to allocate this amount of ...
3
votes
2
answers
3k
views
Trying to setup phpUnderControl but missing phpcb
I'm trying to setup phpUnderControl on Ubuntu 10.04 following this tutorial http://techportal.ibuildings.com/2009/03/03/getting-started-with-phpundercontrol/. I get to the part where it says to type ...
3
votes
3
answers
327
views
Apache serves incorrect page
To preface: this has got to be one of the strangest bugs I have ever seen, especially since it comes and goes.
There exists a page called view.php and another page called save.php. The bug manifests ...
2
votes
1
answer
3k
views
Phpmyadmin session timeout on Plesk [closed]
How can I increase the amount of time a phpmyadmin session is valid when running through Plesk?
2
votes
2
answers
644
views
Best way to run PHP with Nginx
What is the best way to run PHP with Nginx?
Run Nginx with PHP FastCGI
Run Nginx as a reverse proxy while Nginx forwards request to Apache
1
vote
3
answers
369
views
Apache or PHP problem?
Here is my problem. Sorry if the subject was discussed before, but I didn't find it. Also, sorry if the place for my question is not here.
I have a website on a server using Apache 2.04 and PHP 5.
...
1
vote
2
answers
17k
views
"Unable to initialize module" warning after update PHP on CentOS 5.4
After upgrading PHP from 5.1x to 5.2.10, there are a lot of warning when php -v:
[root@localhost ~]# php -v
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with ...
2
votes
3
answers
4k
views
Finding outbound connections from Apache/PHP
A client website was recently compromised, and we're analyzing the damage and exposure from the attack. We've found a script that is "calling home" to a URL we can easily find in a log, but is this ...
0
votes
1
answer
2k
views
How do I add a ftp client file upload option to a website (for an architect or printer)
I am so new to all of this I barely know what to ask.
As a reference, I am trying to achieve what the following website offers to their clients:
http://www.tokerassociates.com/ (click the ftp button ...
16
votes
3
answers
94k
views
Get log of mail sent with mail() from PHP (sendmail?)
After some server changes our PHP configuration got nuked, which caused a client's large mailing list to time out partially through about 4,000 addresses or more. We want to avoid sending a duplicate ...
2
votes
2
answers
917
views
xDebug on Zend Server CE under Windows XP [closed]
I have Zend Server installed on my Windows XP development machine, installed when I was naive and didn't know that Eclipse was going to become so suck so badly for PHP development.
I've made the ...
1
vote
3
answers
1k
views
Build Php from source
I want to compile PHP from source and install it to work with apache2. I followed this tutotial. When i tried ./configure --prefix=/usr/local/apache --enable-so, I got:
configure error - apr not ...
39
votes
6
answers
112k
views
PHP exit status 255: what does it mean?
I recently compiled a PHP 5.2.9 binary, and I tried to execute some PHP scripts with it. I can execute some scripts without problems, but one of them halts its execution midway, exiting with no errors ...
10
votes
4
answers
724
views
Common PHP setup insecurity?
I work with the systems administration at a university and just stumbled across something which is probably common, but was quite a shock to me.
All public_html directories and web areas are stored ...
1
vote
3
answers
178
views
kollinsoy.skyefenton.com attack?
Recently My website was attacked by a Malware. it convert my index page into blank.
The attack add 2 lines to my index.php :
<script type="text/javascript" src="http://kollinsoy.skyefenton.com:...
1
vote
3
answers
153
views
My site doesn't display certain images
after a system upgrade, certain pictures aren't displayed in my Drupal installation. I notice that, for instance, some jpeg are visible while other are not (the extension being for both jpeg, all ...
2
votes
4
answers
6k
views
Running multiple versions of PHP on Ubuntu
Is there an easy way to run multiple versions of PHP on Ubuntu 10.04 (desktop), and switching between them?
I am spoiled with the very easy installation and switching of PHP in WAMP for Windows. This ...
1
vote
1
answer
1k
views
Protecting against PHP session DOS attacks
A popular move is to store PHP sessions in memcached. But it seems like this is wide open to an attack - someone could flood the server for new session requests and consume all your memory. What ...
0
votes
2
answers
643
views
Bandwidth Monitor
I am creating a bandwidth quota program in PHP, however I am finding that to create it with PHP is a bit hard. As an example of what I am trying to do, the user can download 10GB per day, and after ...
4
votes
4
answers
32k
views
error in php not logging or displaying
I can not get any errors to display on screen on write to a log file. When check phpinfo() print out I have same value of master a local for
display_errors On
display_startup_errors On
error_log /...
0
votes
1
answer
29
views
ssl using php pn apache
i want about ssl, and the request response between server and client. am developing in php on apache
How do i do ssl on localhost using php; curl?
How do i do it on a php enabled live server?.
...
0
votes
2
answers
1k
views
How do you keep existing server configuration when migrating from different dedicated server hosts?
I am trying to migrate from my old server (Server 1) from provider 1 to a new server (Server B) at provider 2, keeping the process as seamless as possible.
One of the first things I noticed in the ...
1
vote
3
answers
11k
views
How do I enable PHP apache_request_headers() or change PHP into an apache module
PHP, WHM, and several other services are already installed on a CentOS x64 server I am trying to migrate data to. Many of my existing PHP scripts are dependent on PHP's apache_request_headers() ...
3
votes
3
answers
7k
views
ubuntu amp Forbidden
I'm trying to access my site at localhost, but I get:
"Forbidden
You don't have permission to access /index.html on this server.
Apache/2.2.14 (Ubuntu) Server at localhost Port 80"
My error.log ...
0
votes
1
answer
2k
views
How I can verify a googlebot
I'm going to block all bots except the big search engines.
One of my blocking methods will be to check for "language": Accept-Language
If it has no Accept-Language the bot's IP adress will be ...
1
vote
1
answer
16k
views
Fatal error: Incompatible file format: The encoded file has format major ID 1, whereas the Loader expects 4 in ... on line 0
I am using Ubuntu 10.04 and for some time I had to keep a downgraded PHP 5.2 package because I need to run Zend encrypted scripts. Recently I noticed that Zend released beta version of their loader (...
0
votes
1
answer
106
views
Wordpress: 404 page after logging in
I get a 404 page when loging in to wordpress for all my users. It adds an extra "/" so its like website.com//
I am using:<?php wp_loginout(urlencode($_SERVER['REQUEST_URI'])); ?>
So that after ...
0
votes
3
answers
1k
views
Why do I see the PHP code and not the output of the script?
I have installed Apache. Its working fine.
I have also PHP 5.2.1 installed.
I have enabled load module in http.conf also
I have also added following in mime.types
AddType application/x-httpd-php ...
0
votes
2
answers
2k
views
DOMPDF generation error
I have a big problem at my work. We had to make a page who displays a exercise for the users. But that page need also to be available as pdf. To do this we used DOMPDF. This worked perfectly on your ...
0
votes
1
answer
1k
views
PHP5 without PHP4 compatibility
This is the opposite question of this one. My purpose is that there is no need when you write only PHP5 code to have PHP4 compatibility. It is not helpful at all and due to differences between object ...