Questions tagged [lamp]

LAMP refers to a stack of web technologies based on Linux, Apache, MySQL, and PHP/Perl/Python.

LAMP, (Linux, Apache, MySQL and PHP/Perl/Python), is an acronym for a solution stack of free, open source software, referring to the first letters of: Linux (operating system), Apache HTTP Server, MySQL (database software) and PHP (or sometimes Perl or Python), principal components to build a viable general purpose web server.

2162 questions
14
votes
10 answers

In PHP, how many DB calls per page is okay?

I've got shared hosting on a LAMP set up. Obviously the fewer calls to the Db per page the better. But how many is too many? Two? Ten? A hundred? Curious what people think.
Corey
  • 1,977
  • 4
  • 28
  • 42
14
votes
3 answers

Ubuntu automatically pull from Github repo

I installed git on my server but I want it to pull from my github repo whenever I push the changes I made locally. I've looked into hooks but it's very confusing and I can't find any tutorials. Does anyone know how to do that?
Sosa
  • 814
  • 1
  • 9
  • 20
14
votes
4 answers

Class __PHP_Incomplete_Class has no unserializer

I am trying to run the tests in PHPUnit and getting this error. Fatal error: Uncaught exception 'ErrorException' with message 'Class __PHP_Incomplete_Class has no unserializer' in /opt/lampp/lib/php/PHPUnit/Util/PHP.php:237 PHP - 5.4.7 PHPUnit -…
Infinity
  • 531
  • 2
  • 6
  • 11
13
votes
1 answer

Command-line script PHP does not run

I am trying to build a PHP script to process data manually to later convert it to a cronjob. This script also gets data from MySQL and a third-party SOAP interface. When I try to run it from the command line I have an error and the script does not…
Adéline
  • 235
  • 1
  • 6
13
votes
5 answers

Centos htaccess not being read

I'm working on a new server and I installed via yum the "Web Server" group. Php and mysql work fine but I can't get .htaccess to work. Heres my test .htaccess file: WASD_TEST_CALL_ERROR I put this as .htaccess in a test folder along with an…
Kamran224
  • 1,584
  • 7
  • 20
  • 33
13
votes
1 answer

How to Update to PHP 7.4 from PHP 7.x on CentOS 7

I'm running PHP 7.1 on CentOS 7 which was installed using Remi Repo. WordPress is informing me to update to PHP 7.4 for security reasons. How can I update the PHP version on the server running Apache/MySQL LAMP stack?
raw-bin hood
  • 5,839
  • 6
  • 31
  • 45
13
votes
3 answers

Best way to simulate a domain?

I am going to build a website on a test server that will behave differently depending on which domain is used to access it (The real website will have multiple domains pointing to it). But how will I be able to simulate the different domains on the…
JD Isaacks
  • 56,088
  • 93
  • 276
  • 422
12
votes
1 answer

.htaccess for PDF URL

I have a structure called /pdf/ where generated PDFs are stored. I am trying to use .htaccess to route visitors to the PDF folder. I have this rule in my .htaccess file: RewriteEngine On RewriteBase / RewriteRule (.*)…
Maggie
  • 283
  • 3
  • 10
12
votes
2 answers

Migrating bad system into our current system with tons of data

I inherited of a system when my company bought another company. This system is a mix of LAMP and .NET. 1 Windows server running asp.net that controls third-party validation used only for apis and webservice - (let's call it WIN) 8 LAMP servers…
aki
  • 1,241
  • 2
  • 13
  • 43
12
votes
5 answers

Is it possible to use the same MySQL database on Windows (XAMPP) and Linux (LAMP)?

I have dual boot mode with Windows 7 and Ubuntu 10. On Windows 7 I have XAMPP installed, on Linux I have LAMP installed. Is it possible to force the MySQL DB servers installed onto different operating systems (even though they would be of identical…
Jan
  • 121
  • 1
  • 3
12
votes
9 answers

Java EE -- is it just fluff or the real stuff?

I'm familiar with the LAMP stack and over the years have successfully deployed a handful of web sties based on it. I've used everything from Apache + modPerl, to PHP, to Ruby and Rails. With good use of caching my Rails site can sustain a pretty…
Jeff
  • 6,646
  • 5
  • 27
  • 33
11
votes
1 answer

Secure Transaction between Mobile app and LAMP

I have a Mobile App (iPhone and Android) which allows user to login to his account, change prefs etc... I want to add a new feature where the user can buy products through his device or upgrade his service. Everything will run from the device and I…
Tech4Wilco
  • 6,740
  • 5
  • 46
  • 81
11
votes
3 answers

HTML5 Websockets Server Requirements

I have spent the whole of yesterday trying to get my head round HTML5 websockets, but am still a little confused about a few points: Do I need to install any further add ons to my apache server to run a websocket server? Is it possible to run…
wilsonpage
  • 17,341
  • 23
  • 103
  • 147
11
votes
3 answers

how to make a local domain available on all computers on lan

I have 10 computers and i want to fetch my local host on all the systems . I am using ubuntu 12.04 . I changed my hosts file like this 127.0.0.1 localhost 127.0.1.1 ri8-MS-7788 192.168.1.22 manojdhiman.com # The following lines are…
Manoj Dhiman
  • 5,096
  • 6
  • 29
  • 68
11
votes
6 answers

Mysql count how many queries per second are executed, is there any way?

i have a busy web server with LAMP installed, and i was wondering, is there any way to count how many queries per second (mysql) are executed in the server ? Thank you.
Nikos
  • 121
  • 1
  • 2
  • 5