Skip to content
Advertisement

Tag: linux

PHPMailer GoDaddy Server SMTP Connection Refused

The other day I was experiencing some problems with my GoDaddy hosted site. I called their tech support, and the person that I spoke with suggested that my problems were related to the fact that I was on a Windows box and would be better served on a Linux box. Having no opinion on this, I agreed and they switched

Differentiate each apache user and give permissions

In a web application, I want to create a folder for each www-data user and give write permissions just on that folder, and just to that user. AFTER VALIDATION I can do: This will create a new directory with a random name, in the path $file->getPath() with all permissions to the owner user. But it would give permissions to all

Error running script.php: Port 9000 is busy

I set php.ini and Debug config in phpstorm. Trying to debug php script outputs in phpstorm Event log with: end of php.ini: Debug port in pStorm is also set on 9000. netstat -na outputs with: What if I set to other port. eg setting it to 10001 seems to do the job. Or just how to make it work properly.

Undefined variable argc PHP

I’m trying to execute this code: But I’m getting the following error: PHP Notice: Undefined variable: argc in /home/me/test.php on line 15 I thought that $argv and $argc were global variables. How can I get rid of this error? I’m running this from command line. Answer Add a after Those variables are in global scope, but not in your function’s

What are the .ini files in /etc/php5/conf.d folder for?

I get that the .ini files in /etc/php5/cli have to do with CLI usage of PHP, the files in /etc/php5/fpm are about FastCGI/FPM aspect of PHP, but what about the .ini files located in /etc/php5/conf.d? Answer From /usr/share/doc/php5-common/README.Debian.gz (on an Ubuntu system with PHP installed): Additionally, each SAPI is configured with the compile-time option which for all SAPI’s is actually

Where can I find php.ini?

A few years ago I installed Apache 2.2x and PHP 5.3.1 on a Linux server I maintain. I used .tar.gz’s and built them as instructed (instead of rpms and what-have-you). And all was fine. Today I need …

Godaddy cron job setup for running php script

can you help me setup cron job on godaddy webhosting? I have php file that i need to run, it is located in cron subdirectory (so address is http://test.com/cron/file.php). What do i need to write in command input field, so this file is runned? Answer NOTE: GoDaddy has been migrating all hosting packages over to cPanel. The itemized instructions below

Running php script (php function) in linux bash

How we run php script using Linux bash? php file test.php test.php contains: Answer From the command line, enter this: Make sure that filename.php both includes and executes the function you want to test. Anything you echo out will appear in the console, including errors. Be wary that often the php.ini for Apache PHP is different from CLI PHP (command

Advertisement