All Questions

Tagged with
Filter by
Sorted by
Tagged with
254 votes
16 answers
478k views

PHP server on local machine?

I'm trying to build a PHP site and I'm wanting to test my PHP files without uploading them to my host. Basically testing them on my own machine before I upload them. How do I do that?
Kozy's user avatar
  • 2,751
141 votes
16 answers
172k views

Docker-compose up : Error while fetching server API version: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused'))

I am trying to do the docker-compose up command in my terminal. First I navigate to the file directory where I find a docker-compose.yaml. Then I write the command. The Server is on Port 80. I get the ...
blackSwan566's user avatar
  • 1,541
95 votes
26 answers
796k views

Apache is not running from XAMPP Control Panel ( Error: Apache shutdown unexpectedly. This may be due to a blocked port)

I have installed XAMPP (xampp-win32-1.8.2-0-VC9-installer.exe) on Windows 7 successfully. But unfortunately, the following error was found during running Apache from XAMPP Control Panel: 5:38:38 PM ...
Ripon Al Wasim's user avatar
61 votes
23 answers
352k views

Getting the screen resolution using PHP

I need to find the screen resolution of a users screen who visits my website?
Elitmiar's user avatar
  • 35.9k
53 votes
4 answers
79k views

Start a PHP server on Mac OS X

I am figuring out how to use PHP OpenId I have cloned the repo to the ~/www directory. There are some examples in the php-open-id/examples directory which I wanted to run. Specifically, I wanted to ...
user3425344's user avatar
  • 3,427
31 votes
3 answers
55k views

Do GitHub pages support PHP? [closed]

Thank you for taking the time to review my request for help. I've been using gh-pages to work on a build for a static site and the server has worked amazing for me throughout the build! Although I ...
brent_white's user avatar
  • 1,019
29 votes
1 answer
90k views

Nginx location configuration (subfolders)

lets say I've a path like: /var/www/myside/ that path contains two folders... let's say /static and /manage I'd like to configure nginx to have an access to: /static folder on / (eg. http://example....
Nubzor's user avatar
  • 522
24 votes
9 answers
95k views

The requested resource / was not found on this server PHP

I ran the php server on cmd using php -S localhost:8080, like this: And I got this problem opening the localhost: What do I supposed to do?
Thiago Souza's user avatar
  • 1,151
23 votes
9 answers
69k views

Prevent PHP code from executing if form was not submitted [duplicate]

I have a php file say "check.php" in my website and it is executed when a form is submitted. say my website is "myweb.com" and the php file is in a directory "PHP" I want to prevent direct url ...
It Assistors's user avatar
  • 1,068
17 votes
9 answers
50k views

Laravel Error 503 Service Unavailable Service

Error 503 Service Unavailable Service Unavailable Guru Meditation: XID: 5312211 Varnish cache server I working on cpanel and subdomain but i got this error from laravel project. do you can help me ...
Nasser Ali Karimi's user avatar
17 votes
2 answers
43k views

WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available

I've been trying to install phpmyadmin in Ubuntu 16.04.3 LTS having a lamp installed, php 7.2, mysql Ver 15.1 Distrib 10.2.12-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 and apache2. ...
Fil's user avatar
  • 8,555
16 votes
5 answers
62k views

Nginx connect() failed error

I don't know why I got this error every time I tried to open the page: 2013/04/06 17:52:19 [error] 5040#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0....
Hazem Hagrass's user avatar
16 votes
2 answers
20k views

How to make "php -S" to work on local network?

In OS X Mavericks (and newer), start a PHP server from the command line: cd to/your/directory php -S localhost:8888 It works, but the server only available on that computer only. Is there a way to ...
Stickers's user avatar
  • 77.3k
15 votes
6 answers
90k views

Elastic Search Give an error No alive nodes found in your cluster

I am start working with elastic search.I successfully install elastic search on my server(Different from application server).But When I try to call Elatic search from my Application server it gives an ...
Tomas's user avatar
  • 514
14 votes
3 answers
50k views

Easiest way to get list of files in the server directory

I need to get array of all images (or simply of all files) in directory (e.g. www.example.com/images/). I prefer to use JavaScript but it's hard to make. So should I use PHP, meybe? Could you please ...
Jan Chalupa's user avatar
13 votes
2 answers
21k views

PHP Firebase help - Set up JWT

On my server I am running a few PHP files that read my Firebase Realtime Database. According to Firebase's documents I need to set up custom token to get my Firebase PHP Client running. The Firebase ...
temp_'s user avatar
  • 1,287
12 votes
2 answers
31k views

How to get MySql 8 to run with laravel? [duplicate]

I'm having difficulty getting MySQL 8 to work. This is the error that appears everytime I attempt a php artisan migrate. I've reinstalled MySQL only once so far because I didn't want to hurt my head ...
Zac's user avatar
  • 1,867
