Wamp on Raspberry Pi [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
For a school project, I need to install a server with Wamp but I need to have access everywhere so maybe is it possible to install it on my Raspberry. So is it possible and if is it how ?
Thanks you so much for your help

WAMP (Windows, Apache, MySQL, PHP) is windows only and I do not think the Pi can run Windows (maybe Windows RT, but WAMP is compiled for X86 not ARM). It can run a LAMP (Linux, Apache, MySQL, PHP) stack and installation depends on your distribution. For Raspbian it would be something along the lines of (typed in the terminal):
apt-get install apache2
apt-get install mysql-server
mysql_secure_installation
apt-get install php5 php-pear php5-mysql

You would have to install windows on a raspberry pi which I don't think would work to well.
You could just use Lamp, Linux, and SSH to access it anywhere which is basically the same thing.

Related

No SQL extension on apache running php 7.4 on Ubuntu? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I a2enmod php7.4 and a2dismod php7.3 on apache & Ubuntu and my Wordpress sites stopped working saying cannot connect to database.
Upon further investigation through phpinfo mysqli is not enabled with php7.4. If I reenable php7.3 then mysqli is enabled, switch back to 7.4 and nothing.
I have tried looking at php.ini and adding:
extension=php_mysqli
extension=php_mysqli.so
No change.
I have tried running sudo apt-get install php-mysql and it says it is already installed.
I have tried running sudo apt-get install php7.4-mysql and it says that doesn't exist.
Does php7.4 not support mysqli at all?
OK I've found it.
Need to add repository: sudo add-apt-repository ppa:ondrej/php
Then sudo apt-get install php7.4-mysql

Can't install HTML_QuickForm2 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have been trying to install HTML_QuickForm2. I ran the command sudo pear install HTML_QuickForm2. Unfortunately it gives me error that is:
WARNING: failed to download pear.php.net/HTML_QuickForm2-, additionally the suggested version () is the same as the locally installed one.
install failed
When I checked the usr/share/php/ and usr/share/php/PEAR, I did not see that HTML_QuickForm2 is installed in this location. So, I retried but am getting same error. Additionally, I have installed PEAR recently, is there anything to configure in php.ini for PEAR?
P.S. I am using the OS Ubuntu 14.04.
I'm on Ubuntu 14.04 too and just installed it using sudo pear install HTML_QuickForm2-2.0.2
And it got installed at this location:
/usr/share/php/HTML/QuickForm2

Downgrade Debian PHP package [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a big problem with my sites after migrate to new server. The only difference is in PHP version.
On old server I have: 5.3.3-7+squeeze15
On new server is: 5.3.3-7+squeeze17
Can I migrate from new version to older and how?
OS: Debian 6.0.8
To specify a specific version of a package to install:
sudo apt-get install <package name>=<version number>
Example:
sudo apt-get install php5=5.3.3-7+squeeze15
It may happen that this version is no longer installable, in which case you'd need to fetch it from the snapshot service, and install it via dpkg:
sudo dpkg --install <deb filename>

Installing new PHP version for MAMP on Mac [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I tried to install the PHP extension libraries for MongoDB, however updating the php.ini files caused some problems and caused the MySQL servers on my localhost to not start. I use MAMP, but when I start it now, Apache loads but MySQL doesnt and I can't load any web pages.
So I downloaded the same version of PHP from http://php-osx.liip.ch/ to reinstall PHP and I'm now trying to update the right files on my system so that this is the version that is used.
I've updated the path in the terminal (using export PATH=/usr/local/php5/bin:$PATH) and now get the newly installed version there when I run php -v.
But when I run phpinfo, I still get the old version. I still can't load any localhost web pages or phpMyAdmin.
Thanks very much for help figuring this out! I'm a front-end developer without a lot of backend experience.
The best way to install PHP on a Mac is to use Mac Ports.
This community make the repository up to date and give you the choice between PHP 5.3, 5.4 and even 5.5.
When you'll have port installed, install php5.4 (or another one) and pecl :
sudo port install php54 php54-pear
Then, use pear to add MongoDB support:
sudo pecl install mongo
Some links:
Installing Mac Ports
How to install MongoDB for PHP on Mac OS X

installing PHP with LAMP server [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to install LAMP on my Ubuntu 12.04, from the method shown in this link. After running the following code
sudo apt-get install php5 mysql-server apache2
I should have php installed, but when i type "localhost/info.php" it does not show the PHP window that it is supposed to show, instead the file gets downloaded in the Downloads folder
Any help would be appreciated
Restart the apache.
sudo service apache2 restart
I would recommend you to install the packages in a different order:
sudo apt-get install apache2 php5 mysql-server
I mean , install first apache so when php is installed then will automatically enable the mod_php apache module. But because you installed the php5 package first may be the mod_php is not yet enabled. Just double check that.

Categories