got disconnected on the remote linux server - php

my project on the remote server stopped working after i did the following
1> install putty
2> connect to the remote server using FTP details
3> then in the root server installed pear using
$ sudo apt-get install php-pear
4> then i changed the path in php.ini
now the server has stopped working ... why? what happened? HELP!!

I believe it might be superuser question.
Anyway, we need more details.
Assuming the server is running linux (/unix), check the logs - they will probably tell you why the server fails to start. Check both syslog (/var/log/syslog) and your server software specific log.

Related

Missing PDO Driver for SQLite

I created a droplet in DigitalOcean (LAMP on Ubuntu 20.04)
Installed WP PHP files using WinSCP
Run it on PUTTY
Checked site on web browser
I received a message saying "PDO Driver for SQLite is missing"
Found solutions online and here's what I've tried:
Find php.ini & uncomment (remove ;) on extension=pdo_mysql & extension=pdo_sqlite
Restarted apache on PuTTY by using this command sudo service apache2 restart
But didn't work
Any tips please?

How to properly install Xampp on Mac in order to run PHP code

I downloaded the installer version of Xampp version 8.1.6-0 for Mac and went to the manager-osx widget to start the Apache and MySQL servers but neither would start.
I then tried using the command sudo apachectl start and then created an index.php file and put it in htdocs, and then tried to open it using http://localhost/index.php as well as http://localhost:8080/index.php and both times it said the server could not be reached.
I've actually downloaded Xamp in the past and was able to reach the server but wasn't able to get php scripts to run, but now for some reason I can't even get the server to run.
I made sure to download the installer and not the virtual machine version. I'm running Monterey version 12.4.
I tried the solutions here but they didn't seem to work. I checked my activity monitor and nothing is running on port 80.
I also installed MAMP from here and tried to start Apache but it displayed the error:
"Apache couldn't be started. Please check your MAMP installation and
configuration."
Any help would be appreciated as I just want to run PHP.

Ubuntu / SQL Server - PHP script works in terminal, but not web application

I have an Ubuntu VM / Azure SQL DB combo where I have two sets of PHP files.
1) Some scripts that run from CRON jobs
2) A Yii2 Framework website
Both environments connect to an SQL Server database.
I have done all the steps to compile sqlsrv and added it to PHP's list of extensions. My scripts work great from the terminal, but on the website, I get an error:
could not find driver
My webserver is nginx, and it runs the website properly, but PDO does not connect to SQL Server.
I only have one PHP installation, but nevertheless used code to determine which is the right php.ini file in use and it has the right extensions directive.
A phpinfo() output also shows sqlsrv in the 'Registered PHP Streams' section.
My UFW firewall is inactive and I don't have SUSELinux. Nevertheless ports 22 and 80 are open. Even tried enabling it.
I am not sure what else to try. Help!
EDIT
I created a simple test file. When I run that through the terminal, it works, but when I do so via a browser, it doesn't.
EDIT 2
I installed Apache2 instead of nginx, and everything works now.
I think you need to try with just some "Hello world". If this not help type in terminal:
sudo apt-get install php-mysql
And restart your nginx server with:
sudo killall nginx && /usr/local/nginx/sbin/nginx

Fastcgi: php is not connected with mysql?

I have 2 different php versions running. They are running fine but they are not connected to mysql and I dont know why. They should be and I dont know how I can force them to connect with mysql.
The php versions are 5.3.27 and 5.4.31
If u need any more information, let me know.
Please use the following command to install mysql client for php and enable it in php.ini
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
Make sure to restart apache (or any web server you are using) before you try to see any changes.
Digital Ocean provides easy guides on installing LAMP environment. Have a look here https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu
It's working now. I just mistyped "extension=mysql.so" :/
Anyways thanks for trying to help!

Blank screen on my domain and automatic Zip download

when i try upload something on my domain ftp, blank screen appiers and automatic Zip download starts , even phpinfo not working. I have dedicated server and never had any problems
My domain is and i want to install script at http://fablefly.com/install
Can You look Guys ?
P.S i'm running Cpanel , php 5.2 , mysql , ion cube enabled.
I think I understand what you mean. I had the issue before when I set up my server and installed PHP, whenever I went to a page, it downloaded a useless file. I solved the issue by running the following commands via ssh.
sudo apt-get install libapache2-mod-php5
sudo a2enmod php5
sudo service apache2 restart
Not sure exactly how you would go about doing this via cpanel as I use webmin personally and do most of the work via command line. But I believe this is your issue.
See this page
http://serverkb.co.uk/wiki/PHP - the section titled "PHP Page downloading"
Check this out
http://cpanelhostingstuff.com/php-files-are-downloading-instead-of-executing/
Also look at some of these pages https://www.google.co.uk/#q=php+downloading+instead+of+executing+cpanel

Categories