12 votes
5 answers
234k views

currently unable to handle this request HTTP ERROR 500 [closed]

I have transferred my shopping cart files from local to live. The shopping cart which i am using is Interspire. When I load the page, it shows me this error currently unable to handle this ...
Javaid Ahmad's user avatar
11 votes
3 answers
15k views

how to allow custom built "Scan this dir for additional .ini files" php.ini file to read

I am trying to install magento, here I came up with renaming a file name php.ini.sample to php5.ini. When I checked whether the file is reading or not I created a info.php file and uploaded to the ...
Deepesh Thapa's user avatar
11 votes
3 answers
2k views

Auto save server architecture

I want to save a lengthy form's inputs at the server. But I don't think making db calls on each auto-save action is the best approach to go for. What would constitute as a good approach to solve ...
amit's user avatar
  • 10.1k
11 votes
0 answers
4k views

Laravel Queue Driver not calling handle() on jobs, but queue:listen daemon is logging jobs as processed

I've taken over a Laravel 5.2 project where handle() was being called successfully with the sync queue driver. I need a driver that supports dispatch(..)->delay(..) and have attempted to ...
Holly Grant's user avatar
10 votes
6 answers
39k views

PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so'

I am trying to update laravel using composer update on ubuntu 06.04 but everytime i run composer update this warning always comes up. PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt....
Fil's user avatar
  • 8,555
10 votes
3 answers
20k views

How to have different /servers with same Domain?

I have a website foo.com on wordpress and I want to do this foo.com/mexico, foo.com/venezuela, delivery different /server for each city with the same domain (without wordpress multisite). I'm not ...
Neo's user avatar
  • 195
10 votes
3 answers
6k views

Best approach for auto save on-change

I want to remove the "save" button and auto-save changes live. The way I know this can be done is by using the OnChange function. Baring in mind that the web application will be used by quite a ...
Leo's user avatar
  • 977
10 votes
4 answers
5k views

Where to save a single value on server

I am creating an application with a click to call button on an html page. There will be one person manning the phone. I want this person to be able to set a variable with a boolean value on my ...
grateful's user avatar
  • 1,128
9 votes
4 answers
7k views

Ubuntu 14.04 Server: Apache2 issue with phpMyAdmin

I have installed Apache 2, and it is working fine. I have installed PHP 7, and everything works fine, But when I install phpMyAdmin, Apache 2 stops working. When checking Apache 2, it even does ...
Gammer's user avatar
  • 5,488
9 votes
4 answers
64k views

How to Send push notifications using One Signal + PHP + Server API?

I am using one signal to send push notification for android app. My question is How Can I setup send push notifications using server rest api?
user3544256's user avatar
9 votes
2 answers
10k views

Laravel Project ERR_EMPTY_RESPONSE

I am facing a very critical issue on server where i hosted a Laravel application project.I have some other projects hosted there. Some times I see "ERR_EMPTY_RESPONSE" error on browser. But at the ...
Bipul Khan's user avatar
9 votes
3 answers
8k views

FFMpeg working in command line but not in PHP script

I am using FFMpeg to convert videos and it is working fine from the command line. I am using the following command: ffmpeg -i input.avi -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv output.flv ...
Jitendra Prajapati's user avatar
9 votes
2 answers
16k views

Different PHP version for each folder on my server

I have little knowledge of how to configure Apache and the server. Currently, my server is running a version of PHP 5.X I would like to upgrade to PHP 7 but there would be a lot of projects that would ...
fly LFC's user avatar
  • 101
9 votes
3 answers
6k views

Error installing php5-mcrypt

Just today I signed up with Google Cloud Compute Engine. I did everything but then I stuck into an error while installing php5-mcrypt extension. Error: root@instance-2:~# sudo apt-get install php5-...
Aditya Giri's user avatar
  • 1,816
9 votes
1 answer
3k views

Silence PHP 7.4.8 server request logs "Accepted", "Closing"

After updating from PHP 7.3 to PHP 7.4.8, I have noticed the server has started to log "Accepted", "Closing" for all requests and sometimes: "Closed without sending a request; ...
Lucas Ferreira's user avatar
8 votes
2 answers
49k views

How to install ffmpeg for PHP

I've successfully installed ffmpeg using ssh, as root, on my dedicated server (CentOS 7). ffmpeg works fine - but now I need to use it without root access. When i try to use ffmpeg without root ...
Julie Bsd's user avatar
  • 211
8 votes
2 answers
17k views

Phone Authentication Validation from Server Side Firebase + PHP

I'm Creating a custom User Management system, involves all the App data to be on application server, but the phone should be authenticated by firebase. When New User Register on System, Firebase Phone ...
Kiran Maniya's user avatar
  • 8,685
8 votes
1 answer
6k views

