Tag Info

New answers tagged

0

I removed zend_extension=xdebug.so from /etc/php5/mods-available/xdebug.ini and now I am able to access pages again while still useing xdebug?! I didn't find any other file where xdebug would be included in any php.ini, so I am a little bit confused. Maybe someone else has a more complete answer.


0

You might also want to look at setting up a VirtualBox environment for PHP development. This way you keep your host OS free from server packages but you can still do all development on your own PC with the shared folder functionality. :)


1

1. Installing and setting up the LAMP stack Open Terminal by hitting Ctrl+Alt+T Update the apt cache and install lamp-server^ by running sudo apt-get update && sudo apt-get install lamp-server^ (you should be able to go through the on-screen setup; it's just a matter of setting up the mysql root password) 2. Installing and setting up PHPMyAdmin ...


1

To install these packages in the command-line you can type sudo apt-get install lamp-server^ phpmyadmin There is also extensive documentation how to set up a LAMP environment with phpmyadmin at https://help.ubuntu.com/community/ApacheMySQLPHP | https://help.ubuntu.com/14.04/serverguide/lamp-applications.html Feel free to ask more specific questions if ...


0

Run those commands: sudo apt-get update Install apache: sudo apt-get install apache2 You can test apache2 is working by directing your browser to http://localhost , you should see "it works" output. Install PHP: sudo apt-get install php5 libapache2-mod-php5 Restart apache2 now: sudo service apache2 restart To test PHP now create a file ...


0

Different solution for those still having issues. Hopefully I can help those trying to reinstall Mysql. Note, It's a seek and destroy mission. So be weary. Assuming your root: apt-get purge mysql* apt-get purge dbconfig-common #the screen used for mysql password find / -name *mysql* #delete any traces of mysql #insert apt-get cleanups, ...


2

Ubuntu doesn't use httpd.conf as standard, instead global configuration stuff for apache is found in /etc/apache2/apache2.conf. You can create a httpd.conf in the apache2 directory, and load any further configuration from it by including the following line in /etc/apache2/apche2.conf. Include /etc/apache2/httpd.conf You don't need that file to configure ...


2

httpd.conf will be in /etc/apache2/. /etc/apache2$ ls apache2.conf envvars mods-available ports.conf sites-enabled conf.d httpd.conf mods-enabled sites-available :/etc/apache2$ more httpd.conf :/etc/apache2$ I need to change it No, you do not. The documentation states: httpd.conf: historically the main Apache2 ...


0

According to your logfile there are several things wrong. It is important to tackle them one by one. There are a lot of messages concerning AH01630, meaning the client has no access. This has usually to do with a difference between Apache 2.2 and 2.4. The directive of importance is Require: In 2.2 configuration you should have: Order allow,deny Allow from ...


0

15 * * * * /usr/bin/php /home/rizwan/PHP-workspace/mgstore/testcron.php >> /home/rizwan/cron.out this was working .but i have one php script,for adding customers from magento to ERP,when i run script manually,it asks for authorization,after accepting it creates customers into ERP from magento,I need whenever i added customer in magento after 5 or 10 mins ...


0

on username input field, put a javascript function and then use ajax to call server side code and then append result of that as option with url field. like following. <form name="login" action="index_submit" method="get" accept-charset="utf-8"> <ul> <li> <label for="seller">Seller Name/ID</label> ...


0

The problem was that the /etc/mysql/my.cnf was writable by another user than 'root'. So during the installation of mysql, the file was ignored and the installation didn't worked well. A simple : chmod 644 /etc/mysql/my.cnf aptitude remove mysql-server aptitude install mysql-server aptitude install mysql-common Did the job very well after all. Aptitude ...


0

You could check first which program is using port 80 (default http port) with : sudo netstat -tulpn | grep :80 And you will get something like tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1547/nginx For me is nginx, but it could also be apache2, lighttpd, or any other. Next step is to now if it's running as service, which is an option in ...


0

In PHP you you can use either the backtick operator or the shell_exec() function to run a command in the system's default shell; you could run pgrep 'php /home/rizwan/PHP-workspace/mgstore/testcron.php' and evaluate its return code; either this: <?php if(!($PID = `pgrep 'php /home/rizwan/PHP-workspace/mgstore/testcron.php'`)) echo 'Process is ...


0

First you have to be sure to run the executable by complete path. you can get the path using which command $ which php /usr/bin/php Now the entry in crontab must be: 15 * * * * /usr/bin/php /home/rizwan/PHP-workspace/mgstore/testcron.php Now To check the output you can use redirection trick, so redirect the output to some file and then you can check ...


0

Here are some things you can do to troubleshoot the problem: Restart apache2: sudo apache2ctl restart Is the php5 module enabled? Look for php5.conf and php5.load in your mods-enabled directory. If they're not there, check to be sure they're in your mods-available directory, and enable the module with sudo a2enmod php5 sudo apache2ctl restart Put a ...


0

Essentially, you're asking how to set up a LEMP stack - nginx, php5-fpm, and mysql-server. Here's a good guide on how to install everything. Essentially, just run this command: sudo apt-get install nginx nginx-full php5-fpm php5-mysql mysql-server This installs all the relevant servers and software. With one exception from your initial question. I ...


0

You are asking for a typical LEMP stack installation. There is a good guide offered by Digital Ocean here. If you want an older version of PHP, check this answer.


1

I've developed some steps to install php 5.3 + Apache on Ubuntu 14. First, write the following repositories to the file /etc/apt/sources.list.d/ubuntu-old.list deb http://55.archive.ubuntu.com/ubuntu/ trusty main deb http://security.ubuntu.com/ubuntu precise-security main universe deb http://cz.archive.ubuntu.com/ubuntu precise main universe run apt-get ...


1

Because you don't give us anymore information … All packages are in the Precise repositories: php5gd php5-mcrypt You could install the packages separately: sudo apt-get install php5-mcrypt sudo apt-get install phpmyadmin and maybe (because recommended) sudo apt-get install php5-gd


1

I found my own solution finally. In case someone else comes here looking... I had to edit the virtual host setting in the virtualhost.conf file. Options Indexes FollowSymLinks MultiViews remove last "MultiViews" and it worked. Changed from: <Directory /var/www/html/elim/public/> Options Indexes FollowSymLinks MultiViews ...


0

The PPA packages have a >= dependency relationship for many packages: Package: php5 Version: 5.5.26+dfsg-1+deb.sury.org~vivid+1 Depends: libapache2-mod-php5 (>= 5.5.26+dfsg-1+deb.sury.org~vivid+1~) | libapache2-mod-php5filter (>= 5.5.26+dfsg-1+deb.sury.org~vivid+1~) | php5-cgi (>= 5.5.26+dfsg-1+deb.sury.org~vivid+1~) | php5-fpm (>= ...


0

Remove PHPMyAdmin sudo apt-get purge phpmyadmin sudo apt-get autoremove sudo apt-get clean Reinstall it sudo apt-get install phpmyadmin


0

You were right. The /boot partition is at 100%, however I can't autoremove because it still says there is unmet dependencies. So I will remove them manually and I will post again to find out which ones I can remove safely.


0

To upgrade from PHP 3.5 to 5.4 in Ubuntu 10.04, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below: sudo apt-get update && sudo apt-get install python-software-properties sudo add-apt-repository ppa:ondrej/php5-oldstable sudo apt-get update && sudo apt-get dist-upgrade Source:PHPAvenue


0

Read man lsof. This lsof invocation will show you which process has IPv4 TCP port 80 open: sudo lsof -i4TCP@localhost:80 or sudo netstat -nape --inet Read man netstat


0

Edit your /etc/php5/apache2/php.ini find for: short_open_tag=Off and set it to: short_open_tag=On


3

the error message indicates a disk full error This is the source of your problem. You need to free up disk space before you can do anything else. Try to free up at least a gigabyte. Part of your problem is the large number of old kernels that have built up. Each one could be responsible for 200-300 MB. The command is: sudo apt-get autoremove by ...


0

To make it work we first need to change the current working folder of the bash script that is envoking the daemon.php file as a system serice before using the nohup php command. To make below work: place in (as root) /etc/init.d/yourscript chmod yourscript +x update-rc.d yourscript defaults 98 02 add line to rc2.d: /etc/init.d/yourscript start Alternative ...


0

Step 1 : Download XAMPP for Linux 5.5.24 & 5.6.8 click here Download Step 2 : open terminal ( Ctrl+Alt+t ) cd Downloads sudo su chmod 755 xampp-linux-x64-1.8.3-1-installer.run ./xampp-linux-x64-1.8.3-1-installer.run Step 3 : follow the instructions Step 4.1 : Start Apache,MySQL /opt/lampp/lampp start Step 4.2 : stop Apache,MySQL ...


0

To install the latest Apache version, simly run these commands on Terminal: sudo apt-get update sudo apt-get install apache2 To use the PHP and MySQL versions you mentioned, you simply need to install them following this general rule: apt-get install <package name>=<version> But before doing that, I seriously do not understand why you need ...


0

Okay, I now found out the main problem was I didn't get any error messages. To solve this, open the file /etc/php5/apache2/php.ini in a text editor as root. In the terminal window, type the command sudo emacs /etc/php5/apache2/php.ini and press enter. Locate the line display_errors = Off and change it to display_errors = On. This helped me see that there ...


1

My recommendation: Don't use XAMPP for this! It's supposed to be a simple way to get the usual Apache, MySQL, PHP, +Python/Perl stack to work. Leave the walled garden and your pretty much on your own… Also: Even if you do get it to work there is no guarantee that it won't break the next time your system or XAMPP itself. This use-case is not supported by ...


0

have you tried installing php5 on your ubuntu ? sudo apt-get install php5 then reconfigure the apache2 config file. is your php service is running ?


1

Write all your code in index.php file instead of in index.html (// index was sample file name i have given) Then You write your above code in that file In order to execute the php script extension of the file must be .php


0

After little more effort I'm able to work with my htdocs folder. First i set my owner of my htdocs from root to My User after that i set permission of my htdocs 755 (drwx-rx--rx-) for my all directories in htdocs User this code to do that find htdocs -type d -exec chmod 755 {} \; and for files i set 644 (rw-r-r) User this code to do that find htdocs ...


0

Error writing /etc/phpmyadmin/config.inc.php: Permission denied You are trying to upload /save in /etc/phpmyadmin, while this directory have some permissions that disable user from writing on it, so you have to choose one of many scenarios to solve that: Change the dir to some dir in your home change permission of that dir using chmod. Read this for ...


0

In general to change file and/or directories permissions you need to use chmod command (you already knew that). There is two way to use chmod more information in official ubuntu docs page. In the nutshell either use letters e.g r read (readable) w write (writeable) x execute (executable) OR use numbers 4 == r 2 == w 1 == x Here are some example ...


0

If you can't find "--without-libssh2" to replace with "--with-libssh2" you can search for "--without-ssl" and append "--with-libssh2", tested with curl Version 7.35.0 on Ubuntu 14.04.2 Customized answer from Frantique: Download and unpack the curl source. After that: sudo apt-get install build-essential debhelper libssh2-1-dev sudo apt-get source libcurl3 ...


0

You may need to go to your phpMyAdmin.conf and edit it to require your computers IP. Require ip your.pcs.ip.address Right now phpMyAdmin may be configured to only allow localhost access.


0

I'd start by getting a solid PHP 5.5 system: sudo add-apt-repository ppa:ondrej/php5 sudo add-apt-repository ppa:ondrej/php5-oldstable sudo apt-get update sudo apt-get -f install Remove all the things but pay attention to what's being removed: sudo apt-get -s remove ^php.* dh-php5 libapache2-mod-php5 Remove the PPAs: sudo add-apt-repository --remove ...


0

Fixed. Since the panel interface I was using was Virtualmin, I merely ran install.sh which reinstalls Virtualmin. Apparently it was enough to resolve this problem, although they dont recommend doing it over a previous install, all seems to be ok thus far.



Top 50 recent answers are included