How to design my online Game Server for Unity3d?

Recently, I have been doing multiplayer game development in unity3d. I have got the pretty good idea of how the Unity's MasterServer works in unity. But now I want to make my own game server from ...
rsinha's user avatar
  • 131
8 votes
2 answers
5k views

Symfony Server Log Level / more verbose?

when I start the symfony server like this: php app/console server:run --docroot=www every error is logged into the dev.log. But I want it instead to be shown on the console. I think that this must ...
Klaus Breyer's user avatar
8 votes
1 answer
925 views

Library failure when installing Libsodium (Amazon EC2)

I can't figure out how to get Libsodium up and running on my EC2 instance. When attempting to check if the installation was successful with: php7 --info | grep sodium I get the following warning: ...
Fyntasia's user avatar
  • 1,143
8 votes
1 answer
2k views

PHP TCP socket connection Limit - Windows server

I have a weird issue and I can't seem to find a solution or anything closer to the issue I am having , Here is the thing , I have a scoket script run via php on command line, it accepts connection ...
Ronak K's user avatar
  • 1,567
7 votes
2 answers
11k views

What is the difference between PHP and libapache2_mod_php

I’m new to system administration and while launching oho files with Apache 2 server I had to install php on my Ubuntu 16.04. I tried the basic sudo apt-get install php, which only loaded a blank page (...
Deeraj Theepshi's user avatar
7 votes
3 answers
6k views

Laravel 5.7 Nova - The Mix manifest does not exist (on server)

I set up laravel Nova locally last night, tested it, used it, everything works great on my local machine. Uploaded it to the server, and everything works great except when i head to /nova which ...
Raymond Ativie's user avatar
7 votes
1 answer
14k views

nginx php-fpm failed to open stream permission denied

I have a php file on my NGINIX(with php-fpm) that create a simple txt file. <?php $content = "some text here 123 myText.txt"; $fp = fopen($_SERVER['DOCUMENT_ROOT'] . "/myText.txt","wb"); fwrite($...
codinglimo's user avatar
7 votes
2 answers
22k views

How to run a cron job on a CodeIgniter controller that all the URL does is run a query from an API, update the DB & send emails (from within CI)?

I have a web application that runs a query on an api, gets new information, changes the variables in the database and sends emails if needed (compares old and new variables). I work with Ubuntu ...
Imnotapotato's user avatar
  • 5,566
7 votes
1 answer
26k views

How to open wss: or ws: port on my website?

I am using Ratchet-lib/socketo.me as a websocket for my chatting app. When I put localhost:8080 it works perfectly. How can I put my wesbite as wss:// when I publish the app online? How to open port ...
Ali Jand's user avatar
7 votes
4 answers
5k views

PHP Symfony2 server run terminates unexpectedly

I'm starting to learn PHP Symfony2 Framework. I have a PC with Windows 7 and Wamp manager 2.2 and it includes PHP 5.4.3 and Apache 2.4.2. I followed these steps to attempt installing and running a ...
Jessai's user avatar
  • 947
7 votes
1 answer
7k views

How to call an API located on the same server?

I am trying to built a web framework (school project), the framework has to be API-oriented, and I will built the web app on an API-centric architecture, using PHP : The web backend will be a PHP ...
emandret's user avatar
  • 1,279
7 votes
1 answer
3k views

Cronjob to detect last modified files

I want to run a cronjob every minute to detect all files that were changed in the last minute in a specific directory (with about 300.000 inodes) and export this file list to a csv. Is it possible to ...
Samul's user avatar
  • 1,976
7 votes
2 answers
534 views

Execute PHP script after php-fpm master process is restarted

Say I have a script to populate the PHP APC cache when PHP is restarted, the cache is empty. Is it possible to create a mechanism to autorun some kind of script when the master php-fpm process is ...
Ryan's user avatar
  • 10.3k
7 votes
1 answer
6k views

Nginx "location ~ ." vs "location ~* \."

Is there a difference between the 3 following directives? location ~* \.(png)$ { expires max; log_not_found off; } location ~ \.(png)$ { expires max; log_not_found off; } location ~ .(png)$ ...
The Dude man's user avatar
7 votes
3 answers
7k views

Laravel routes are not working on production server 404 error

I have a laravel project, which is working fine on the local machine, where I have it set up on homestead, but when I have uploaded project to the production server on namecheap, none of the links or ...
Ludwig's user avatar
  • 1,591
7 votes
2 answers
1k views

Localhost MySQL PHP Database Migration Slow Performance Compared To Virtualhost Homestead

[VIRTUAL HOST] Laravel Homestead database migration are so much faster than my [LOCALHOST] Laravel Valet / Vessel / XAMPP /? Can anyone explain why? Or is there a way to enhance my localhosts speed?
Kenneth's user avatar
  • 2,913

1
2 3 4 5
61